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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp

Issue 1544423002: Improve positioned/percentHeight descendant/container tracking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 || this->isDocumentElement(); 188 || this->isDocumentElement();
189 } 189 }
190 190
191 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset) const 191 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset) const
192 { 192 {
193 SVGRootPainter(*this).paint(paintInfo, paintOffset); 193 SVGRootPainter(*this).paint(paintInfo, paintOffset);
194 } 194 }
195 195
196 void LayoutSVGRoot::willBeDestroyed() 196 void LayoutSVGRoot::willBeDestroyed()
197 { 197 {
198 LayoutBlock::removePercentHeightDescendant(const_cast<LayoutSVGRoot*>(this)) ;
199
200 SVGResourcesCache::clientDestroyed(this); 198 SVGResourcesCache::clientDestroyed(this);
201 LayoutReplaced::willBeDestroyed(); 199 LayoutReplaced::willBeDestroyed();
202 } 200 }
203 201
204 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol dStyle) 202 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol dStyle)
205 { 203 {
206 if (diff.needsFullLayout()) 204 if (diff.needsFullLayout())
207 setNeedsBoundariesUpdate(); 205 setNeedsBoundariesUpdate();
208 if (diff.needsPaintInvalidation()) { 206 if (diff.needsPaintInvalidation()) {
209 // Box decorations may have appeared/disappeared - recompute status. 207 // Box decorations may have appeared/disappeared - recompute status.
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 updateHitTestResult(result, pointInBorderBox); 399 updateHitTestResult(result, pointInBorderBox);
402 if (!result.addNodeToListBasedTestResult(node(), locationInContainer , boundsRect)) 400 if (!result.addNodeToListBasedTestResult(node(), locationInContainer , boundsRect))
403 return true; 401 return true;
404 } 402 }
405 } 403 }
406 404
407 return false; 405 return false;
408 } 406 }
409 407
410 } // namespace blink 408 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698