| Index: Source/core/html/forms/ColorInputType.cpp
|
| diff --git a/Source/core/html/forms/ColorInputType.cpp b/Source/core/html/forms/ColorInputType.cpp
|
| index 97448940031a27406b734641670f2b5c731c5693..a43f87e5e751f81cf0b61a283ad38ed7f45f9183 100644
|
| --- a/Source/core/html/forms/ColorInputType.cpp
|
| +++ b/Source/core/html/forms/ColorInputType.cpp
|
| @@ -121,7 +121,11 @@ void ColorInputType::createShadowSubtree()
|
|
|
| Document& document = element()->document();
|
| RefPtr<HTMLDivElement> wrapperElement = HTMLDivElement::create(document);
|
| - wrapperElement->setPart(AtomicString("-webkit-color-swatch-wrapper", AtomicString::ConstructFromLiteral));
|
| + AtomicString dirAttributeValue = element()->fastGetAttribute(dirAttr);
|
| + if (equalIgnoringCase(dirAttributeValue, "rtl"))
|
| + wrapperElement->setPart(AtomicString("-webkit-color-swatch-wrapper-rtl", AtomicString::ConstructFromLiteral));
|
| + else
|
| + wrapperElement->setPart(AtomicString("-webkit-color-swatch-wrapper", AtomicString::ConstructFromLiteral));
|
| RefPtr<HTMLDivElement> colorSwatch = HTMLDivElement::create(document);
|
| colorSwatch->setPart(AtomicString("-webkit-color-swatch", AtomicString::ConstructFromLiteral));
|
| wrapperElement->appendChild(colorSwatch.release());
|
|
|