Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 1544973002: Document lifecycle violation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move marked further downstream instead. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 93aade61f3fcfd4d48cf4bc614194e1c05122aa4..89b2d5ad05c5036e06d9146774b931bc5673a793 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2542,10 +2542,8 @@ void FrameView::updateStyleAndLayoutIfNeededRecursive()
for (const auto& frameView : frameViews)
frameView->updateStyleAndLayoutIfNeededRecursive();
- // When an <iframe> gets composited, it triggers an extra style recalc in its containing FrameView.
- // To avoid pushing an invalid tree for display, we have to check for this case and do another
- // style recalc. The extra style recalc needs to happen after our child <iframes> were updated.
- // FIXME: We shouldn't be triggering an extra style recalc in the first place.
+ // When SVG filters are invalidated using Document::scheduleSVGFilterLayerUpdateHack() they may require an
+ // extra layout tree update.
if (m_frame->document()->hasSVGFilterElementsRequiringLayerUpdate()) {
m_frame->document()->updateLayoutTreeIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698