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

Unified Diff: Source/core/css/CSSToStyleMap.h

Issue 20112002: Have const StyleResolverState return const RenderStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/css/CSSToStyleMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSToStyleMap.h
diff --git a/Source/core/css/CSSToStyleMap.h b/Source/core/css/CSSToStyleMap.h
index 3c39f83639aeb9d89f43531dbc31a0e5501109f4..95eb006305752e046b99c6543a4d5c001cdb51e9 100644
--- a/Source/core/css/CSSToStyleMap.h
+++ b/Source/core/css/CSSToStyleMap.h
@@ -44,10 +44,6 @@ class NinePieceImage;
class CSSToStyleMap {
WTF_MAKE_NONCOPYABLE(CSSToStyleMap);
public:
- // FIXME: This could be const StyleResolverState
- // except styleImage can include a gradient, which
- // may resolve a color and may need to flip bits
- // on StyleResolverState.
CSSToStyleMap(const StyleResolverState& state, ElementStyleResources& elementStyleResources) : m_state(state), m_elementStyleResources(elementStyleResources) { }
void mapFillAttachment(CSSPropertyID, FillLayer*, CSSValue*) const;
@@ -72,14 +68,14 @@ public:
void mapAnimationProperty(CSSAnimationData*, CSSValue*) const;
void mapAnimationTimingFunction(CSSAnimationData*, CSSValue*) const;
- void mapNinePieceImage(CSSPropertyID, CSSValue*, NinePieceImage&);
+ void mapNinePieceImage(RenderStyle* mutableStyle, CSSPropertyID, CSSValue*, NinePieceImage&);
void mapNinePieceImageSlice(CSSValue*, NinePieceImage&) const;
LengthBox mapNinePieceImageQuad(CSSValue*) const;
void mapNinePieceImageRepeat(CSSValue*, NinePieceImage&) const;
private:
- RenderStyle* style() const;
- RenderStyle* rootElementStyle() const;
+ const RenderStyle* style() const;
+ const RenderStyle* rootElementStyle() const;
bool useSVGZoomRules() const;
PassRefPtr<StyleImage> styleImage(CSSPropertyID, CSSValue*);
« no previous file with comments | « no previous file | Source/core/css/CSSToStyleMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698