Commit d350469c authored by wibling@chromium.org's avatar wibling@chromium.org

Oilpan: "Move" ElementStyleResources to the oilpan heap.

ElementStyleResources are only allocated as a part object of another stack allocated object so we don't need
to use persistent heap collections as the entries will be marked conservatively via the stack.

R=ager@chromium.org, erik.corry@gmail.com, haraken@chromium.org, oilpan-reviews@chromium.org, tkent@chromium.org, vegorov@chromium.org, zerny@chromium.org
BUG=341815

Review URL: https://codereview.chromium.org/208053004

git-svn-id: svn://svn.chromium.org/blink/trunk@169838 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 67ff2b43
......@@ -44,10 +44,10 @@ class BorderImageLengthBox;
// CSSValue objects into their RenderStyle equivalents.
class CSSToStyleMap {
STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(CSSToStyleMap);
public:
CSSToStyleMap(const StyleResolverState& state, ElementStyleResources& elementStyleResources) : m_state(state), m_elementStyleResources(elementStyleResources) { }
void mapFillAttachment(CSSPropertyID, FillLayer*, CSSValue*) const;
void mapFillClip(CSSPropertyID, FillLayer*, CSSValue*) const;
void mapFillComposite(CSSPropertyID, FillLayer*, CSSValue*) const;
......
......@@ -41,12 +41,13 @@ class FilterOperation;
class StyleImage;
class TextLinkColors;
typedef WillBePersistentHeapHashMap<FilterOperation*, RefPtrWillBeMember<CSSSVGDocumentValue> > PendingSVGDocumentMap;
typedef WillBePersistentHeapHashMap<CSSPropertyID, RefPtrWillBeMember<CSSValue> > PendingImagePropertyMap;
typedef WillBeHeapHashMap<FilterOperation*, RefPtrWillBeMember<CSSSVGDocumentValue> > PendingSVGDocumentMap;
typedef WillBeHeapHashMap<CSSPropertyID, RefPtrWillBeMember<CSSValue> > PendingImagePropertyMap;
// Holds information about resources, requested by stylesheets.
// Lifetime: per-element style resolve.
class ElementStyleResources {
STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(ElementStyleResources);
public:
ElementStyleResources();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment