| 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 StyleWillChangeData_h | 5 #ifndef StyleWillChangeData_h |
| 6 #define StyleWillChangeData_h | 6 #define StyleWillChangeData_h |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/CSSValueKeywords.h" | 9 #include "core/CSSValueKeywords.h" |
| 10 #include "wtf/PassRefPtr.h" | 10 #include "platform/wtf/PassRefPtr.h" |
| 11 #include "wtf/RefCounted.h" | 11 #include "platform/wtf/RefCounted.h" |
| 12 #include "wtf/Vector.h" | 12 #include "platform/wtf/Vector.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class StyleWillChangeData : public RefCounted<StyleWillChangeData> { | 16 class StyleWillChangeData : public RefCounted<StyleWillChangeData> { |
| 17 public: | 17 public: |
| 18 static PassRefPtr<StyleWillChangeData> Create() { | 18 static PassRefPtr<StyleWillChangeData> Create() { |
| 19 return AdoptRef(new StyleWillChangeData); | 19 return AdoptRef(new StyleWillChangeData); |
| 20 } | 20 } |
| 21 PassRefPtr<StyleWillChangeData> Copy() const { | 21 PassRefPtr<StyleWillChangeData> Copy() const { |
| 22 return AdoptRef(new StyleWillChangeData(*this)); | 22 return AdoptRef(new StyleWillChangeData(*this)); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 34 unsigned scroll_position_ : 1; | 34 unsigned scroll_position_ : 1; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 StyleWillChangeData(); | 37 StyleWillChangeData(); |
| 38 StyleWillChangeData(const StyleWillChangeData&); | 38 StyleWillChangeData(const StyleWillChangeData&); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace blink | 41 } // namespace blink |
| 42 | 42 |
| 43 #endif // StyleWillChangeData_h | 43 #endif // StyleWillChangeData_h |
| OLD | NEW |