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

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

Issue 2694573002: Don't unconditionally create a LayoutObject for SVGMarkerElement. (Closed)
Patch Set: Don't unconditionally create a LayoutObject for SVGMarkerElement. Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMarkerElement.h ('k') | no next file » | 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 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann
3 * <zimmermann@kde.org> 3 * <zimmermann@kde.org>
4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 return new LayoutSVGResourceMarker(this); 151 return new LayoutSVGResourceMarker(this);
152 } 152 }
153 153
154 bool SVGMarkerElement::selfHasRelativeLengths() const { 154 bool SVGMarkerElement::selfHasRelativeLengths() const {
155 return m_refX->currentValue()->isRelative() || 155 return m_refX->currentValue()->isRelative() ||
156 m_refY->currentValue()->isRelative() || 156 m_refY->currentValue()->isRelative() ||
157 m_markerWidth->currentValue()->isRelative() || 157 m_markerWidth->currentValue()->isRelative() ||
158 m_markerHeight->currentValue()->isRelative(); 158 m_markerHeight->currentValue()->isRelative();
159 } 159 }
160 160
161 bool SVGMarkerElement::layoutObjectIsNeeded(const ComputedStyle&) {
162 ContainerNode* parent = FlatTreeTraversal::parent(*this);
163 return parent && parent->isSVGElement() && isValid();
164 }
165
161 } // namespace blink 166 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMarkerElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698