Source/WebCore: getComputedStyle should return shorthands property with the minimum...
authoralexis.menard@openbossa.org <alexis.menard@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jan 2012 19:56:48 +0000 (19:56 +0000)
committeralexis.menard@openbossa.org <alexis.menard@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jan 2012 19:56:48 +0000 (19:56 +0000)
commitd8e1f64596c58d2b4d79e45f7c96a7502994117f
tree94061cd6042b338a9b7fd5dc7b7f5bc14c9135f5
parent2b9314be6bcb1c32b3d60ca548d7c3a8170153a6
Source/WebCore: getComputedStyle should return shorthands property with the minimum number of sides possible.
https://bugs.webkit.org/show_bug.cgi?id=75434

Reviewed by Tony Chang.

As stated in http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSS2Properties we should
return shorthands properties with the minimum number of sides possible.

Existing tests have been updated accordingly.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
(WebCore::CSSComputedStyleDeclaration::getCSSPropertyValuesForSidesShorthand):
* css/CSSComputedStyleDeclaration.h:

LayoutTests: getComputedStyle should return shorthands properties with the minimum number of sides possible.
https://bugs.webkit.org/show_bug.cgi?id=75434

Reviewed by Tony Chang.

As stated in http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSS2Properties we should
return shorthands properties with the minimum number of sides possible.

* fast/css/getComputedStyle/getComputedStyle-border-color-shorthand-expected.txt:
* fast/css/getComputedStyle/getComputedStyle-border-color-shorthand.html:
* fast/css/getComputedStyle/getComputedStyle-border-style-shorthand-expected.txt:
* fast/css/getComputedStyle/getComputedStyle-border-style-shorthand.html:
* fast/css/getComputedStyle/getComputedStyle-border-width-expected.txt:
* fast/css/getComputedStyle/getComputedStyle-border-width.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/getComputedStyle/getComputedStyle-border-color-shorthand-expected.txt
LayoutTests/fast/css/getComputedStyle/getComputedStyle-border-color-shorthand.html
LayoutTests/fast/css/getComputedStyle/getComputedStyle-border-style-shorthand-expected.txt
LayoutTests/fast/css/getComputedStyle/getComputedStyle-border-style-shorthand.html
LayoutTests/fast/css/getComputedStyle/getComputedStyle-border-width-expected.txt
LayoutTests/fast/css/getComputedStyle/getComputedStyle-border-width.html
Source/WebCore/ChangeLog
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSComputedStyleDeclaration.h