| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
| 4 * rights reserved. | 4 * rights reserved. |
| 5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
| 6 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 6 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 case CSSPropertyFlex: | 330 case CSSPropertyFlex: |
| 331 case CSSPropertyFlexFlow: | 331 case CSSPropertyFlexFlow: |
| 332 case CSSPropertyGridColumn: | 332 case CSSPropertyGridColumn: |
| 333 case CSSPropertyGridRow: | 333 case CSSPropertyGridRow: |
| 334 case CSSPropertyGridArea: | 334 case CSSPropertyGridArea: |
| 335 case CSSPropertyGridGap: | 335 case CSSPropertyGridGap: |
| 336 case CSSPropertyMotion: | 336 case CSSPropertyMotion: |
| 337 case CSSPropertyOffset: | 337 case CSSPropertyOffset: |
| 338 case CSSPropertyWebkitMarginCollapse: | 338 case CSSPropertyWebkitMarginCollapse: |
| 339 case CSSPropertyListStyle: | 339 case CSSPropertyListStyle: |
| 340 case CSSPropertyTextDecoration: |
| 340 case CSSPropertyWebkitTextEmphasis: | 341 case CSSPropertyWebkitTextEmphasis: |
| 341 case CSSPropertyWebkitTextStroke: | 342 case CSSPropertyWebkitTextStroke: |
| 342 return true; | 343 return true; |
| 343 default: | 344 default: |
| 344 return false; | 345 return false; |
| 345 } | 346 } |
| 346 } | 347 } |
| 347 | 348 |
| 348 // TODO(timloh): This should go away eventually, see crbug.com/471917 | 349 // TODO(timloh): This should go away eventually, see crbug.com/471917 |
| 349 static bool allowImplicitInitialInShorthand(CSSPropertyID propertyID) { | 350 static bool allowImplicitInitialInShorthand(CSSPropertyID propertyID) { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 case CSSPropertyMotion: | 483 case CSSPropertyMotion: |
| 483 return getShorthandValue(motionShorthand()); | 484 return getShorthandValue(motionShorthand()); |
| 484 case CSSPropertyOffset: | 485 case CSSPropertyOffset: |
| 485 return getShorthandValue(offsetShorthand()); | 486 return getShorthandValue(offsetShorthand()); |
| 486 case CSSPropertyWebkitMarginCollapse: | 487 case CSSPropertyWebkitMarginCollapse: |
| 487 return getShorthandValue(webkitMarginCollapseShorthand()); | 488 return getShorthandValue(webkitMarginCollapseShorthand()); |
| 488 case CSSPropertyOverflow: | 489 case CSSPropertyOverflow: |
| 489 return getCommonValue(overflowShorthand()); | 490 return getCommonValue(overflowShorthand()); |
| 490 case CSSPropertyPadding: | 491 case CSSPropertyPadding: |
| 491 return get4Values(paddingShorthand()); | 492 return get4Values(paddingShorthand()); |
| 493 case CSSPropertyTextDecoration: |
| 494 return getShorthandValue(textDecorationShorthand()); |
| 492 case CSSPropertyTransition: | 495 case CSSPropertyTransition: |
| 493 return getLayeredShorthandValue(transitionShorthand()); | 496 return getLayeredShorthandValue(transitionShorthand()); |
| 494 case CSSPropertyListStyle: | 497 case CSSPropertyListStyle: |
| 495 return getShorthandValue(listStyleShorthand()); | 498 return getShorthandValue(listStyleShorthand()); |
| 496 case CSSPropertyWebkitMaskPosition: | 499 case CSSPropertyWebkitMaskPosition: |
| 497 return getLayeredShorthandValue(webkitMaskPositionShorthand()); | 500 return getLayeredShorthandValue(webkitMaskPositionShorthand()); |
| 498 case CSSPropertyWebkitMaskRepeat: | 501 case CSSPropertyWebkitMaskRepeat: |
| 499 return getLayeredShorthandValue(webkitMaskRepeatShorthand()); | 502 return getLayeredShorthandValue(webkitMaskRepeatShorthand()); |
| 500 case CSSPropertyWebkitMask: | 503 case CSSPropertyWebkitMask: |
| 501 return getLayeredShorthandValue(webkitMaskShorthand()); | 504 return getLayeredShorthandValue(webkitMaskShorthand()); |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 const CSSValue& xValue = | 950 const CSSValue& xValue = |
| 948 repeatXList ? repeatXList->item(i % repeatXList->length()) : repeatX; | 951 repeatXList ? repeatXList->item(i % repeatXList->length()) : repeatX; |
| 949 const CSSValue& yValue = | 952 const CSSValue& yValue = |
| 950 repeatYList ? repeatYList->item(i % repeatYList->length()) : repeatY; | 953 repeatYList ? repeatYList->item(i % repeatYList->length()) : repeatY; |
| 951 appendBackgroundRepeatValue(builder, xValue, yValue); | 954 appendBackgroundRepeatValue(builder, xValue, yValue); |
| 952 } | 955 } |
| 953 return builder.toString(); | 956 return builder.toString(); |
| 954 } | 957 } |
| 955 | 958 |
| 956 } // namespace blink | 959 } // namespace blink |
| OLD | NEW |