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

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

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Created 4 years, 5 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, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Google, Inc. 5 * Copyright (C) 2014 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 if (SVGFitToViewBox::isKnownAttribute(attrName)) { 270 if (SVGFitToViewBox::isKnownAttribute(attrName)) {
271 updateRelativeLengthsOrViewBox = true; 271 updateRelativeLengthsOrViewBox = true;
272 invalidateRelativeLengthClients(); 272 invalidateRelativeLengthClients();
273 if (LayoutObject* object = layoutObject()) 273 if (LayoutObject* object = layoutObject())
274 object->setNeedsTransformUpdate(); 274 object->setNeedsTransformUpdate();
275 } 275 }
276 276
277 if (updateRelativeLengthsOrViewBox 277 if (updateRelativeLengthsOrViewBox
278 || SVGZoomAndPan::isKnownAttribute(attrName)) { 278 || SVGZoomAndPan::isKnownAttribute(attrName)) {
279 SVGElement::InvalidationGuard invalidationGuard(this); 279 SVGElement::InvalidationGuard invalidationGuard(this);
280 if (layoutObject()) 280 if (hasLayoutObject())
281 markForLayoutAndParentResourceInvalidation(layoutObject()); 281 markForLayoutAndParentResourceInvalidation(layoutObject());
282 return; 282 return;
283 } 283 }
284 284
285 SVGGraphicsElement::svgAttributeChanged(attrName); 285 SVGGraphicsElement::svgAttributeChanged(attrName);
286 } 286 }
287 287
288 // FloatRect::intersects does not consider horizontal or vertical lines (because of isEmpty()). 288 // FloatRect::intersects does not consider horizontal or vertical lines (because of isEmpty()).
289 static bool intersectsAllowingEmpty(const FloatRect& r1, const FloatRect& r2) 289 static bool intersectsAllowingEmpty(const FloatRect& r1, const FloatRect& r2)
290 { 290 {
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 visitor->trace(m_width); 739 visitor->trace(m_width);
740 visitor->trace(m_height); 740 visitor->trace(m_height);
741 visitor->trace(m_translation); 741 visitor->trace(m_translation);
742 visitor->trace(m_timeContainer); 742 visitor->trace(m_timeContainer);
743 visitor->trace(m_viewSpec); 743 visitor->trace(m_viewSpec);
744 SVGGraphicsElement::trace(visitor); 744 SVGGraphicsElement::trace(visitor);
745 SVGFitToViewBox::trace(visitor); 745 SVGFitToViewBox::trace(visitor);
746 } 746 }
747 747
748 } // namespace blink 748 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698