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

Side by Side Diff: Source/core/animation/css/CSSPropertyEquality.cpp

Issue 983073002: Make font-size-adjust animatable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase expectations for bug2886-2.html Created 5 years, 9 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
OLDNEW
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 #include "config.h" 5 #include "config.h"
6 #include "core/animation/css/CSSPropertyEquality.h" 6 #include "core/animation/css/CSSPropertyEquality.h"
7 7
8 #include "core/animation/css/CSSAnimations.h" 8 #include "core/animation/css/CSSAnimations.h"
9 #include "core/layout/style/DataEquivalency.h" 9 #include "core/layout/style/DataEquivalency.h"
10 #include "core/layout/style/LayoutStyle.h" 10 #include "core/layout/style/LayoutStyle.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 case CSSPropertyFloodColor: 135 case CSSPropertyFloodColor:
136 return a.floodColor() == b.floodColor(); 136 return a.floodColor() == b.floodColor();
137 case CSSPropertyFloodOpacity: 137 case CSSPropertyFloodOpacity:
138 return a.floodOpacity() == b.floodOpacity(); 138 return a.floodOpacity() == b.floodOpacity();
139 case CSSPropertyFontSize: 139 case CSSPropertyFontSize:
140 // CSSPropertyFontSize: Must pass a specified size to setFontSize if Tex t Autosizing is enabled, but a computed size 140 // CSSPropertyFontSize: Must pass a specified size to setFontSize if Tex t Autosizing is enabled, but a computed size
141 // if text zoom is enabled (if neither is enabled it's irrelevant as the y're probably the same). 141 // if text zoom is enabled (if neither is enabled it's irrelevant as the y're probably the same).
142 // FIXME: Should we introduce an option to pass the computed font size h ere, allowing consumers to 142 // FIXME: Should we introduce an option to pass the computed font size h ere, allowing consumers to
143 // enable text zoom rather than Text Autosizing? See http://crbug.com/22 7545. 143 // enable text zoom rather than Text Autosizing? See http://crbug.com/22 7545.
144 return a.specifiedFontSize() == b.specifiedFontSize(); 144 return a.specifiedFontSize() == b.specifiedFontSize();
145 case CSSPropertyFontSizeAdjust:
146 return a.fontSizeAdjust() == b.fontSizeAdjust();
145 case CSSPropertyFontStretch: 147 case CSSPropertyFontStretch:
146 return a.fontStretch() == b.fontStretch(); 148 return a.fontStretch() == b.fontStretch();
147 case CSSPropertyFontWeight: 149 case CSSPropertyFontWeight:
148 return a.fontWeight() == b.fontWeight(); 150 return a.fontWeight() == b.fontWeight();
149 case CSSPropertyHeight: 151 case CSSPropertyHeight:
150 return a.height() == b.height(); 152 return a.height() == b.height();
151 case CSSPropertyLeft: 153 case CSSPropertyLeft:
152 return a.left() == b.left(); 154 return a.left() == b.left();
153 case CSSPropertyLetterSpacing: 155 case CSSPropertyLetterSpacing:
154 return a.letterSpacing() == b.letterSpacing(); 156 return a.letterSpacing() == b.letterSpacing();
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 return a.svgStyle().ry() == b.svgStyle().ry(); 318 return a.svgStyle().ry() == b.svgStyle().ry();
317 case CSSPropertyZIndex: 319 case CSSPropertyZIndex:
318 return a.zIndex() == b.zIndex(); 320 return a.zIndex() == b.zIndex();
319 default: 321 default:
320 ASSERT_NOT_REACHED(); 322 ASSERT_NOT_REACHED();
321 return true; 323 return true;
322 } 324 }
323 } 325 }
324 326
325 } 327 }
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698