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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/svg/LayoutSVGRoot.h ('k') | Source/core/layout/svg/LayoutSVGShape.cpp » ('j') | 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) 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 void LayoutSVGRoot::willBeDestroyed() 218 void LayoutSVGRoot::willBeDestroyed()
219 { 219 {
220 LayoutBlock::removePercentHeightDescendant(const_cast<LayoutSVGRoot*>(this)) ; 220 LayoutBlock::removePercentHeightDescendant(const_cast<LayoutSVGRoot*>(this)) ;
221 221
222 SVGResourcesCache::clientDestroyed(this); 222 SVGResourcesCache::clientDestroyed(this);
223 LayoutReplaced::willBeDestroyed(); 223 LayoutReplaced::willBeDestroyed();
224 } 224 }
225 225
226 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const LayoutStyle* oldS tyle) 226 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol dStyle)
227 { 227 {
228 if (diff.needsFullLayout()) 228 if (diff.needsFullLayout())
229 setNeedsBoundariesUpdate(); 229 setNeedsBoundariesUpdate();
230 if (diff.needsPaintInvalidation()) { 230 if (diff.needsPaintInvalidation()) {
231 // Box decorations may have appeared/disappeared - recompute status. 231 // Box decorations may have appeared/disappeared - recompute status.
232 m_hasBoxDecorationBackground = calculateHasBoxDecorations(); 232 m_hasBoxDecorationBackground = calculateHasBoxDecorations();
233 } 233 }
234 234
235 LayoutReplaced::styleDidChange(diff, oldStyle); 235 LayoutReplaced::styleDidChange(diff, oldStyle);
236 SVGResourcesCache::clientStyleChanged(this, diff, styleRef()); 236 SVGResourcesCache::clientStyleChanged(this, diff, styleRef());
237 } 237 }
238 238
239 bool LayoutSVGRoot::isChildAllowed(LayoutObject* child, const LayoutStyle&) cons t 239 bool LayoutSVGRoot::isChildAllowed(LayoutObject* child, const ComputedStyle&) co nst
240 { 240 {
241 return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText() || child->isSVGGradientStop()); 241 return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText() || child->isSVGGradientStop());
242 } 242 }
243 243
244 void LayoutSVGRoot::addChild(LayoutObject* child, LayoutObject* beforeChild) 244 void LayoutSVGRoot::addChild(LayoutObject* child, LayoutObject* beforeChild)
245 { 245 {
246 LayoutReplaced::addChild(child, beforeChild); 246 LayoutReplaced::addChild(child, beforeChild);
247 SVGResourcesCache::clientWasAddedToTree(child, child->styleRef()); 247 SVGResourcesCache::clientWasAddedToTree(child, child->styleRef());
248 248
249 bool shouldIsolateDescendants = (child->isBlendingAllowed() && child->style( )->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants(); 249 bool shouldIsolateDescendants = (child->isBlendingAllowed() && child->style( )->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants();
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 updateHitTestResult(result, pointInBorderBox); 427 updateHitTestResult(result, pointInBorderBox);
428 if (!result.addNodeToListBasedTestResult(node(), request, locationIn Container, boundsRect)) 428 if (!result.addNodeToListBasedTestResult(node(), request, locationIn Container, boundsRect))
429 return true; 429 return true;
430 } 430 }
431 } 431 }
432 432
433 return false; 433 return false;
434 } 434 }
435 435
436 } 436 }
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGRoot.h ('k') | Source/core/layout/svg/LayoutSVGShape.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698