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

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: virtual destructor 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
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 || this->isDocumentElement(); 196 || this->isDocumentElement();
197 } 197 }
198 198
199 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset) const 199 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset) const
200 { 200 {
201 SVGRootPainter(*this).paint(paintInfo, paintOffset); 201 SVGRootPainter(*this).paint(paintInfo, paintOffset);
202 } 202 }
203 203
204 void LayoutSVGRoot::willBeDestroyed() 204 void LayoutSVGRoot::willBeDestroyed()
205 { 205 {
206 LayoutBlock::removePercentHeightDescendant(const_cast<LayoutSVGRoot*>(this)) ;
207
208 SVGResourcesCache::clientDestroyed(this); 206 SVGResourcesCache::clientDestroyed(this);
209 LayoutReplaced::willBeDestroyed(); 207 LayoutReplaced::willBeDestroyed();
210 } 208 }
211 209
212 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol dStyle) 210 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol dStyle)
213 { 211 {
214 if (diff.needsFullLayout()) 212 if (diff.needsFullLayout())
215 setNeedsBoundariesUpdate(); 213 setNeedsBoundariesUpdate();
216 if (diff.needsPaintInvalidation()) { 214 if (diff.needsPaintInvalidation()) {
217 // Box decorations may have appeared/disappeared - recompute status. 215 // Box decorations may have appeared/disappeared - recompute status.
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 updateHitTestResult(result, pointInBorderBox); 407 updateHitTestResult(result, pointInBorderBox);
410 if (!result.addNodeToListBasedTestResult(node(), locationInContainer , boundsRect)) 408 if (!result.addNodeToListBasedTestResult(node(), locationInContainer , boundsRect))
411 return true; 409 return true;
412 } 410 }
413 } 411 }
414 412
415 return false; 413 return false;
416 } 414 }
417 415
418 } 416 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698