| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // if text zoom is enabled (if neither is enabled it's irrelevant as the
y're probably the same). | 319 // if text zoom is enabled (if neither is enabled it's irrelevant as the
y're probably the same). |
| 320 // FIXME: Should we introduce an option to pass the computed font size h
ere, allowing consumers to | 320 // FIXME: Should we introduce an option to pass the computed font size h
ere, allowing consumers to |
| 321 // enable text zoom rather than Text Autosizing? See http://crbug.com/22
7545. | 321 // enable text zoom rather than Text Autosizing? See http://crbug.com/22
7545. |
| 322 return createFromDouble(style.specifiedFontSize()); | 322 return createFromDouble(style.specifiedFontSize()); |
| 323 case CSSPropertyFontStretch: | 323 case CSSPropertyFontStretch: |
| 324 return createFromFontStretch(style.fontStretch()); | 324 return createFromFontStretch(style.fontStretch()); |
| 325 case CSSPropertyFontWeight: | 325 case CSSPropertyFontWeight: |
| 326 return createFromFontWeight(style.fontWeight()); | 326 return createFromFontWeight(style.fontWeight()); |
| 327 case CSSPropertyHeight: | 327 case CSSPropertyHeight: |
| 328 return createFromLength(style.height(), style); | 328 return createFromLength(style.height(), style); |
| 329 case CSSPropertyListStyleImage: | |
| 330 return createFromStyleImage(style.listStyleImage()); | |
| 331 case CSSPropertyLeft: | 329 case CSSPropertyLeft: |
| 332 return createFromLength(style.left(), style); | 330 return createFromLength(style.left(), style); |
| 333 case CSSPropertyLetterSpacing: | 331 case CSSPropertyLetterSpacing: |
| 334 return createFromDouble(style.letterSpacing()); | 332 return createFromDouble(style.letterSpacing()); |
| 335 case CSSPropertyLineHeight: | 333 case CSSPropertyLineHeight: |
| 336 return createFromLineHeight(style.specifiedLineHeight(), style); | 334 return createFromLineHeight(style.specifiedLineHeight(), style); |
| 337 case CSSPropertyMarginBottom: | 335 case CSSPropertyMarginBottom: |
| 338 return createFromLength(style.marginBottom(), style); | 336 return createFromLength(style.marginBottom(), style); |
| 339 case CSSPropertyMarginLeft: | 337 case CSSPropertyMarginLeft: |
| 340 return createFromLength(style.marginLeft(), style); | 338 return createFromLength(style.marginLeft(), style); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 case CSSPropertyZIndex: | 414 case CSSPropertyZIndex: |
| 417 return createFromDouble(style.zIndex()); | 415 return createFromDouble(style.zIndex()); |
| 418 default: | 416 default: |
| 419 ASSERT_NOT_REACHED(); | 417 ASSERT_NOT_REACHED(); |
| 420 // This return value is to avoid a release crash if possible. | 418 // This return value is to avoid a release crash if possible. |
| 421 return AnimatableUnknown::create(nullptr); | 419 return AnimatableUnknown::create(nullptr); |
| 422 } | 420 } |
| 423 } | 421 } |
| 424 | 422 |
| 425 } // namespace blink | 423 } // namespace blink |
| OLD | NEW |