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

Side by Side Diff: Source/core/rendering/PaintInvalidationState.h

Issue 434453002: Promote inlines to first-class invalidation citizens (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: This is up to date... Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/rendering/PaintInvalidationState.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 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaintInvalidationState_h 5 #ifndef PaintInvalidationState_h
6 #define PaintInvalidationState_h 6 #define PaintInvalidationState_h
7 7
8 #include "platform/geometry/LayoutRect.h" 8 #include "platform/geometry/LayoutRect.h"
9 #include "wtf/Noncopyable.h" 9 #include "wtf/Noncopyable.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class RenderBox; 13 class RenderBox;
14 class RenderInline; 14 class RenderInline;
15 class RenderLayerModelObject; 15 class RenderLayerModelObject;
16 class RenderObject; 16 class RenderObject;
17 class RenderSVGModelObject; 17 class RenderSVGModelObject;
18 18
19 class PaintInvalidationState { 19 class PaintInvalidationState {
20 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); 20 WTF_MAKE_NONCOPYABLE(PaintInvalidationState);
21 public: 21 public:
22 PaintInvalidationState(const PaintInvalidationState& next, RenderInline& ren derer, const RenderLayerModelObject& paintInvalidationContainer); 22 PaintInvalidationState(const PaintInvalidationState& next, RenderLayerModelO bject& renderer, const RenderLayerModelObject& paintInvalidationContainer);
23 PaintInvalidationState(const PaintInvalidationState& next, RenderBox& render er, const RenderLayerModelObject& paintInvalidationContainer);
24 PaintInvalidationState(const PaintInvalidationState& next, RenderSVGModelObj ect& renderer, const RenderLayerModelObject& paintInvalidationContainer);
25 23
26 explicit PaintInvalidationState(RenderObject&); 24 explicit PaintInvalidationState(RenderObject&);
27 25
28 const LayoutRect& clipRect() const { return m_clipRect; } 26 const LayoutRect& clipRect() const { return m_clipRect; }
29 const LayoutSize& paintOffset() const { return m_paintOffset; } 27 const LayoutSize& paintOffset() const { return m_paintOffset; }
30 28
31 bool cachedOffsetsEnabled() const { return m_cachedOffsetsEnabled; } 29 bool cachedOffsetsEnabled() const { return m_cachedOffsetsEnabled; }
32 bool isClipped() const { return m_clipped; } 30 bool isClipped() const { return m_clipped; }
33 31
34 bool forceCheckForPaintInvalidation() const { return m_forceCheckForPaintInv alidation; } 32 bool forceCheckForPaintInvalidation() const { return m_forceCheckForPaintInv alidation; }
(...skipping 21 matching lines...) Expand all
56 LayoutSize m_paintOffset; 54 LayoutSize m_paintOffset;
57 55
58 const RenderLayerModelObject& m_paintInvalidationContainer; 56 const RenderLayerModelObject& m_paintInvalidationContainer;
59 57
60 RenderObject& m_renderer; 58 RenderObject& m_renderer;
61 }; 59 };
62 60
63 } // namespace blink 61 } // namespace blink
64 62
65 #endif // PaintInvalidationState_h 63 #endif // PaintInvalidationState_h
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/rendering/PaintInvalidationState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698