| Index: Source/core/css/resolver/StyleBuilderConverter.cpp
|
| diff --git a/Source/core/css/resolver/StyleBuilderConverter.cpp b/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| index d022f6b373c163539de18ff7e55b53c13086e5e1..ca3a734b360466690c0574b2f2409b5fa773135f 100644
|
| --- a/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| +++ b/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| @@ -166,4 +166,21 @@ PassRefPtr<SVGLength> StyleBuilderConverter::convertSVGLength(StyleResolverState
|
| return SVGLength::fromCSSPrimitiveValue(toCSSPrimitiveValue(value));
|
| }
|
|
|
| +StyleNavigationValue StyleBuilderConverter::convertStyleNavigationValue(StyleResolverState&, CSSValue* value)
|
| +{
|
| + CSSValueListIterator iterator = value;
|
| + if (!iterator.hasMore()) {
|
| + // auto value.
|
| + return StyleNavigationValue();
|
| + }
|
| +
|
| + String id = toCSSPrimitiveValue(iterator.value())->getStringValue();
|
| + iterator.advance();
|
| + String target = "current";
|
| + if (iterator.hasMore())
|
| + target = toCSSPrimitiveValue(iterator.value())->getStringValue();
|
| +
|
| + return StyleNavigationValue(id, target);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|