| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 void SetConversionFontSizes( | 96 void SetConversionFontSizes( |
| 97 const CSSToLengthConversionData::FontSizes& font_sizes) { | 97 const CSSToLengthConversionData::FontSizes& font_sizes) { |
| 98 css_to_length_conversion_data_.SetFontSizes(font_sizes); | 98 css_to_length_conversion_data_.SetFontSizes(font_sizes); |
| 99 } | 99 } |
| 100 void SetConversionZoom(float zoom) { | 100 void SetConversionZoom(float zoom) { |
| 101 css_to_length_conversion_data_.SetZoom(zoom); | 101 css_to_length_conversion_data_.SetZoom(zoom); |
| 102 } | 102 } |
| 103 | 103 |
| 104 CSSAnimationUpdate& AnimationUpdate() { return animation_update_; } | 104 CSSAnimationUpdate& AnimationUpdate() { return animation_update_; } |
| 105 const CSSAnimationUpdate& AnimationUpdate() const { |
| 106 return animation_update_; |
| 107 } |
| 105 | 108 |
| 106 bool IsAnimationInterpolationMapReady() const { | 109 bool IsAnimationInterpolationMapReady() const { |
| 107 return is_animation_interpolation_map_ready_; | 110 return is_animation_interpolation_map_ready_; |
| 108 } | 111 } |
| 109 void SetIsAnimationInterpolationMapReady() { | 112 void SetIsAnimationInterpolationMapReady() { |
| 110 is_animation_interpolation_map_ready_ = true; | 113 is_animation_interpolation_map_ready_ = true; |
| 111 } | 114 } |
| 112 | 115 |
| 113 bool IsAnimatingCustomProperties() const { | 116 bool IsAnimatingCustomProperties() const { |
| 114 return is_animating_custom_properties_; | 117 return is_animating_custom_properties_; |
| 115 } | 118 } |
| 116 void SetIsAnimatingCustomProperties(bool value) { | 119 void SetIsAnimatingCustomProperties(bool value) { |
| 117 is_animating_custom_properties_ = value; | 120 is_animating_custom_properties_ = value; |
| 118 } | 121 } |
| 119 | 122 |
| 123 HashSet<PropertyHandle>& AnimationPendingCustomProperties() { |
| 124 return animation_pending_custom_properties_; |
| 125 } |
| 126 |
| 127 const HashSet<PropertyHandle>& AnimationPendingCustomProperties() const { |
| 128 return animation_pending_custom_properties_; |
| 129 } |
| 130 |
| 120 void SetParentStyle(PassRefPtr<ComputedStyle> parent_style) { | 131 void SetParentStyle(PassRefPtr<ComputedStyle> parent_style) { |
| 121 parent_style_ = std::move(parent_style); | 132 parent_style_ = std::move(parent_style); |
| 122 } | 133 } |
| 123 const ComputedStyle* ParentStyle() const { return parent_style_.Get(); } | 134 const ComputedStyle* ParentStyle() const { return parent_style_.Get(); } |
| 124 ComputedStyle* ParentStyle() { return parent_style_.Get(); } | 135 ComputedStyle* ParentStyle() { return parent_style_.Get(); } |
| 125 | 136 |
| 126 void SetLayoutParentStyle(PassRefPtr<ComputedStyle> parent_style) { | 137 void SetLayoutParentStyle(PassRefPtr<ComputedStyle> parent_style) { |
| 127 layout_parent_style_ = std::move(parent_style); | 138 layout_parent_style_ = std::move(parent_style); |
| 128 } | 139 } |
| 129 const ComputedStyle* LayoutParentStyle() const { | 140 const ComputedStyle* LayoutParentStyle() const { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // so we keep it separate. | 240 // so we keep it separate. |
| 230 RefPtr<ComputedStyle> parent_style_; | 241 RefPtr<ComputedStyle> parent_style_; |
| 231 // This will almost-always be the same that parent_style_, except in the | 242 // This will almost-always be the same that parent_style_, except in the |
| 232 // presence of display: contents. This is the style against which we have to | 243 // presence of display: contents. This is the style against which we have to |
| 233 // do adjustment. | 244 // do adjustment. |
| 234 RefPtr<const ComputedStyle> layout_parent_style_; | 245 RefPtr<const ComputedStyle> layout_parent_style_; |
| 235 | 246 |
| 236 CSSAnimationUpdate animation_update_; | 247 CSSAnimationUpdate animation_update_; |
| 237 bool is_animation_interpolation_map_ready_; | 248 bool is_animation_interpolation_map_ready_; |
| 238 bool is_animating_custom_properties_; | 249 bool is_animating_custom_properties_; |
| 250 HashSet<PropertyHandle> animation_pending_custom_properties_; |
| 239 | 251 |
| 240 bool apply_property_to_regular_style_; | 252 bool apply_property_to_regular_style_; |
| 241 bool apply_property_to_visited_link_style_; | 253 bool apply_property_to_visited_link_style_; |
| 242 bool has_dir_auto_attribute_; | 254 bool has_dir_auto_attribute_; |
| 243 | 255 |
| 244 FontBuilder font_builder_; | 256 FontBuilder font_builder_; |
| 245 | 257 |
| 246 std::unique_ptr<CachedUAStyle> cached_ua_style_; | 258 std::unique_ptr<CachedUAStyle> cached_ua_style_; |
| 247 | 259 |
| 248 ElementStyleResources element_style_resources_; | 260 ElementStyleResources element_style_resources_; |
| 249 | 261 |
| 250 HeapHashMap<String, Member<StylePropertySet>> | 262 HeapHashMap<String, Member<StylePropertySet>> |
| 251 custom_property_sets_for_apply_at_rule_; | 263 custom_property_sets_for_apply_at_rule_; |
| 252 | 264 |
| 253 mutable HeapHashMap< | 265 mutable HeapHashMap< |
| 254 Member<const CSSPendingSubstitutionValue>, | 266 Member<const CSSPendingSubstitutionValue>, |
| 255 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>> | 267 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>> |
| 256 parsed_properties_for_pending_substitution_cache_; | 268 parsed_properties_for_pending_substitution_cache_; |
| 257 }; | 269 }; |
| 258 | 270 |
| 259 } // namespace blink | 271 } // namespace blink |
| 260 | 272 |
| 261 #endif // StyleResolverState_h | 273 #endif // StyleResolverState_h |
| OLD | NEW |