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

Side by Side Diff: Source/core/svg/SVGElement.h

Issue 1111223002: Invalidate ancestor resources in when relative lengths change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TEs. Created 5 years, 7 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, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2009, 2014 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override; 204 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override;
205 205
206 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; 206 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
207 virtual void removedFrom(ContainerNode*) override; 207 virtual void removedFrom(ContainerNode*) override;
208 virtual void childrenChanged(const ChildrenChange&) override; 208 virtual void childrenChanged(const ChildrenChange&) override;
209 209
210 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); 210 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&);
211 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s elfHasRelativeLengths(), this); } 211 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s elfHasRelativeLengths(), this); }
212 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); 212 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*);
213 static void markForLayoutAndParentResourceInvalidation(LayoutObject*); 213 static void markForLayoutAndParentResourceInvalidation(LayoutObject*, Subtre eLayoutScope* = nullptr);
214 214
215 virtual bool selfHasRelativeLengths() const { return false; } 215 virtual bool selfHasRelativeLengths() const { return false; }
216 216
217 SVGElementRareData* ensureSVGRareData(); 217 SVGElementRareData* ensureSVGRareData();
218 inline bool hasSVGRareData() const { return m_SVGRareData; } 218 inline bool hasSVGRareData() const { return m_SVGRareData; }
219 inline SVGElementRareData* svgRareData() const 219 inline SVGElementRareData* svgRareData() const
220 { 220 {
221 ASSERT(m_SVGRareData); 221 ASSERT(m_SVGRareData);
222 return m_SVGRareData.get(); 222 return m_SVGRareData.get();
223 } 223 }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \ 282 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \
283 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \ 283 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \
284 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 284 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
285 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 285 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
286 286
287 } // namespace blink 287 } // namespace blink
288 288
289 #include "core/SVGElementTypeHelpers.h" 289 #include "core/SVGElementTypeHelpers.h"
290 290
291 #endif // SVGElement_h 291 #endif // SVGElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698