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

Side by Side Diff: sky/engine/core/rendering/PaintInvalidationState.h

Issue 823123003: Delete PaintInvalidationState. It's unused. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: proper diff Created 5 years, 11 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SKY_ENGINE_CORE_RENDERING_PAINTINVALIDATIONSTATE_H_
6 #define SKY_ENGINE_CORE_RENDERING_PAINTINVALIDATIONSTATE_H_
7
8 #include "sky/engine/platform/geometry/LayoutRect.h"
9 #include "sky/engine/wtf/Noncopyable.h"
10
11 namespace blink {
12
13 class RenderBox;
14 class RenderInline;
15 class RenderLayerModelObject;
16 class RenderObject;
17 class RenderView;
18
19 class PaintInvalidationState {
20 WTF_MAKE_NONCOPYABLE(PaintInvalidationState);
21 public:
22 PaintInvalidationState(const PaintInvalidationState& next, RenderLayerModelO bject& renderer, const RenderLayerModelObject& paintInvalidationContainer);
23
24 explicit PaintInvalidationState(const RenderView&);
25
26 const LayoutRect& clipRect() const { return m_clipRect; }
27 const LayoutSize& paintOffset() const { return m_paintOffset; }
28
29 bool cachedOffsetsEnabled() const { return m_cachedOffsetsEnabled; }
30 bool isClipped() const { return m_clipped; }
31
32 bool forceCheckForPaintInvalidation() const { return m_forceCheckForPaintInv alidation; }
33 void setForceCheckForPaintInvalidation() { m_forceCheckForPaintInvalidation = true; }
34
35 const RenderLayerModelObject& paintInvalidationContainer() const { return m_ paintInvalidationContainer; }
36 const RenderObject& renderer() const { return m_renderer; }
37
38 bool canMapToContainer(const RenderLayerModelObject* container) const
39 {
40 return m_cachedOffsetsEnabled && container == &m_paintInvalidationContai ner;
41 }
42 private:
43 void applyClipIfNeeded(const RenderObject&);
44
45 friend class ForceHorriblySlowRectMapping;
46
47 bool m_clipped;
48 mutable bool m_cachedOffsetsEnabled;
49 bool m_forceCheckForPaintInvalidation;
50
51 LayoutRect m_clipRect;
52
53 // x/y offset from paint invalidation container. Includes relative positioni ng and scroll offsets.
54 LayoutSize m_paintOffset;
55
56 const RenderLayerModelObject& m_paintInvalidationContainer;
57
58 const RenderObject& m_renderer;
59 };
60
61 } // namespace blink
62
63 #endif // SKY_ENGINE_CORE_RENDERING_PAINTINVALIDATIONSTATE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/LayoutState.h ('k') | sky/engine/core/rendering/PaintInvalidationState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698