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

Side by Side Diff: Source/core/layout/svg/LayoutSVGResourceContainer.h

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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 28 matching lines...) Expand all
39 39
40 class LayoutSVGResourceContainer : public LayoutSVGHiddenContainer { 40 class LayoutSVGResourceContainer : public LayoutSVGHiddenContainer {
41 public: 41 public:
42 explicit LayoutSVGResourceContainer(SVGElement*); 42 explicit LayoutSVGResourceContainer(SVGElement*);
43 virtual ~LayoutSVGResourceContainer(); 43 virtual ~LayoutSVGResourceContainer();
44 44
45 virtual void removeAllClientsFromCache(bool markForInvalidation = true) = 0; 45 virtual void removeAllClientsFromCache(bool markForInvalidation = true) = 0;
46 virtual void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) = 0; 46 virtual void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) = 0;
47 47
48 virtual void layout() override; 48 virtual void layout() override;
49 virtual void styleDidChange(StyleDifference, const LayoutStyle* oldStyle) ov erride final; 49 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override final;
50 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGResourceContainer || LayoutSVGHiddenContainer::isOfType(type); } 50 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGResourceContainer || LayoutSVGHiddenContainer::isOfType(type); }
51 51
52 virtual LayoutSVGResourceType resourceType() const = 0; 52 virtual LayoutSVGResourceType resourceType() const = 0;
53 53
54 bool isSVGPaintServer() const 54 bool isSVGPaintServer() const
55 { 55 {
56 LayoutSVGResourceType resourceType = this->resourceType(); 56 LayoutSVGResourceType resourceType = this->resourceType();
57 return resourceType == PatternResourceType 57 return resourceType == PatternResourceType
58 || resourceType == LinearGradientResourceType 58 || resourceType == LinearGradientResourceType
59 || resourceType == RadialGradientResourceType; 59 || resourceType == RadialGradientResourceType;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceContainer, isSVGResourceContain er()); 130 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceContainer, isSVGResourceContain er());
131 131
132 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ 132 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \
133 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, resource-> resourceType() == typeName, resource.resourceType() == typeName) 133 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, resource-> resourceType() == typeName, resource.resourceType() == typeName)
134 134
135 } 135 }
136 136
137 #endif 137 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceClipper.cpp ('k') | Source/core/layout/svg/LayoutSVGResourceContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698