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

Unified Diff: Source/core/dom/Document.h

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 659a2cc4889d1c5c882952be6401ba919c1537d1..3dc05123461b81e54db3e2259e6734789113670f 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -213,7 +213,7 @@ typedef unsigned char DocumentClassFlags;
class Document;
-class DocumentVisibilityObserver {
+class DocumentVisibilityObserver : public WillBeGarbageCollectedMixin {
public:
DocumentVisibilityObserver(Document&);
virtual ~DocumentVisibilityObserver();
@@ -857,7 +857,7 @@ public:
void cancelFocusAppearanceUpdate();
// Extension for manipulating canvas drawing contexts for use in CSS
- void getCSSCanvasContext(const String& type, const String& name, int width, int height, bool&, RefPtr<CanvasRenderingContext2D>&, bool&, RefPtr<WebGLRenderingContext>&);
+ void getCSSCanvasContext(const String& type, const String& name, int width, int height, bool&, RefPtrWillBeRawPtr<CanvasRenderingContext2D>&, bool&, RefPtrWillBeRawPtr<WebGLRenderingContext>&);
HTMLCanvasElement& getCSSCanvasElement(const String& name);
bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; }
@@ -1101,6 +1101,8 @@ private:
void detachParser();
+ void clearWeakMembers(Visitor*);
+
virtual bool isDocument() const OVERRIDE FINAL { return true; }
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
@@ -1370,7 +1372,7 @@ private:
bool m_hasViewportUnits;
- HashSet<DocumentVisibilityObserver*> m_visibilityObservers;
+ WillBeHeapHashSet<RawPtrWillBeWeakMember<DocumentVisibilityObserver> > m_visibilityObservers;
};
inline void Document::notifyRemovePendingSheetIfNeeded()

Powered by Google App Engine
This is Rietveld 408576698