Index: Source/core/dom/StyleEngine.h |
diff --git a/Source/core/dom/StyleEngine.h b/Source/core/dom/StyleEngine.h |
index 083b91dc3c31805809992b2ab35f0f05fa07d7cb..d8ee91397a2b9b56700476d6638154f60fea4bd1 100644 |
--- a/Source/core/dom/StyleEngine.h |
+++ b/Source/core/dom/StyleEngine.h |
@@ -71,8 +71,8 @@ private: |
bool m_needsStyleRecalc; |
}; |
-class StyleEngine { |
- WTF_MAKE_FAST_ALLOCATED; |
+class StyleEngine : public NoBaseWillBeGarbageCollectedFinalized<StyleEngine> { |
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
public: |
class IgnoringPendingStylesheet : public TemporaryChange<bool> { |
@@ -85,7 +85,7 @@ public: |
friend class IgnoringPendingStylesheet; |
- static PassOwnPtr<StyleEngine> create(Document& document) { return adoptPtr(new StyleEngine(document)); } |
+ static PassOwnPtrWillBeRawPtr<StyleEngine> create(Document& document) { return adoptPtrWillBeNoop(new StyleEngine(document)); } |
~StyleEngine(); |
@@ -184,6 +184,8 @@ public: |
static PassRefPtr<CSSStyleSheet> createSheet(Element*, const String& text, TextPosition startPosition, bool createdByParser); |
static void removeSheet(StyleSheetContents*); |
+ void trace(Visitor*) { } |
+ |
private: |
StyleEngine(Document&); |