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

Side by Side 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 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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 PluginDocumentClass = 1 << 3, 206 PluginDocumentClass = 1 << 3,
207 MediaDocumentClass = 1 << 4, 207 MediaDocumentClass = 1 << 4,
208 SVGDocumentClass = 1 << 5, 208 SVGDocumentClass = 1 << 5,
209 XMLDocumentClass = 1 << 6, 209 XMLDocumentClass = 1 << 6,
210 }; 210 };
211 211
212 typedef unsigned char DocumentClassFlags; 212 typedef unsigned char DocumentClassFlags;
213 213
214 class Document; 214 class Document;
215 215
216 class DocumentVisibilityObserver { 216 class DocumentVisibilityObserver : public WillBeGarbageCollectedMixin {
217 public: 217 public:
218 DocumentVisibilityObserver(Document&); 218 DocumentVisibilityObserver(Document&);
219 virtual ~DocumentVisibilityObserver(); 219 virtual ~DocumentVisibilityObserver();
220 220
221 virtual void didChangeVisibilityState(PageVisibilityState) = 0; 221 virtual void didChangeVisibilityState(PageVisibilityState) = 0;
222 222
223 // Classes that inherit Node and DocumentVisibilityObserver must have a 223 // Classes that inherit Node and DocumentVisibilityObserver must have a
224 // virtual override of Node::didMoveToNewDocument that calls 224 // virtual override of Node::didMoveToNewDocument that calls
225 // DocumentVisibilityObserver::setDocument 225 // DocumentVisibilityObserver::setDocument
226 void setObservedDocument(Document&); 226 void setObservedDocument(Document&);
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 850
851 Vector<IconURL> iconURLs(int iconTypesMask); 851 Vector<IconURL> iconURLs(int iconTypesMask);
852 852
853 void setUseSecureKeyboardEntryWhenActive(bool); 853 void setUseSecureKeyboardEntryWhenActive(bool);
854 bool useSecureKeyboardEntryWhenActive() const; 854 bool useSecureKeyboardEntryWhenActive() const;
855 855
856 void updateFocusAppearanceSoon(bool restorePreviousSelection); 856 void updateFocusAppearanceSoon(bool restorePreviousSelection);
857 void cancelFocusAppearanceUpdate(); 857 void cancelFocusAppearanceUpdate();
858 858
859 // Extension for manipulating canvas drawing contexts for use in CSS 859 // Extension for manipulating canvas drawing contexts for use in CSS
860 void getCSSCanvasContext(const String& type, const String& name, int width, int height, bool&, RefPtr<CanvasRenderingContext2D>&, bool&, RefPtr<WebGLRenderi ngContext>&); 860 void getCSSCanvasContext(const String& type, const String& name, int width, int height, bool&, RefPtrWillBeRawPtr<CanvasRenderingContext2D>&, bool&, RefPtrW illBeRawPtr<WebGLRenderingContext>&);
861 HTMLCanvasElement& getCSSCanvasElement(const String& name); 861 HTMLCanvasElement& getCSSCanvasElement(const String& name);
862 862
863 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } 863 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; }
864 void parseDNSPrefetchControlHeader(const String&); 864 void parseDNSPrefetchControlHeader(const String&);
865 865
866 // FIXME(crbug.com/305497): This should be removed once DOMWindow is an Exec utionContext. 866 // FIXME(crbug.com/305497): This should be removed once DOMWindow is an Exec utionContext.
867 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE; // Execute s the task on context's thread asynchronously. 867 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE; // Execute s the task on context's thread asynchronously.
868 868
869 virtual void tasksWereSuspended() OVERRIDE FINAL; 869 virtual void tasksWereSuspended() OVERRIDE FINAL;
870 virtual void tasksWereResumed() OVERRIDE FINAL; 870 virtual void tasksWereResumed() OVERRIDE FINAL;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 bool dirtyElementsForLayerUpdate(); 1094 bool dirtyElementsForLayerUpdate();
1095 void updateDistributionIfNeeded(); 1095 void updateDistributionIfNeeded();
1096 void updateUseShadowTreesIfNeeded(); 1096 void updateUseShadowTreesIfNeeded();
1097 void evaluateMediaQueryListIfNeeded(); 1097 void evaluateMediaQueryListIfNeeded();
1098 1098
1099 void updateRenderTree(StyleRecalcChange); 1099 void updateRenderTree(StyleRecalcChange);
1100 void updateStyle(StyleRecalcChange); 1100 void updateStyle(StyleRecalcChange);
1101 1101
1102 void detachParser(); 1102 void detachParser();
1103 1103
1104 void clearWeakMembers(Visitor*);
1105
1104 virtual bool isDocument() const OVERRIDE FINAL { return true; } 1106 virtual bool isDocument() const OVERRIDE FINAL { return true; }
1105 1107
1106 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; 1108 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
1107 1109
1108 virtual String nodeName() const OVERRIDE FINAL; 1110 virtual String nodeName() const OVERRIDE FINAL;
1109 virtual NodeType nodeType() const OVERRIDE FINAL; 1111 virtual NodeType nodeType() const OVERRIDE FINAL;
1110 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL; 1112 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL;
1111 virtual PassRefPtr<Node> cloneNode(bool deep = true) OVERRIDE FINAL; 1113 virtual PassRefPtr<Node> cloneNode(bool deep = true) OVERRIDE FINAL;
1112 void cloneDataFromDocument(const Document&); 1114 void cloneDataFromDocument(const Document&);
1113 1115
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument). 1365 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument).
1364 1366
1365 Timer<Document> m_didAssociateFormControlsTimer; 1367 Timer<Document> m_didAssociateFormControlsTimer;
1366 HashSet<RefPtr<Element> > m_associatedFormControls; 1368 HashSet<RefPtr<Element> > m_associatedFormControls;
1367 1369
1368 HashSet<SVGUseElement*> m_useElementsNeedingUpdate; 1370 HashSet<SVGUseElement*> m_useElementsNeedingUpdate;
1369 HashSet<Element*> m_layerUpdateElements; 1371 HashSet<Element*> m_layerUpdateElements;
1370 1372
1371 bool m_hasViewportUnits; 1373 bool m_hasViewportUnits;
1372 1374
1373 HashSet<DocumentVisibilityObserver*> m_visibilityObservers; 1375 WillBeHeapHashSet<RawPtrWillBeWeakMember<DocumentVisibilityObserver> > m_vis ibilityObservers;
1374 }; 1376 };
1375 1377
1376 inline void Document::notifyRemovePendingSheetIfNeeded() 1378 inline void Document::notifyRemovePendingSheetIfNeeded()
1377 { 1379 {
1378 if (m_needsNotifyRemoveAllPendingStylesheet) 1380 if (m_needsNotifyRemoveAllPendingStylesheet)
1379 didRemoveAllPendingStylesheet(); 1381 didRemoveAllPendingStylesheet();
1380 } 1382 }
1381 1383
1382 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1384 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1383 { 1385 {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 inline bool Node::isDocumentNode() const 1429 inline bool Node::isDocumentNode() const
1428 { 1430 {
1429 return this == document(); 1431 return this == document();
1430 } 1432 }
1431 1433
1432 Node* eventTargetNodeForDocument(Document*); 1434 Node* eventTargetNodeForDocument(Document*);
1433 1435
1434 } // namespace WebCore 1436 } // namespace WebCore
1435 1437
1436 #endif // Document_h 1438 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698