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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.h

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 PaintInvalidator_h 5 #ifndef PaintInvalidator_h
6 #define PaintInvalidator_h 6 #define PaintInvalidator_h
7 7
8 #include "platform/geometry/LayoutRect.h" 8 #include "platform/geometry/LayoutRect.h"
9 #include "platform/graphics/paint/GeometryMapper.h" 9 #include "platform/graphics/paint/GeometryMapper.h"
10 #include "wtf/Vector.h" 10 #include "wtf/Vector.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // The current paint invalidation container for stacked contents (stacking 61 // The current paint invalidation container for stacked contents (stacking
62 // contexts or positioned objects). It is the nearest ancestor composited 62 // contexts or positioned objects). It is the nearest ancestor composited
63 // object which establishes a stacking context. See 63 // object which establishes a stacking context. See
64 // Source/core/paint/README.md ### PaintInvalidationState for details on how 64 // Source/core/paint/README.md ### PaintInvalidationState for details on how
65 // stacked contents' paint invalidation containers differ. 65 // stacked contents' paint invalidation containers differ.
66 const LayoutBoxModelObject* paintInvalidationContainerForStackedContents = 66 const LayoutBoxModelObject* paintInvalidationContainerForStackedContents =
67 nullptr; 67 nullptr;
68 68
69 PaintLayer* paintingLayer = nullptr; 69 PaintLayer* paintingLayer = nullptr;
70 70
71 LayoutRect oldBounds; 71 LayoutRect oldVisualRect;
72 LayoutRect newBounds; 72 LayoutRect newVisualRect;
73 LayoutPoint oldLocation; 73 LayoutPoint oldLocation;
74 LayoutPoint newLocation; 74 LayoutPoint newLocation;
75 }; 75 };
76 76
77 class PaintInvalidator { 77 class PaintInvalidator {
78 public: 78 public:
79 void invalidatePaintIfNeeded(FrameView&, PaintInvalidatorContext&); 79 void invalidatePaintIfNeeded(FrameView&, PaintInvalidatorContext&);
80 void invalidatePaintIfNeeded(const LayoutObject&, PaintInvalidatorContext&); 80 void invalidatePaintIfNeeded(const LayoutObject&, PaintInvalidatorContext&);
81 81
82 // Process objects needing paint invalidation on the next frame. 82 // Process objects needing paint invalidation on the next frame.
83 // See the definition of PaintInvalidationDelayedFull for more details. 83 // See the definition of PaintInvalidationDelayedFull for more details.
84 void processPendingDelayedPaintInvalidations(); 84 void processPendingDelayedPaintInvalidations();
85 85
86 private: 86 private:
87 LayoutRect mapLocalRectToPaintInvalidationBacking( 87 LayoutRect mapLocalRectToPaintInvalidationBacking(
88 const LayoutObject&, 88 const LayoutObject&,
89 const FloatRect&, 89 const FloatRect&,
90 const PaintInvalidatorContext&); 90 const PaintInvalidatorContext&);
91 LayoutRect computePaintInvalidationRectInBacking( 91 LayoutRect computeVisualRectInBacking(const LayoutObject&,
92 const LayoutObject&, 92 const PaintInvalidatorContext&);
93 const PaintInvalidatorContext&);
94 LayoutPoint computeLocationFromPaintInvalidationBacking( 93 LayoutPoint computeLocationFromPaintInvalidationBacking(
95 const LayoutObject&, 94 const LayoutObject&,
96 const PaintInvalidatorContext&); 95 const PaintInvalidatorContext&);
97 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); 96 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&);
98 void updateContext(const LayoutObject&, PaintInvalidatorContext&); 97 void updateContext(const LayoutObject&, PaintInvalidatorContext&);
99 98
100 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; 99 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations;
101 GeometryMapper m_geometryMapper; 100 GeometryMapper m_geometryMapper;
102 }; 101 };
103 102
104 } // namespace blink 103 } // namespace blink
105 104
106 #endif // PaintInvalidator_h 105 #endif // PaintInvalidator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698