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

Side by Side Diff: Source/core/dom/Document.h

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 virtual ~DocumentVisibilityObserver(); 202 virtual ~DocumentVisibilityObserver();
203 203
204 virtual void didChangeVisibilityState(PageVisibilityState) = 0; 204 virtual void didChangeVisibilityState(PageVisibilityState) = 0;
205 205
206 // Classes that inherit Node and DocumentVisibilityObserver must have a 206 // Classes that inherit Node and DocumentVisibilityObserver must have a
207 // virtual override of Node::didMoveToNewDocument that calls 207 // virtual override of Node::didMoveToNewDocument that calls
208 // DocumentVisibilityObserver::setDocument 208 // DocumentVisibilityObserver::setDocument
209 void setObservedDocument(Document&); 209 void setObservedDocument(Document&);
210 210
211 protected: 211 protected:
212 virtual void trace(Visitor*); 212 DECLARE_VIRTUAL_TRACE();
213 213
214 private: 214 private:
215 void registerObserver(Document&); 215 void registerObserver(Document&);
216 void unregisterObserver(); 216 void unregisterObserver();
217 217
218 RawPtrWillBeMember<Document> m_document; 218 RawPtrWillBeMember<Document> m_document;
219 }; 219 };
220 220
221 class Document : public ContainerNode, public TreeScope, public SecurityContext, public ExecutionContext 221 class Document : public ContainerNode, public TreeScope, public SecurityContext, public ExecutionContext
222 , public DocumentSupplementable, public DocumentLifecycleNotifier { 222 , public DocumentSupplementable, public DocumentLifecycleNotifier {
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 1035
1036 void setHasViewportUnits() { m_hasViewportUnits = true; } 1036 void setHasViewportUnits() { m_hasViewportUnits = true; }
1037 bool hasViewportUnits() const { return m_hasViewportUnits; } 1037 bool hasViewportUnits() const { return m_hasViewportUnits; }
1038 void notifyResizeForViewportUnits(); 1038 void notifyResizeForViewportUnits();
1039 1039
1040 void registerVisibilityObserver(DocumentVisibilityObserver*); 1040 void registerVisibilityObserver(DocumentVisibilityObserver*);
1041 void unregisterVisibilityObserver(DocumentVisibilityObserver*); 1041 void unregisterVisibilityObserver(DocumentVisibilityObserver*);
1042 1042
1043 void updateStyleInvalidationIfNeeded(); 1043 void updateStyleInvalidationIfNeeded();
1044 1044
1045 virtual void trace(Visitor*) override; 1045 DECLARE_VIRTUAL_TRACE();
1046 1046
1047 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate SVGFilterElements.size(); } 1047 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate SVGFilterElements.size(); }
1048 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } 1048 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; }
1049 1049
1050 AtomicString convertLocalName(const AtomicString&); 1050 AtomicString convertLocalName(const AtomicString&);
1051 1051
1052 void platformColorsChanged(); 1052 void platformColorsChanged();
1053 1053
1054 virtual DOMTimerCoordinator* timers() override final; 1054 virtual DOMTimerCoordinator* timers() override final;
1055 1055
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1427 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1428 1428
1429 } // namespace blink 1429 } // namespace blink
1430 1430
1431 #ifndef NDEBUG 1431 #ifndef NDEBUG
1432 // Outside the WebCore namespace for ease of invocation from gdb. 1432 // Outside the WebCore namespace for ease of invocation from gdb.
1433 void showLiveDocumentInstances(); 1433 void showLiveDocumentInstances();
1434 #endif 1434 #endif
1435 1435
1436 #endif // Document_h 1436 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698