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

Unified Diff: sky/engine/core/dom/Document.h

Issue 1148253003: Add LayoutRoot (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Updated Created 5 years, 7 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: sky/engine/core/dom/Document.h
diff --git a/sky/engine/core/dom/Document.h b/sky/engine/core/dom/Document.h
index 8116b3bc6ef87ff0a6b691296f55f7e2170065df..4b29c3c260fc13ae7bda303851e6cc6e9b3f690b 100644
--- a/sky/engine/core/dom/Document.h
+++ b/sky/engine/core/dom/Document.h
@@ -128,9 +128,6 @@ public:
}
virtual ~Document();
- // Called by JS.
- static PassRefPtr<Document> create(Document&);
-
MediaQueryMatcher& mediaQueryMatcher();
void mediaQueryAffectingValueChanged();
@@ -164,6 +161,7 @@ public:
Location* location() const;
PassRefPtr<Element> createElement(const AtomicString& name, ExceptionState&);
+ PassRefPtr<Text> createText(const String& text);
PassRefPtr<DocumentFragment> createDocumentFragment();
PassRefPtr<Node> importNode(Node* importedNode, bool deep, ExceptionState&);
PassRefPtr<Element> createElement(const QualifiedName&, bool createdByParser);
@@ -498,6 +496,9 @@ public:
Picture* rootPicture() const;
void setRootPicture(PassRefPtr<Picture> picture);
+ void setFrame(LocalFrame* frame) { m_frame = frame; }
+ void setFrameView(FrameView* view) { m_frameView = view; }
+
protected:
explicit Document(const DocumentInit&);
@@ -684,6 +685,8 @@ private:
mutable DocumentLoadTiming m_documentLoadTiming;
RefPtr<Picture> m_picture;
+
+ FrameView* m_frameView;
};
inline void Document::scheduleRenderTreeUpdateIfNeeded()

Powered by Google App Engine
This is Rietveld 408576698