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

Side by Side Diff: Source/core/css/resolver/CSSToStyleMap.h

Issue 208053004: Oilpan: "Move" ElementStyleResources to the oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google 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 26 matching lines...) Expand all
37 class StyleImage; 37 class StyleImage;
38 class StyleResolverState; 38 class StyleResolverState;
39 class NinePieceImage; 39 class NinePieceImage;
40 class BorderImageLengthBox; 40 class BorderImageLengthBox;
41 41
42 // CSSToStyleMap is a short-lived helper object which 42 // CSSToStyleMap is a short-lived helper object which
43 // given the current StyleResolverState can map 43 // given the current StyleResolverState can map
44 // CSSValue objects into their RenderStyle equivalents. 44 // CSSValue objects into their RenderStyle equivalents.
45 45
46 class CSSToStyleMap { 46 class CSSToStyleMap {
47 STACK_ALLOCATED();
47 WTF_MAKE_NONCOPYABLE(CSSToStyleMap); 48 WTF_MAKE_NONCOPYABLE(CSSToStyleMap);
48 public: 49 public:
49 CSSToStyleMap(const StyleResolverState& state, ElementStyleResources& elemen tStyleResources) : m_state(state), m_elementStyleResources(elementStyleResources ) { } 50 CSSToStyleMap(const StyleResolverState& state, ElementStyleResources& elemen tStyleResources) : m_state(state), m_elementStyleResources(elementStyleResources ) { }
50
51 void mapFillAttachment(CSSPropertyID, FillLayer*, CSSValue*) const; 51 void mapFillAttachment(CSSPropertyID, FillLayer*, CSSValue*) const;
52 void mapFillClip(CSSPropertyID, FillLayer*, CSSValue*) const; 52 void mapFillClip(CSSPropertyID, FillLayer*, CSSValue*) const;
53 void mapFillComposite(CSSPropertyID, FillLayer*, CSSValue*) const; 53 void mapFillComposite(CSSPropertyID, FillLayer*, CSSValue*) const;
54 void mapFillBlendMode(CSSPropertyID, FillLayer*, CSSValue*) const; 54 void mapFillBlendMode(CSSPropertyID, FillLayer*, CSSValue*) const;
55 void mapFillOrigin(CSSPropertyID, FillLayer*, CSSValue*) const; 55 void mapFillOrigin(CSSPropertyID, FillLayer*, CSSValue*) const;
56 void mapFillImage(CSSPropertyID, FillLayer*, CSSValue*); 56 void mapFillImage(CSSPropertyID, FillLayer*, CSSValue*);
57 void mapFillRepeatX(CSSPropertyID, FillLayer*, CSSValue*) const; 57 void mapFillRepeatX(CSSPropertyID, FillLayer*, CSSValue*) const;
58 void mapFillRepeatY(CSSPropertyID, FillLayer*, CSSValue*) const; 58 void mapFillRepeatY(CSSPropertyID, FillLayer*, CSSValue*) const;
59 void mapFillSize(CSSPropertyID, FillLayer*, CSSValue*) const; 59 void mapFillSize(CSSPropertyID, FillLayer*, CSSValue*) const;
60 void mapFillXPosition(CSSPropertyID, FillLayer*, CSSValue*) const; 60 void mapFillXPosition(CSSPropertyID, FillLayer*, CSSValue*) const;
(...skipping 24 matching lines...) Expand all
85 85
86 // FIXME: Consider passing a StyleResolverState (or ElementResolveState) 86 // FIXME: Consider passing a StyleResolverState (or ElementResolveState)
87 // as an argument instead of caching it on this object. 87 // as an argument instead of caching it on this object.
88 const StyleResolverState& m_state; 88 const StyleResolverState& m_state;
89 ElementStyleResources& m_elementStyleResources; 89 ElementStyleResources& m_elementStyleResources;
90 }; 90 };
91 91
92 } 92 }
93 93
94 #endif 94 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/resolver/ElementStyleResources.h » ('j') | Source/core/css/resolver/ElementStyleResources.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698