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

Side by Side Diff: sky/engine/core/frame/FrameView.h

Issue 882223005: Remove painting roots. (Closed) Base URL: git@github.com:domokit/mojo.git@master
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
« no previous file with comments | « no previous file | sky/engine/core/frame/FrameView.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) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 AtomicString mediaType() const; 122 AtomicString mediaType() const;
123 void setMediaType(const AtomicString&); 123 void setMediaType(const AtomicString&);
124 124
125 void postLayoutTimerFired(Timer<FrameView>*); 125 void postLayoutTimerFired(Timer<FrameView>*);
126 126
127 void paint(GraphicsContext* context, const IntRect& rect) override; 127 void paint(GraphicsContext* context, const IntRect& rect) override;
128 128
129 void paintContents(GraphicsContext*, const IntRect& damageRect); 129 void paintContents(GraphicsContext*, const IntRect& damageRect);
130 bool isPainting() const; 130 bool isPainting() const;
131 bool hasEverPainted() const { return m_lastPaintTime; } 131 bool hasEverPainted() const { return m_lastPaintTime; }
132 void setNodeToDraw(Node*);
133 132
134 Color documentBackgroundColor() const; 133 Color documentBackgroundColor() const;
135 134
136 static double currentFrameTimeStamp() { return s_currentFrameTimeStamp; } 135 static double currentFrameTimeStamp() { return s_currentFrameTimeStamp; }
137 136
138 void updateLayoutAndStyleForPainting(); 137 void updateLayoutAndStyleForPainting();
139 void updateLayoutAndStyleIfNeededRecursive(); 138 void updateLayoutAndStyleIfNeededRecursive();
140 139
141 void forceLayout(bool allowSubtree = false); 140 void forceLayout(bool allowSubtree = false);
142 141
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 IntSize m_lastViewportSize; 229 IntSize m_lastViewportSize;
231 230
232 AtomicString m_mediaType; 231 AtomicString m_mediaType;
233 232
234 bool m_overflowStatusDirty; 233 bool m_overflowStatusDirty;
235 bool m_horizontalOverflow; 234 bool m_horizontalOverflow;
236 bool m_verticalOverflow; 235 bool m_verticalOverflow;
237 RenderObject* m_viewportRenderer; 236 RenderObject* m_viewportRenderer;
238 237
239 double m_lastPaintTime; 238 double m_lastPaintTime;
240
241 RefPtr<Node> m_nodeToDraw;
242 bool m_isPainting; 239 bool m_isPainting;
243
244 bool m_hasSoftwareFilters; 240 bool m_hasSoftwareFilters;
245 241
246 float m_visibleContentScaleFactor; 242 float m_visibleContentScaleFactor;
247 IntSize m_inputEventsOffsetForEmulation; 243 IntSize m_inputEventsOffsetForEmulation;
248 float m_inputEventsScaleFactorForEmulation; 244 float m_inputEventsScaleFactorForEmulation;
249 245
250 IntSize m_layoutSize; 246 IntSize m_layoutSize;
251 bool m_layoutSizeFixedToFrameSize; 247 bool m_layoutSizeFixedToFrameSize;
252 248
253 Vector<IntRect> m_tickmarks; 249 Vector<IntRect> m_tickmarks;
254 }; 250 };
255 251
256 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 252 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
257 253
258 } // namespace blink 254 } // namespace blink
259 255
260 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_ 256 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698