Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 StyleChangeReason_h | |
| 6 #define StyleChangeReason_h | |
| 7 | |
| 8 #include "wtf/Assertions.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 enum StyleChangeReason { | |
|
pdr.
2014/09/06 22:36:28
Please add a comment here about what this is for,
kouhei (in TOK)
2014/09/06 23:10:34
Ack. I think we should rename the type too so that
kouhei (in TOK)
2014/09/08 23:29:12
Done.
| |
| 13 StyleRecalcDueToActivePseudoClass, | |
|
pdr.
2014/09/06 22:36:28
Ultimately we will need to send this data via a tr
kouhei (in TOK)
2014/09/06 23:10:34
Integers route seems better to me, as it would lik
kouhei (in TOK)
2014/09/08 23:29:12
Done.
| |
| 14 StyleRecalcDueToActiveStylesheetsUpdate, | |
| 15 StyleRecalcDueToAnimation, | |
| 16 StyleRecalcDueToAttribute, | |
| 17 StyleRecalcDueToAuthorStyles, | |
| 18 StyleRecalcDueToCellBorderPaddingChange, | |
| 19 StyleRecalcDueToChildren, | |
| 20 StyleRecalcDueToControl, | |
| 21 StyleRecalcDueToControlValue, | |
| 22 StyleRecalcDueToCustomElement, | |
| 23 StyleRecalcDueToDesignMode, | |
| 24 StyleRecalcDueToDetach, | |
| 25 StyleRecalcDueToDirectionality, | |
| 26 StyleRecalcDueToDisabledPseudoClass, | |
| 27 StyleRecalcDueToDrag, | |
| 28 StyleRecalcDueToEmptyPseudoClass, | |
| 29 StyleRecalcDueToExitingCompositingMode, | |
| 30 StyleRecalcDueToFocusPseudoClass, | |
| 31 StyleRecalcDueToFontSizeChange, | |
| 32 StyleRecalcDueToFonts, | |
| 33 StyleRecalcDueToFrameSet, | |
| 34 StyleRecalcDueToFullScreen, | |
| 35 StyleRecalcDueToHoverPseudoClass, | |
| 36 StyleRecalcDueToImageAltText, | |
| 37 StyleRecalcDueToInline, | |
| 38 StyleRecalcDueToInsertionPoint, | |
| 39 StyleRecalcDueToInspector, | |
| 40 StyleRecalcDueToInvalidPseudoClass, | |
| 41 StyleRecalcDueToLanguage, | |
| 42 StyleRecalcDueToLayerUpdate, | |
| 43 StyleRecalcDueToLinkColorChange, | |
| 44 StyleRecalcDueToPlatformColorChange, | |
| 45 StyleRecalcDueToPlugin, | |
| 46 StyleRecalcDueToRequiredOptionalPseudoClass, | |
| 47 StyleRecalcDueToResolver, | |
| 48 StyleRecalcDueToSVGContainerSizeChange, | |
| 49 StyleRecalcDueToSVGCursor, | |
| 50 StyleRecalcDueToSVGFilterLayerUpdateHack, | |
| 51 StyleRecalcDueToSVGUseElement, | |
| 52 StyleRecalcDueToSeamlessIFrame, | |
| 53 StyleRecalcDueToSelector, | |
| 54 StyleRecalcDueToShadow, | |
| 55 StyleRecalcDueToSiblingSelector, | |
| 56 StyleRecalcDueToStyleInheritanceChange, | |
| 57 StyleRecalcDueToStyleSheetChange, | |
| 58 StyleRecalcDueToTreeScope, | |
| 59 StyleRecalcDueToValidity, | |
| 60 StyleRecalcDueToViewportUnits, | |
| 61 StyleRecalcDueToVisitedLink, | |
| 62 StyleRecalcDueToVisuallyOrdered, | |
| 63 StyleRecalcDueToWritingModeChange, | |
| 64 StyleRecalcDueToZoom, | |
|
rune
2014/09/08 08:27:57
These constants are very tied up to implementation
kouhei (in TOK)
2014/09/08 23:29:12
These are internal reasons, but we still want to h
| |
| 65 }; | |
| 66 | |
| 67 #define DISALLOW_COMPARISON_OPERATOR(TYPE, OP) \ | |
| 68 inline bool OP(TYPE, TYPE) \ | |
| 69 { \ | |
| 70 ASSERT_NOT_REACHED(); \ | |
| 71 return true; \ | |
| 72 } | |
| 73 #define DISALLOW_ALL_COMPARISON_OPERATORS(TYPE) \ | |
|
pdr.
2014/09/06 22:36:27
Clever!
| |
| 74 DISALLOW_COMPARISON_OPERATOR(TYPE, operator>) \ | |
| 75 DISALLOW_COMPARISON_OPERATOR(TYPE, operator<) \ | |
| 76 DISALLOW_COMPARISON_OPERATOR(TYPE, operator<=) \ | |
| 77 DISALLOW_COMPARISON_OPERATOR(TYPE, operator>=) \ | |
| 78 DISALLOW_COMPARISON_OPERATOR(TYPE, operator==) \ | |
| 79 DISALLOW_COMPARISON_OPERATOR(TYPE, operator!=) | |
| 80 DISALLOW_ALL_COMPARISON_OPERATORS(StyleChangeReason) | |
|
pdr.
2014/09/06 22:36:27
We may end up needing to make these operators priv
| |
| 81 | |
| 82 } // namespace blink | |
| 83 | |
| 84 #endif // StyleChangeReason_h | |
| OLD | NEW |