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

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

Issue 1122423009: Make it possible to custom-paint without an Element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Comment tweak 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 408763005fdbf7e0cc41a72321c96232eaa7958c..8116b3bc6ef87ff0a6b691296f55f7e2170065df 100644
--- a/sky/engine/core/dom/Document.h
+++ b/sky/engine/core/dom/Document.h
@@ -63,10 +63,11 @@ namespace blink {
class AbstractModule;
class AnimationTimeline;
class Attr;
-class CSSStyleDeclaration;
-class CSSStyleSheet;
class Comment;
class ConsoleMessage;
+class CSSStyleDeclaration;
+class CSSStyleSheet;
+class CustomElementRegistry;
class DocumentFragment;
class DocumentLifecycleNotifier;
class DocumentLoadTiming;
@@ -82,28 +83,28 @@ class FloatRect;
class Frame;
class FrameHost;
class FrameView;
+class HitTestRequest;
class HTMLDocumentParser;
class HTMLElement;
class HTMLImport;
class HTMLImportLoader;
class HTMLImportsController;
class HTMLScriptElement;
-class HitTestRequest;
class LayoutPoint;
class LocalDOMWindow;
class LocalFrame;
class Location;
class MediaQueryListListener;
class MediaQueryMatcher;
-class CustomElementRegistry;
class Page;
+class Picture;
class QualifiedName;
class Range;
class RenderView;
class RequestAnimationFrameCallback;
class ResourceFetcher;
-class ScriptRunner;
class ScriptedAnimationController;
+class ScriptRunner;
class SegmentedString;
class SelectorQueryCache;
class Settings;
@@ -494,6 +495,9 @@ public:
void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; }
+ Picture* rootPicture() const;
+ void setRootPicture(PassRefPtr<Picture> picture);
+
protected:
explicit Document(const DocumentInit&);
@@ -678,6 +682,8 @@ private:
int m_styleRecalcElementCounter;
mutable DocumentLoadTiming m_documentLoadTiming;
+
+ RefPtr<Picture> m_picture;
};
inline void Document::scheduleRenderTreeUpdateIfNeeded()

Powered by Google App Engine
This is Rietveld 408576698