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

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

Issue 1583653002: Remove the SVG update hack. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8e3966173f04510d92f6e7aa796d111483da55b4..b4642f00293f08870427bb130d1dae3ccaf496b2 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2556,16 +2556,15 @@ void FrameView::updateStyleAndLayoutIfNeededRecursive()
// 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.
- if (m_frame->document()->hasSVGFilterElementsRequiringLayerUpdate()) {
- m_frame->document()->updateLayoutTreeIfNeeded();
+ // if (m_frame->document()->hasSVGFilterElementsRequiringLayerUpdate()) {
+ // m_frame->document()->updateLayoutTreeIfNeeded();
- if (needsLayout())
- layout();
- }
+ // if (needsLayout())
+ // layout();
+ // }
// These asserts ensure that parent frames are clean, when child frames finished updating layout and style.
ASSERT(!needsLayout());
- ASSERT(!m_frame->document()->hasSVGFilterElementsRequiringLayerUpdate());
#if ENABLE(ASSERT)
m_frame->document()->layoutView()->assertLaidOut();
#endif
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698