Commit b4e817f6 authored by tkent@chromium.org's avatar tkent@chromium.org

Oilpan: Mark SVGElement::InvalidationGuard and SVGElement::InstanceUpdateBlocker STACK_ALLOCATED().

and makes their element members Member<>.

BUG=357163

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176271 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3fecb6e5
......@@ -160,22 +160,25 @@ public:
bool inUseShadowTree() const;
class InvalidationGuard {
STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(InvalidationGuard);
public:
InvalidationGuard(SVGElement* element) : m_element(element) { }
~InvalidationGuard() { m_element->invalidateInstances(); }
private:
SVGElement* m_element;
RawPtrWillBeMember<SVGElement> m_element;
};
class InstanceUpdateBlocker {
STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(InstanceUpdateBlocker);
public:
InstanceUpdateBlocker(SVGElement* targetElement);
~InstanceUpdateBlocker();
private:
SVGElement* m_targetElement;
RawPtrWillBeMember<SVGElement> m_targetElement;
};
void invalidateInstances();
......
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