| OLD | NEW |
| 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 StyleDifference_h | 5 #ifndef StyleDifference_h |
| 6 #define StyleDifference_h | 6 #define StyleDifference_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" |
| 8 #include "wtf/Assertions.h" | 9 #include "wtf/Assertions.h" |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 class StyleDifference { | 13 class StyleDifference { |
| 14 STACK_ALLOCATED(); |
| 13 public: | 15 public: |
| 14 enum PropertyDifference { | 16 enum PropertyDifference { |
| 15 TransformChanged = 1 << 0, | 17 TransformChanged = 1 << 0, |
| 16 OpacityChanged = 1 << 1, | 18 OpacityChanged = 1 << 1, |
| 17 ZIndexChanged = 1 << 2, | 19 ZIndexChanged = 1 << 2, |
| 18 FilterChanged = 1 << 3, | 20 FilterChanged = 1 << 3, |
| 19 BackdropFilterChanged = 1 << 4, | 21 BackdropFilterChanged = 1 << 4, |
| 20 // The object needs to issue paint invalidations if it contains text or
properties dependent on color (e.g., border or outline). | 22 // The object needs to issue paint invalidations if it contains text or
properties dependent on color (e.g., border or outline). |
| 21 TextOrColorChanged = 1 << 5, | 23 TextOrColorChanged = 1 << 5, |
| 22 // If you add a value here, be sure to update the number of bits on m_pr
opertySpecificDifferences. | 24 // If you add a value here, be sure to update the number of bits on m_pr
opertySpecificDifferences. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 FullLayout | 98 FullLayout |
| 97 }; | 99 }; |
| 98 unsigned m_layoutType : 2; | 100 unsigned m_layoutType : 2; |
| 99 | 101 |
| 100 unsigned m_propertySpecificDifferences : 6; | 102 unsigned m_propertySpecificDifferences : 6; |
| 101 }; | 103 }; |
| 102 | 104 |
| 103 } // namespace blink | 105 } // namespace blink |
| 104 | 106 |
| 105 #endif // StyleDifference_h | 107 #endif // StyleDifference_h |
| OLD | NEW |