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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/PaintInvalidationReason.h

Issue 2692093003: Rewrite DocumentMarkerController to use SynchronousMutationObserver (Closed)
Patch Set: Improve removal of zero-length markers, add PaintInvalidationReason Created 3 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
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 PaintInvalidationReason_h 5 #ifndef PaintInvalidationReason_h
6 #define PaintInvalidationReason_h 6 #define PaintInvalidationReason_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 18 matching lines...) Expand all
29 PaintInvalidationScroll, 29 PaintInvalidationScroll,
30 PaintInvalidationSelection, 30 PaintInvalidationSelection,
31 PaintInvalidationOutline, 31 PaintInvalidationOutline,
32 PaintInvalidationSubtree, 32 PaintInvalidationSubtree,
33 PaintInvalidationLayoutObjectInsertion, 33 PaintInvalidationLayoutObjectInsertion,
34 PaintInvalidationLayoutObjectRemoval, 34 PaintInvalidationLayoutObjectRemoval,
35 PaintInvalidationSVGResourceChange, 35 PaintInvalidationSVGResourceChange,
36 PaintInvalidationBackgroundOnScrollingContentsLayer, 36 PaintInvalidationBackgroundOnScrollingContentsLayer,
37 PaintInvalidationCaret, 37 PaintInvalidationCaret,
38 PaintInvalidationViewBackground, 38 PaintInvalidationViewBackground,
39 PaintInvalidationDocumentMarkerChange,
39 PaintInvalidationForTesting, 40 PaintInvalidationForTesting,
40 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed in 41 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed in
41 // order to fully paint the content, but that painting of the object can be 42 // order to fully paint the content, but that painting of the object can be
42 // delayed until a future frame. This can be the case for an object whose 43 // delayed until a future frame. This can be the case for an object whose
43 // content is not visible to the user. 44 // content is not visible to the user.
44 PaintInvalidationDelayedFull, 45 PaintInvalidationDelayedFull,
45 46
46 PaintInvalidationReasonMax = PaintInvalidationDelayedFull 47 PaintInvalidationReasonMax = PaintInvalidationDelayedFull
47 }; 48 };
48 49
49 PLATFORM_EXPORT const char* paintInvalidationReasonToString( 50 PLATFORM_EXPORT const char* paintInvalidationReasonToString(
50 PaintInvalidationReason); 51 PaintInvalidationReason);
51 52
52 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) { 53 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) {
53 return reason >= PaintInvalidationFull; 54 return reason >= PaintInvalidationFull;
54 } 55 }
55 56
56 inline bool isImmediateFullPaintInvalidationReason( 57 inline bool isImmediateFullPaintInvalidationReason(
57 PaintInvalidationReason reason) { 58 PaintInvalidationReason reason) {
58 return isFullPaintInvalidationReason(reason) && 59 return isFullPaintInvalidationReason(reason) &&
59 reason != PaintInvalidationDelayedFull; 60 reason != PaintInvalidationDelayedFull;
60 } 61 }
61 62
62 } // namespace blink 63 } // namespace blink
63 64
64 #endif // PaintInvalidationReason_h 65 #endif // PaintInvalidationReason_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698