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

Side by Side Diff: Source/core/rendering/svg/RenderSVGRoot.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. Created 5 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 | Annotate | Revision Log
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 setNeedsBoundariesUpdate(); 233 setNeedsBoundariesUpdate();
234 if (diff.needsPaintInvalidation()) { 234 if (diff.needsPaintInvalidation()) {
235 // Box decorations may have appeared/disappeared - recompute status. 235 // Box decorations may have appeared/disappeared - recompute status.
236 m_hasBoxDecorationBackground = calculateHasBoxDecorations(); 236 m_hasBoxDecorationBackground = calculateHasBoxDecorations();
237 } 237 }
238 238
239 RenderReplaced::styleDidChange(diff, oldStyle); 239 RenderReplaced::styleDidChange(diff, oldStyle);
240 SVGResourcesCache::clientStyleChanged(this, diff, style()); 240 SVGResourcesCache::clientStyleChanged(this, diff, style());
241 } 241 }
242 242
243 bool RenderSVGRoot::isChildAllowed(RenderObject* child, RenderStyle*) const 243 bool RenderSVGRoot::isChildAllowed(RenderObject* child, const RenderStyle*) cons t
244 { 244 {
245 return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText()) ; 245 return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText()) ;
246 } 246 }
247 247
248 void RenderSVGRoot::addChild(RenderObject* child, RenderObject* beforeChild) 248 void RenderSVGRoot::addChild(RenderObject* child, RenderObject* beforeChild)
249 { 249 {
250 RenderReplaced::addChild(child, beforeChild); 250 RenderReplaced::addChild(child, beforeChild);
251 SVGResourcesCache::clientWasAddedToTree(child, child->style()); 251 SVGResourcesCache::clientWasAddedToTree(child, child->style());
252 252
253 bool shouldIsolateDescendants = (child->isBlendingAllowed() && child->style( )->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants(); 253 bool shouldIsolateDescendants = (child->isBlendingAllowed() && child->style( )->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants();
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 updateHitTestResult(result, pointInBorderBox); 431 updateHitTestResult(result, pointInBorderBox);
432 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn Container, boundsRect)) 432 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn Container, boundsRect))
433 return true; 433 return true;
434 } 434 }
435 } 435 }
436 436
437 return false; 437 return false;
438 } 438 }
439 439
440 } 440 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698