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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 683703003: Remove various Heap* types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/css/CSSCanvasValue.cpp ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 DocumentVisibilityObserver(Document&); 153 DocumentVisibilityObserver(Document&);
154 virtual ~DocumentVisibilityObserver(); 154 virtual ~DocumentVisibilityObserver();
155 155
156 virtual void didChangeVisibilityState(PageVisibilityState) = 0; 156 virtual void didChangeVisibilityState(PageVisibilityState) = 0;
157 157
158 // Classes that inherit Node and DocumentVisibilityObserver must have a 158 // Classes that inherit Node and DocumentVisibilityObserver must have a
159 // virtual override of Node::didMoveToNewDocument that calls 159 // virtual override of Node::didMoveToNewDocument that calls
160 // DocumentVisibilityObserver::setDocument 160 // DocumentVisibilityObserver::setDocument
161 void setObservedDocument(Document&); 161 void setObservedDocument(Document&);
162 162
163 protected:
164 virtual void trace(Visitor*);
165
166 private: 163 private:
167 void registerObserver(Document&); 164 void registerObserver(Document&);
168 void unregisterObserver(); 165 void unregisterObserver();
169 166
170 RawPtr<Document> m_document; 167 RawPtr<Document> m_document;
171 }; 168 };
172 169
173 class Document : public ContainerNode, public TreeScope, public ExecutionContext , public ExecutionContextClient 170 class Document : public ContainerNode, public TreeScope, public ExecutionContext , public ExecutionContextClient
174 , public DocumentSupplementable, public LifecycleContext<Document>, public R esourceClient { 171 , public DocumentSupplementable, public LifecycleContext<Document>, public R esourceClient {
175 DEFINE_WRAPPERTYPEINFO(); 172 DEFINE_WRAPPERTYPEINFO();
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 645
649 void setHasViewportUnits() { m_hasViewportUnits = true; } 646 void setHasViewportUnits() { m_hasViewportUnits = true; }
650 bool hasViewportUnits() const { return m_hasViewportUnits; } 647 bool hasViewportUnits() const { return m_hasViewportUnits; }
651 void notifyResizeForViewportUnits(); 648 void notifyResizeForViewportUnits();
652 649
653 void registerVisibilityObserver(DocumentVisibilityObserver*); 650 void registerVisibilityObserver(DocumentVisibilityObserver*);
654 void unregisterVisibilityObserver(DocumentVisibilityObserver*); 651 void unregisterVisibilityObserver(DocumentVisibilityObserver*);
655 652
656 void updateStyleInvalidationIfNeeded(); 653 void updateStyleInvalidationIfNeeded();
657 654
658 virtual void trace(Visitor*) override;
659
660 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } 655 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; }
661 656
662 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override; 657 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
663 658
664 protected: 659 protected:
665 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 660 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
666 661
667 #if !ENABLE(OILPAN) 662 #if !ENABLE(OILPAN)
668 virtual void dispose() override; 663 virtual void dispose() override;
669 #endif 664 #endif
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 Node* eventTargetNodeForDocument(Document*); 909 Node* eventTargetNodeForDocument(Document*);
915 910
916 } // namespace blink 911 } // namespace blink
917 912
918 #ifndef NDEBUG 913 #ifndef NDEBUG
919 // Outside the WebCore namespace for ease of invocation from gdb. 914 // Outside the WebCore namespace for ease of invocation from gdb.
920 void showLiveDocumentInstances(); 915 void showLiveDocumentInstances();
921 #endif 916 #endif
922 917
923 #endif // Document_h 918 #endif // Document_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSCanvasValue.cpp ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698