Commit 47a9fa0a authored by tkent@chromium.org's avatar tkent@chromium.org

2011-01-04 Kent Tamura <tkent@chromium.org>

        Unreviewed, build fix.

        Try to fix Clang build.

        * css/CSSParser.cpp:
        (WebCore::valueFromSideKeyword):
        (WebCore::CSSParser::parseLinearGradient):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74959 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f519dc45
2011-01-04 Kent Tamura <tkent@chromium.org>
Unreviewed, build fix.
Try to fix Clang build.
* css/CSSParser.cpp:
(WebCore::valueFromSideKeyword):
(WebCore::CSSParser::parseLinearGradient):
2011-01-03 Julie-Jeongeun-Kim <Jeongeun.Kim@obigo.com>
Reviewed by Darin Adler.
......
......@@ -4876,7 +4876,7 @@ static PassRefPtr<CSSPrimitiveValue> valueFromSideKeyword(CSSParserValue* a, boo
isHorizontal = false;
break;
default:
return false;
return 0;
}
return CSSPrimitiveValue::createIdentifier(a->id);
}
......@@ -4917,7 +4917,7 @@ bool CSSParser::parseLinearGradient(RefPtr<CSSValue>& gradient)
RefPtr<CSSPrimitiveValue> location;
bool isHorizontal = false;
if (location = valueFromSideKeyword(a, isHorizontal)) {
if ((location = valueFromSideKeyword(a, isHorizontal))) {
if (isHorizontal)
startX = location;
else
......@@ -4925,7 +4925,7 @@ bool CSSParser::parseLinearGradient(RefPtr<CSSValue>& gradient)
a = args->next();
if (a) {
if (location = valueFromSideKeyword(a, isHorizontal)) {
if ((location = valueFromSideKeyword(a, isHorizontal))) {
if (isHorizontal) {
if (startX)
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment