Shape-inside / shape-outside should support percent-based measurements
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2012 18:24:03 +0000 (18:24 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2012 18:24:03 +0000 (18:24 +0000)
commit65add46a027c1fdb4dd0ff7d4d0d62349e91c731
treec4fc93051b9fd12821d4de6fc52f3c651290f240
parente538cd5a28db9c250ba6d49670965466ea9923df
Shape-inside / shape-outside should support percent-based measurements
https://bugs.webkit.org/show_bug.cgi?id=90311

Patch by Bem Jones-Bey <bjonesbe@adobe.com> on 2012-07-19
Reviewed by Andreas Kling.

Source/WebCore:

Update the CSS Parser to accept percentage length values for exclusion
shapes.

Testing added to LayoutTests/fast/exclusions/parsing-wrap-shape-lengths.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parseExclusionShapeRectangle):
(WebCore::CSSParser::parseExclusionShapeCircle):
(WebCore::CSSParser::parseExclusionShapeEllipse):
(WebCore::CSSParser::parseExclusionShapePolygon):

LayoutTests:

Added tests for percent based lengths for exclusion shapes.

* fast/exclusions/parsing-wrap-shape-lengths-expected.txt:
* fast/exclusions/parsing-wrap-shape-lengths.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/exclusions/parsing-wrap-shape-lengths-expected.txt
LayoutTests/fast/exclusions/parsing-wrap-shape-lengths.html
Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp