Spec renamed Viewport-relative lengths to Viewport-percentage lengths
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 31 Mar 2012 00:05:21 +0000 (00:05 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 31 Mar 2012 00:05:21 +0000 (00:05 +0000)
commitf2c7239bf247dcfd8d1793bafefb2011658b919d
tree47a128d2582ba73c11413ca87ac25ed8a6a0de02
parent5fd01ed993891367f3ae4d64eef66523543e265f
Spec renamed Viewport-relative lengths to Viewport-percentage lengths
https://bugs.webkit.org/show_bug.cgi?id=82773

Patch by Joe Thomas <joethomas@motorola.com> on 2012-03-30
Reviewed by Antti Koivisto.

As per the latest version of CSS Values and Units Module Level 3 specification released on 29 March 2012
(http://dev.w3.org/csswg/css3-values/#viewport-relative-lengths) Viewport-relative lengths is renamed to Viewport-percentage lengths.

Source/WebCore:

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::getPositionOffsetValue):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSPrimitiveValue.cpp:
(WebCore::unitCategory):
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::canonicalUnitTypeForCategory):
(WebCore::CSSPrimitiveValue::viewportPercentageLength):
* css/CSSPrimitiveValue.h:
(WebCore::CSSPrimitiveValue::isViewportPercentageLength):
(CSSPrimitiveValue):
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::convertToLength):
* css/CSSStyleApplyProperty.cpp:
(WebCore::ApplyPropertyLength::applyValue):
(WebCore::ApplyPropertyBorderRadius::applyValue):
(WebCore::ApplyPropertyFontSize::applyValue):
(WebCore::ApplyPropertyLineHeight::applyValue):
(WebCore::ApplyPropertyVerticalAlign::applyValue):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::collectMatchingRulesForList):
* css/LengthFunctions.cpp:
(WebCore::minimumValueForLength):
(WebCore::valueForLength):
(WebCore::floatValueForLength):
* platform/Length.h:
(WebCore::Length::isViewportPercentage):
(WebCore::Length::viewportPercentageLength):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::textIndentOffset):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::computeContentLogicalHeightUsing):
(WebCore::RenderBox::computeReplacedLogicalHeightUsing):
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::paddingTop):
(WebCore::RenderBoxModelObject::paddingBottom):
(WebCore::RenderBoxModelObject::paddingLeft):
(WebCore::RenderBoxModelObject::paddingRight):
(WebCore::RenderBoxModelObject::paddingBefore):
(WebCore::RenderBoxModelObject::paddingAfter):
(WebCore::RenderBoxModelObject::paddingStart):
(WebCore::RenderBoxModelObject::paddingEnd):
(WebCore::RenderBoxModelObject::calculateFillTileSize):
* rendering/RenderInline.cpp:
(WebCore::computeMargin):
* rendering/style/RenderStyle.h:

LayoutTests:

* css3/viewport-percentage-lengths: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-getStyle-expected.txt: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-getStyle.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vh-absolute-expected.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vh-absolute.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vh-expected.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vh.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmin-absolute-expected.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmin-absolute.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmin-expected.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmin.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vw-absolute-expected.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vw-absolute.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vw-expected.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vw.html: Added.
* css3/viewport-relative-lengths: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-getStyle-expected.txt: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-getStyle.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-absolute-expected.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-absolute.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-expected.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-absolute-expected.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-absolute.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-expected.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-absolute-expected.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-absolute.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-expected.html: Removed.
* css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
29 files changed:
LayoutTests/ChangeLog
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-getStyle-expected.txt [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-getStyle-expected.txt with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-getStyle.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-getStyle.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vh-absolute-expected.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-absolute-expected.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vh-absolute.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-absolute.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vh-expected.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-expected.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vh.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmin-absolute-expected.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-absolute-expected.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmin-absolute.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-absolute.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmin-expected.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-expected.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmin.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vw-absolute-expected.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-absolute-expected.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vw-absolute.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-absolute.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vw-expected.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-expected.html with 100% similarity]
LayoutTests/css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vw.html [moved from LayoutTests/css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw.html with 100% similarity]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSPrimitiveValue.cpp
Source/WebCore/css/CSSPrimitiveValue.h
Source/WebCore/css/CSSPrimitiveValueMappings.h
Source/WebCore/css/CSSStyleApplyProperty.cpp
Source/WebCore/css/CSSStyleSelector.cpp
Source/WebCore/css/LengthFunctions.cpp
Source/WebCore/platform/Length.h
Source/WebCore/rendering/RenderBlock.cpp
Source/WebCore/rendering/RenderBox.cpp
Source/WebCore/rendering/RenderBoxModelObject.cpp
Source/WebCore/rendering/RenderInline.cpp
Source/WebCore/rendering/style/RenderStyle.h