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 #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/rendering/style/RenderStyle.h" | 9 #include "core/rendering/style/RenderStyle.h" |
10 #include "core/rendering/style/ShadowList.h" | 10 #include "core/rendering/style/ShadowList.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 case CSSPropertyFontSize: | 141 case CSSPropertyFontSize: |
142 // CSSPropertyFontSize: Must pass a specified size to setFontSize if Tex
t Autosizing is enabled, but a computed size | 142 // CSSPropertyFontSize: Must pass a specified size to setFontSize if Tex
t Autosizing is enabled, but a computed size |
143 // if text zoom is enabled (if neither is enabled it's irrelevant as the
y're probably the same). | 143 // if text zoom is enabled (if neither is enabled it's irrelevant as the
y're probably the same). |
144 // FIXME: Should we introduce an option to pass the computed font size h
ere, allowing consumers to | 144 // FIXME: Should we introduce an option to pass the computed font size h
ere, allowing consumers to |
145 // enable text zoom rather than Text Autosizing? See http://crbug.com/22
7545. | 145 // enable text zoom rather than Text Autosizing? See http://crbug.com/22
7545. |
146 return a.specifiedFontSize() == b.specifiedFontSize(); | 146 return a.specifiedFontSize() == b.specifiedFontSize(); |
147 case CSSPropertyFontWeight: | 147 case CSSPropertyFontWeight: |
148 return a.fontWeight() == b.fontWeight(); | 148 return a.fontWeight() == b.fontWeight(); |
149 case CSSPropertyHeight: | 149 case CSSPropertyHeight: |
150 return a.height() == b.height(); | 150 return a.height() == b.height(); |
151 case CSSPropertyKerning: | |
152 return ptrsOrValuesEqual<PassRefPtr<SVGLength> >(a.kerning(), b.kerning(
)); | |
153 case CSSPropertyLeft: | 151 case CSSPropertyLeft: |
154 return a.left() == b.left(); | 152 return a.left() == b.left(); |
155 case CSSPropertyLetterSpacing: | 153 case CSSPropertyLetterSpacing: |
156 return a.letterSpacing() == b.letterSpacing(); | 154 return a.letterSpacing() == b.letterSpacing(); |
157 case CSSPropertyLightingColor: | 155 case CSSPropertyLightingColor: |
158 return a.lightingColor() == b.lightingColor(); | 156 return a.lightingColor() == b.lightingColor(); |
159 case CSSPropertyLineHeight: | 157 case CSSPropertyLineHeight: |
160 return a.specifiedLineHeight() == b.specifiedLineHeight(); | 158 return a.specifiedLineHeight() == b.specifiedLineHeight(); |
161 case CSSPropertyListStyleImage: | 159 case CSSPropertyListStyleImage: |
162 return ptrsOrValuesEqual<StyleImage*>(a.listStyleImage(), b.listStyleIma
ge()); | 160 return ptrsOrValuesEqual<StyleImage*>(a.listStyleImage(), b.listStyleIma
ge()); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 return a.zIndex() == b.zIndex(); | 301 return a.zIndex() == b.zIndex(); |
304 case CSSPropertyZoom: | 302 case CSSPropertyZoom: |
305 return a.zoom() == b.zoom(); | 303 return a.zoom() == b.zoom(); |
306 default: | 304 default: |
307 ASSERT_NOT_REACHED(); | 305 ASSERT_NOT_REACHED(); |
308 return true; | 306 return true; |
309 } | 307 } |
310 } | 308 } |
311 | 309 |
312 } | 310 } |
OLD | NEW |