Commit 105ff051 authored by ager@chromium.org's avatar ager@chromium.org

Oilpan: fix build after changes that did not take oilpan into account.

R=haraken@chromium.org, wibling@chromium.org
TBR=betravis@adobe.com, haraken@chromium.org, wibling@chromium.org
NOTRY=true

Review URL: https://codereview.chromium.org/184293008

git-svn-id: svn://svn.chromium.org/blink/trunk@168487 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e5693b5b
...@@ -1438,12 +1438,15 @@ static PassRefPtrWillBeRawPtr<CSSValue> valueForShape(const RenderStyle& style, ...@@ -1438,12 +1438,15 @@ static PassRefPtrWillBeRawPtr<CSSValue> valueForShape(const RenderStyle& style,
return cssValuePool().createIdentifierValue(CSSValueOutsideShape); return cssValuePool().createIdentifierValue(CSSValueOutsideShape);
if (shapeValue->type() == ShapeValue::Box) if (shapeValue->type() == ShapeValue::Box)
return cssValuePool().createValue(shapeValue->layoutBox()); return cssValuePool().createValue(shapeValue->layoutBox());
if (shapeValue->type() == ShapeValue::Image) if (shapeValue->type() == ShapeValue::Image) {
return shapeValue->image() ? shapeValue->image()->cssValue() : cssValuePool().createIdentifierValue(CSSValueNone); if (shapeValue->image())
return shapeValue->image()->cssValue();
return cssValuePool().createIdentifierValue(CSSValueNone);
}
ASSERT(shapeValue->type() == ShapeValue::Shape); ASSERT(shapeValue->type() == ShapeValue::Shape);
RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
list->append(valueForBasicShape(style, shapeValue->shape())); list->append(valueForBasicShape(style, shapeValue->shape()));
if (shapeValue->layoutBox() != BoxMissing) if (shapeValue->layoutBox() != BoxMissing)
list->append(cssValuePool().createValue(shapeValue->layoutBox())); list->append(cssValuePool().createValue(shapeValue->layoutBox()));
......
...@@ -4445,14 +4445,14 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseBasicShapeAndOrBox() ...@@ -4445,14 +4445,14 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseBasicShapeAndOrBox()
bool boxFound = false; bool boxFound = false;
CSSValueID valueId; CSSValueID valueId;
RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
for (unsigned i = 0; i < 2; ++i) { for (unsigned i = 0; i < 2; ++i) {
if (!value) if (!value)
break; break;
valueId = value->id; valueId = value->id;
if (value->unit == CSSParserValue::Function && !shapeFound) { if (value->unit == CSSParserValue::Function && !shapeFound) {
// parseBasicShape already asks for the next value list item. // parseBasicShape already asks for the next value list item.
RefPtr<CSSPrimitiveValue> shapeValue = parseBasicShape(); RefPtrWillBeRawPtr<CSSPrimitiveValue> shapeValue = parseBasicShape();
if (!shapeValue) if (!shapeValue)
return nullptr; return nullptr;
list->append(shapeValue.release()); list->append(shapeValue.release());
......
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