| 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 <iosfwd> | 8 #include <iosfwd> |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
| 11 #include "wtf/Assertions.h" | 11 #include "platform/wtf/Assertions.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class StyleDifference { | 15 class StyleDifference { |
| 16 STACK_ALLOCATED(); | 16 STACK_ALLOCATED(); |
| 17 | 17 |
| 18 public: | 18 public: |
| 19 enum PropertyDifference { | 19 enum PropertyDifference { |
| 20 kTransformChanged = 1 << 0, | 20 kTransformChanged = 1 << 0, |
| 21 kOpacityChanged = 1 << 1, | 21 kOpacityChanged = 1 << 1, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 unsigned visual_rect_update_ : 1; | 162 unsigned visual_rect_update_ : 1; |
| 163 unsigned property_specific_differences_ : kPropertyDifferenceCount; | 163 unsigned property_specific_differences_ : kPropertyDifferenceCount; |
| 164 unsigned scroll_anchor_disabling_property_changed_ : 1; | 164 unsigned scroll_anchor_disabling_property_changed_ : 1; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 CORE_EXPORT std::ostream& operator<<(std::ostream&, const StyleDifference&); | 167 CORE_EXPORT std::ostream& operator<<(std::ostream&, const StyleDifference&); |
| 168 | 168 |
| 169 } // namespace blink | 169 } // namespace blink |
| 170 | 170 |
| 171 #endif // StyleDifference_h | 171 #endif // StyleDifference_h |
| OLD | NEW |