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

Side by Side Diff: Source/core/svg/SVGUseElement.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/svg/SVGUseElement.h ('k') | Source/core/svg/SVGViewElement.h » ('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, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
6 * Copyright (C) 2012 University of Szeged 6 * Copyright (C) 2012 University of Szeged
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 431
432 m_targetElementInstance = toSVGElement(shadowTreeRootElement->firstChild()); 432 m_targetElementInstance = toSVGElement(shadowTreeRootElement->firstChild());
433 transferUseWidthAndHeightIfNeeded(*this, m_targetElementInstance.get(), *m_t argetElementInstance->correspondingElement()); 433 transferUseWidthAndHeightIfNeeded(*this, m_targetElementInstance.get(), *m_t argetElementInstance->correspondingElement());
434 434
435 ASSERT(m_targetElementInstance->parentNode() == shadowTreeRootElement); 435 ASSERT(m_targetElementInstance->parentNode() == shadowTreeRootElement);
436 436
437 // Update relative length information. 437 // Update relative length information.
438 updateRelativeLengthsInformation(); 438 updateRelativeLengthsInformation();
439 } 439 }
440 440
441 LayoutObject* SVGUseElement::createLayoutObject(const LayoutStyle&) 441 LayoutObject* SVGUseElement::createLayoutObject(const ComputedStyle&)
442 { 442 {
443 return new LayoutSVGTransformableContainer(this); 443 return new LayoutSVGTransformableContainer(this);
444 } 444 }
445 445
446 static bool isDirectReference(const SVGElement& element) 446 static bool isDirectReference(const SVGElement& element)
447 { 447 {
448 return isSVGPathElement(element) 448 return isSVGPathElement(element)
449 || isSVGRectElement(element) 449 || isSVGRectElement(element)
450 || isSVGCircleElement(element) 450 || isSVGCircleElement(element)
451 || isSVGEllipseElement(element) 451 || isSVGEllipseElement(element)
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 781
782 if (m_resource) 782 if (m_resource)
783 m_resource->removeClient(this); 783 m_resource->removeClient(this);
784 784
785 m_resource = resource; 785 m_resource = resource;
786 if (m_resource) 786 if (m_resource)
787 m_resource->addClient(this); 787 m_resource->addClient(this);
788 } 788 }
789 789
790 } 790 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGUseElement.h ('k') | Source/core/svg/SVGViewElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698