summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/JSStringBuilder.h
diff options
context:
space:
mode:
authorGurpreet Kaur <k.gurpreet@samsung.com>2016-03-28 20:08:16 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2016-09-27 07:16:35 +0000
commita7a5227e2ca154172d19cdde023ca6ea76070369 (patch)
treee6a65591f298d3914685e3f4ec0b82e3258108b7 /Source/JavaScriptCore/runtime/JSStringBuilder.h
parent490b7b65edbd06da0818c0ac765ca6ebd219dce3 (diff)
downloadqtwebkit-a7a5227e2ca154172d19cdde023ca6ea76070369.tar.gz
CSS Unit vw in border-width maps to 0px
https://bugs.webkit.org/show_bug.cgi?id=109229 Patch by Gurpreet Kaur <k.gurpreet@samsung.com> on 2013-09-12 Reviewed by Darin Adler. Source/WebCore: Border and outline properties were not applied incase its values were given in vh/vw units. Tests: fast/css/viewport-height-border.html fast/css/viewport-height-outline.html fast/css/viewport-width-border.html fast/css/viewport-width-outline.html * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::computeLengthDouble): Added case CSS_VH and CSS_VW. * css/CSSPrimitiveValue.h: (WebCore::CSSPrimitiveValue::isViewportPercentageWidth): (WebCore::CSSPrimitiveValue::isViewportPercentageHeight): Added APIs to check the unit type(CSS_VW and CSS_VH). * css/DeprecatedStyleBuilder.cpp: (WebCore::ApplyPropertyComputeLength::applyValue): Calculating the border values which has been specified in vh/vw units.The vh/vw units are calcultated as percent of viewport height and viewport width respectively. LayoutTests: * fast/css/viewport-height-border-expected.txt: Added. * fast/css/viewport-height-border.html: Added. * fast/css/viewport-height-outline-expected.txt: Added. * fast/css/viewport-height-outline.html: Added. * fast/css/viewport-width-border-expected.txt: Added. * fast/css/viewport-width-border.html: Added. * fast/css/viewport-width-outline-expected.txt: Added. * fast/css/viewport-width-outline.html: Added. Added new tests for verifying that border and outline properties are applied when its values are given in vh/vw units. * resources/js-test-pre.js: (shouldNotBeEqualToString): Added this API so that can compare two strings.Similiar to shouldBeEqualToString. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155624 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I77c04e5ace2d16158502295622132551a8b866fd Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'Source/JavaScriptCore/runtime/JSStringBuilder.h')
0 files changed, 0 insertions, 0 deletions