| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index 88e4d3ecf9bac995beccd574893fb0208f4bc1cc..469bc7a952c742e9449d340a4b81df0a039a8166 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -1748,6 +1748,9 @@
|
| if (context.clearInvalidation)
|
| document().styleEngine().styleInvalidator().clearInvalidation(*this);
|
|
|
| + if (svgFilterNeedsLayerUpdate())
|
| + document().unscheduleSVGFilterLayerUpdateHack(*this);
|
| +
|
| setNeedsResizeObserverUpdate();
|
|
|
| DCHECK(needsAttach());
|
| @@ -1952,7 +1955,8 @@
|
|
|
| if (LayoutObject* layoutObject = this->layoutObject()) {
|
| if (localChange != NoChange ||
|
| - pseudoStyleCacheIsInvalid(oldStyle.get(), newStyle.get())) {
|
| + pseudoStyleCacheIsInvalid(oldStyle.get(), newStyle.get()) ||
|
| + svgFilterNeedsLayerUpdate()) {
|
| layoutObject->setStyle(newStyle.get());
|
| } else {
|
| // Although no change occurred, we use the new style so that the cousin
|
| @@ -3611,6 +3615,10 @@
|
|
|
| if (!newId.isEmpty())
|
| toHTMLDocument(document()).addExtraNamedItem(newId);
|
| +}
|
| +
|
| +void Element::scheduleSVGFilterLayerUpdateHack() {
|
| + document().scheduleSVGFilterLayerUpdateHack(*this);
|
| }
|
|
|
| ScrollOffset Element::savedLayerScrollOffset() const {
|
|
|