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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 2690 matching lines...) Expand 10 before | Expand all | Expand 10 after
2701 filterInfo->setBuilder(nullptr); 2701 filterInfo->setBuilder(nullptr);
2702 2702
2703 return; 2703 return;
2704 } 2704 }
2705 2705
2706 ensureFilterInfo()->setBuilder(nullptr); 2706 ensureFilterInfo()->setBuilder(nullptr);
2707 } 2707 }
2708 2708
2709 void PaintLayer::filterNeedsPaintInvalidation() 2709 void PaintLayer::filterNeedsPaintInvalidation()
2710 { 2710 {
2711 { 2711 toElement(layoutObject()->node())->scheduleSVGFilterLayerUpdateHack();
2712 DeprecatedScheduleStyleRecalcDuringLayout marker(layoutObject()->documen t().lifecycle());
2713 // It's possible for scheduleSVGFilterLayerUpdateHack to schedule a styl e recalc, which
2714 // is a problem because this function can be called while performing lay out.
2715 // Presumably this represents an illegal data flow of layout or composit ing
2716 // information into the style system.
2717 toElement(layoutObject()->node())->scheduleSVGFilterLayerUpdateHack();
2718 }
2719 2712
2720 layoutObject()->setShouldDoFullPaintInvalidation(); 2713 layoutObject()->setShouldDoFullPaintInvalidation();
2721 } 2714 }
2722 2715
2723 void PaintLayer::addLayerHitTestRects(LayerHitTestRects& rects) const 2716 void PaintLayer::addLayerHitTestRects(LayerHitTestRects& rects) const
2724 { 2717 {
2725 computeSelfHitTestRects(rects); 2718 computeSelfHitTestRects(rects);
2726 for (PaintLayer* child = firstChild(); child; child = child->nextSibling()) 2719 for (PaintLayer* child = firstChild(); child; child = child->nextSibling())
2727 child->addLayerHitTestRects(rects); 2720 child->addLayerHitTestRects(rects);
2728 } 2721 }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2830 2823
2831 void showLayerTree(const blink::LayoutObject* layoutObject) 2824 void showLayerTree(const blink::LayoutObject* layoutObject)
2832 { 2825 {
2833 if (!layoutObject) { 2826 if (!layoutObject) {
2834 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); 2827 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n");
2835 return; 2828 return;
2836 } 2829 }
2837 showLayerTree(layoutObject->enclosingLayer()); 2830 showLayerTree(layoutObject->enclosingLayer());
2838 } 2831 }
2839 #endif 2832 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698