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

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

Issue 2575653002: [SPInvalidation] Invalidate all paint and properties for printing (Closed)
Patch Set: Rebase on third_party/WebKit/LayoutTests/TestExpectations Created 4 years 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 enum ForcedSubtreeInvalidationFlag { 43 enum ForcedSubtreeInvalidationFlag {
44 ForcedSubtreeInvalidationChecking = 1 << 0, 44 ForcedSubtreeInvalidationChecking = 1 << 0,
45 ForcedSubtreeInvalidationRectUpdate = 1 << 1, 45 ForcedSubtreeInvalidationRectUpdate = 1 << 1,
46 ForcedSubtreeFullInvalidation = 1 << 2, 46 ForcedSubtreeFullInvalidation = 1 << 2,
47 ForcedSubtreeFullInvalidationForStackedContents = 1 << 3, 47 ForcedSubtreeFullInvalidationForStackedContents = 1 << 3,
48 ForcedSubtreeSVGResourceChange = 1 << 4, 48 ForcedSubtreeSVGResourceChange = 1 << 4,
49 // TODO(crbug.com/637313): This is temporary before we support filters in 49 // TODO(crbug.com/637313): This is temporary before we support filters in
50 // paint property tree. 50 // paint property tree.
51 ForcedSubtreeSlowPathRect = 1 << 5, 51 ForcedSubtreeSlowPathRect = 1 << 5,
52 // For SPv1, all of the above flags don't cross paint invalidation container
pdr. 2016/12/15 06:07:24 Similar question as above--why do we need to inval
53 // boundary. ForceWholeTreeFullInvalidation does.
54 // TODO(wangxianzhu): Combine this with ForcedSubtreeFullInvalidation when
55 // removing non-SPv2 code.
56 ForcedWholeTreeFullInvalidation = 1 << 6,
52 }; 57 };
53 unsigned forcedSubtreeInvalidationFlags = 0; 58 unsigned forcedSubtreeInvalidationFlags = 0;
54 59
55 // The following fields can be null only before 60 // The following fields can be null only before
56 // PaintInvalidator::updateContext(). 61 // PaintInvalidator::updateContext().
57 62
58 // The current paint invalidation container for normal flow objects. 63 // The current paint invalidation container for normal flow objects.
59 // It is the enclosing composited object. 64 // It is the enclosing composited object.
60 const LayoutBoxModelObject* paintInvalidationContainer = nullptr; 65 const LayoutBoxModelObject* paintInvalidationContainer = nullptr;
61 66
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); 115 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&);
111 void updateContext(const LayoutObject&, PaintInvalidatorContext&); 116 void updateContext(const LayoutObject&, PaintInvalidatorContext&);
112 117
113 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; 118 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations;
114 GeometryMapper m_geometryMapper; 119 GeometryMapper m_geometryMapper;
115 }; 120 };
116 121
117 } // namespace blink 122 } // namespace blink
118 123
119 #endif // PaintInvalidator_h 124 #endif // PaintInvalidator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698