| 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 "core/css/CSSPropertyEquality.h" | 5 #include "core/css/CSSPropertyEquality.h" |
| 6 | 6 |
| 7 #include "core/style/ComputedStyle.h" | 7 #include "core/style/ComputedStyle.h" |
| 8 #include "core/style/DataEquivalency.h" | 8 #include "core/style/DataEquivalency.h" |
| 9 #include "core/style/ShadowList.h" | 9 #include "core/style/ShadowList.h" |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 return a.flexBasis() == b.flexBasis(); | 139 return a.flexBasis() == b.flexBasis(); |
| 140 case CSSPropertyFlexGrow: | 140 case CSSPropertyFlexGrow: |
| 141 return a.flexGrow() == b.flexGrow(); | 141 return a.flexGrow() == b.flexGrow(); |
| 142 case CSSPropertyFlexShrink: | 142 case CSSPropertyFlexShrink: |
| 143 return a.flexShrink() == b.flexShrink(); | 143 return a.flexShrink() == b.flexShrink(); |
| 144 case CSSPropertyFloodColor: | 144 case CSSPropertyFloodColor: |
| 145 return a.floodColor() == b.floodColor(); | 145 return a.floodColor() == b.floodColor(); |
| 146 case CSSPropertyFloodOpacity: | 146 case CSSPropertyFloodOpacity: |
| 147 return a.floodOpacity() == b.floodOpacity(); | 147 return a.floodOpacity() == b.floodOpacity(); |
| 148 case CSSPropertyFontSize: | 148 case CSSPropertyFontSize: |
| 149 // CSSPropertyFontSize: Must pass a specified size to setFontSize if Text
Autosizing is enabled, but a computed size | 149 // CSSPropertyFontSize: Must pass a specified size to setFontSize if Text |
| 150 // if text zoom is enabled (if neither is enabled it's irrelevant as they'
re probably the same). | 150 // Autosizing is enabled, but a computed size if text zoom is enabled (if |
| 151 // FIXME: Should we introduce an option to pass the computed font size her
e, allowing consumers to | 151 // neither is enabled it's irrelevant as they're probably the same). |
| 152 // enable text zoom rather than Text Autosizing? See http://crbug.com/2275
45. | 152 // FIXME: Should we introduce an option to pass the computed font size |
| 153 // here, allowing consumers to enable text zoom rather than Text |
| 154 // Autosizing? See http://crbug.com/227545. |
| 153 return a.specifiedFontSize() == b.specifiedFontSize(); | 155 return a.specifiedFontSize() == b.specifiedFontSize(); |
| 154 case CSSPropertyFontSizeAdjust: | 156 case CSSPropertyFontSizeAdjust: |
| 155 return a.fontSizeAdjust() == b.fontSizeAdjust(); | 157 return a.fontSizeAdjust() == b.fontSizeAdjust(); |
| 156 case CSSPropertyFontStretch: | 158 case CSSPropertyFontStretch: |
| 157 return a.fontStretch() == b.fontStretch(); | 159 return a.fontStretch() == b.fontStretch(); |
| 158 case CSSPropertyFontWeight: | 160 case CSSPropertyFontWeight: |
| 159 return a.fontWeight() == b.fontWeight(); | 161 return a.fontWeight() == b.fontWeight(); |
| 160 case CSSPropertyHeight: | 162 case CSSPropertyHeight: |
| 161 return a.height() == b.height(); | 163 return a.height() == b.height(); |
| 162 case CSSPropertyLeft: | 164 case CSSPropertyLeft: |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 case CSSPropertyZIndex: | 361 case CSSPropertyZIndex: |
| 360 return a.hasAutoZIndex() == b.hasAutoZIndex() && | 362 return a.hasAutoZIndex() == b.hasAutoZIndex() && |
| 361 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); | 363 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); |
| 362 default: | 364 default: |
| 363 NOTREACHED(); | 365 NOTREACHED(); |
| 364 return true; | 366 return true; |
| 365 } | 367 } |
| 366 } | 368 } |
| 367 | 369 |
| 368 } // namespace blink | 370 } // namespace blink |
| OLD | NEW |