Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleResolverState.h

Issue 2808673004: WIP Support var() references in registered custom property keyframes (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 void SetConversionFontSizes( 97 void SetConversionFontSizes(
98 const CSSToLengthConversionData::FontSizes& font_sizes) { 98 const CSSToLengthConversionData::FontSizes& font_sizes) {
99 css_to_length_conversion_data_.SetFontSizes(font_sizes); 99 css_to_length_conversion_data_.SetFontSizes(font_sizes);
100 } 100 }
101 void SetConversionZoom(float zoom) { 101 void SetConversionZoom(float zoom) {
102 css_to_length_conversion_data_.SetZoom(zoom); 102 css_to_length_conversion_data_.SetZoom(zoom);
103 } 103 }
104 104
105 CSSAnimationUpdate& AnimationUpdate() { return animation_update_; } 105 CSSAnimationUpdate& AnimationUpdate() { return animation_update_; }
106 const CSSAnimationUpdate& AnimationUpdate() const {
107 return animation_update_;
108 }
106 109
107 bool IsAnimationInterpolationMapReady() const { 110 bool IsAnimationInterpolationMapReady() const {
108 return is_animation_interpolation_map_ready_; 111 return is_animation_interpolation_map_ready_;
109 } 112 }
110 void SetIsAnimationInterpolationMapReady() { 113 void SetIsAnimationInterpolationMapReady() {
111 is_animation_interpolation_map_ready_ = true; 114 is_animation_interpolation_map_ready_ = true;
112 } 115 }
113 116
114 bool IsAnimatingCustomProperties() const { 117 bool IsAnimatingCustomProperties() const {
115 return is_animating_custom_properties_; 118 return is_animating_custom_properties_;
116 } 119 }
117 void SetIsAnimatingCustomProperties(bool value) { 120 void SetIsAnimatingCustomProperties(bool value) {
118 is_animating_custom_properties_ = value; 121 is_animating_custom_properties_ = value;
119 } 122 }
120 123
124 HashSet<PropertyHandle>& CustomPropertiesPendingAnimationApplication() {
125 return custom_properties_pending_animation_application_;
126 }
127
121 void SetParentStyle(PassRefPtr<ComputedStyle> parent_style) { 128 void SetParentStyle(PassRefPtr<ComputedStyle> parent_style) {
122 parent_style_ = std::move(parent_style); 129 parent_style_ = std::move(parent_style);
123 } 130 }
124 const ComputedStyle* ParentStyle() const { return parent_style_.Get(); } 131 const ComputedStyle* ParentStyle() const { return parent_style_.Get(); }
125 ComputedStyle* ParentStyle() { return parent_style_.Get(); } 132 ComputedStyle* ParentStyle() { return parent_style_.Get(); }
126 133
127 void SetLayoutParentStyle(PassRefPtr<ComputedStyle> parent_style) { 134 void SetLayoutParentStyle(PassRefPtr<ComputedStyle> parent_style) {
128 layout_parent_style_ = std::move(parent_style); 135 layout_parent_style_ = std::move(parent_style);
129 } 136 }
130 const ComputedStyle* LayoutParentStyle() const { 137 const ComputedStyle* LayoutParentStyle() const {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // so we keep it separate. 237 // so we keep it separate.
231 RefPtr<ComputedStyle> parent_style_; 238 RefPtr<ComputedStyle> parent_style_;
232 // This will almost-always be the same that m_parentStyle, except in the 239 // This will almost-always be the same that m_parentStyle, except in the
233 // presence of display: contents. This is the style against which we have to 240 // presence of display: contents. This is the style against which we have to
234 // do adjustment. 241 // do adjustment.
235 RefPtr<const ComputedStyle> layout_parent_style_; 242 RefPtr<const ComputedStyle> layout_parent_style_;
236 243
237 CSSAnimationUpdate animation_update_; 244 CSSAnimationUpdate animation_update_;
238 bool is_animation_interpolation_map_ready_; 245 bool is_animation_interpolation_map_ready_;
239 bool is_animating_custom_properties_; 246 bool is_animating_custom_properties_;
247 HashSet<PropertyHandle> custom_properties_pending_animation_application_;
240 248
241 bool apply_property_to_regular_style_; 249 bool apply_property_to_regular_style_;
242 bool apply_property_to_visited_link_style_; 250 bool apply_property_to_visited_link_style_;
243 bool has_dir_auto_attribute_; 251 bool has_dir_auto_attribute_;
244 252
245 FontBuilder font_builder_; 253 FontBuilder font_builder_;
246 254
247 std::unique_ptr<CachedUAStyle> cached_ua_style_; 255 std::unique_ptr<CachedUAStyle> cached_ua_style_;
248 256
249 ElementStyleResources element_style_resources_; 257 ElementStyleResources element_style_resources_;
250 258
251 HeapHashMap<String, Member<StylePropertySet>> 259 HeapHashMap<String, Member<StylePropertySet>>
252 custom_property_sets_for_apply_at_rule_; 260 custom_property_sets_for_apply_at_rule_;
253 261
254 mutable HeapHashMap< 262 mutable HeapHashMap<
255 Member<const CSSPendingSubstitutionValue>, 263 Member<const CSSPendingSubstitutionValue>,
256 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>> 264 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>>
257 parsed_properties_for_pending_substitution_cache_; 265 parsed_properties_for_pending_substitution_cache_;
258 }; 266 };
259 267
260 } // namespace blink 268 } // namespace blink
261 269
262 #endif // StyleResolverState_h 270 #endif // StyleResolverState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698