Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Document.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
| index f0b373487b502c3973dbca8ac8075b92b10eb91b..11c199f977fc8a620a516f44432a0c8a8fe993ea 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp |
| @@ -120,6 +120,7 @@ |
| #include "core/events/ScopedEventQueue.h" |
| #include "core/fetch/ResourceFetcher.h" |
| #include "core/frame/DOMTimer.h" |
| +#include "core/frame/DeprecatedScheduleStyleRecalcDuringLayout.h" |
| #include "core/frame/EventHandlerRegistry.h" |
| #include "core/frame/FrameConsole.h" |
| #include "core/frame/FrameHost.h" |
| @@ -2101,6 +2102,10 @@ void Document::scheduleSVGFilterLayerUpdateHack(Element& element) |
| return; |
| element.setSVGFilterNeedsLayerUpdate(); |
| m_layerUpdateSVGFilterElements.add(&element); |
| + |
| + DeprecatedScheduleStyleRecalcDuringLayout marker(lifecycle()); |
|
esprehn
2016/01/22 19:24:44
Yeah this is supposed to be forced on all the user
|
| + // This function can sometimes be called while performing layout, |
| + // e.g. when invalidating filters because of relative lengths. |
| scheduleLayoutTreeUpdateIfNeeded(); |
| } |