[CSS Shapes] Simplify the parsing of width arguments for Inset shapes
authorzoltan@webkit.org <zoltan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Apr 2014 04:47:05 +0000 (04:47 +0000)
committerzoltan@webkit.org <zoltan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Apr 2014 04:47:05 +0000 (04:47 +0000)
commitded533d8a49bf2a1324de63b33944de42b890eae
treef48e2b025dfdb169179dabc20c2c7380a6d6e2bf
parent2b7f2beac8294d27e6e9c72a3f6f89f9ce2c7bf3
[CSS Shapes] Simplify the parsing of width arguments for Inset shapes
https://bugs.webkit.org/show_bug.cgi?id=131305

Reviewed by Andreas Kling.

This code introduces some helper functions for setting the size arguments of inset shapes. This change
also modifies the code to be the same as in Blink, so it helps us to keep the shapes code similar.

No new tests, no behavior change.

* css/CSSBasicShapes.h:
(WebCore::CSSBasicShapeInset::updateShapeSize4Values):
(WebCore::CSSBasicShapeInset::updateShapeSize1Value):
(WebCore::CSSBasicShapeInset::updateShapeSize2Values):
(WebCore::CSSBasicShapeInset::updateShapeSize3Values):
* css/CSSParser.cpp:
(WebCore::CSSParser::parseBasicShapeInset):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@166909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSBasicShapes.h
Source/WebCore/css/CSSParser.cpp