Bug 1560275 - Flush before trying to read style in SVGGeometryElement::IsPointInStroke r=dholbert,emilio

Differential Revision: https://phabricator.services.mozilla.com/D78721
This commit is contained in:
longsonr 2020-06-08 21:58:40 +00:00
Родитель ed90a04ad1
Коммит abfdb3c37c
2 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -193,6 +193,9 @@ bool SVGGeometryElement::IsPointInStroke(const DOMPointInit& aPoint) {
if (!path) {
return false;
}
if (nsCOMPtr<Document> doc = GetComposedDoc()) {
doc->FlushPendingNotifications(FlushType::Style);
}
bool res = false;
SVGGeometryProperty::DoForComputedStyle(this, [&](const ComputedStyle* s) {

Просмотреть файл

@ -1,10 +1,4 @@
[SVGGeometryElement.isPointInStroke-01.svg]
disabled:
if (os == "android") or (os == "win" and not debug): https://bugzilla.mozilla.org/show_bug.cgi?id=1560275
[SVGGeometryElement.prototype.isPointInStroke, non-finite argument.]
expected: FAIL
[SVGGeometryElement.prototype.isPointInStroke, 'vector-effect'.]
expected:
if webrender and not fission and (os == "win") and not debug: ["PASS", "FAIL"]