| Index: Source/core/html/HTMLOptionElement.cpp
|
| diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp
|
| index a02a889367e73b3afbc50809de3ccd44a1c21b21..c7b931649f6f9763531d752b1c673f07c2f71829 100644
|
| --- a/Source/core/html/HTMLOptionElement.cpp
|
| +++ b/Source/core/html/HTMLOptionElement.cpp
|
| @@ -397,4 +397,18 @@ bool HTMLOptionElement::spatialNavigationFocused() const
|
| return select->spatialNavigationFocusedOption() == this;
|
| }
|
|
|
| +bool HTMLOptionElement::isDisplayNone()
|
| +{
|
| + RenderStyle* style = renderStyle() ? renderStyle() : computedStyle();
|
| + if (style && style->display() != NONE) {
|
| + Element* parent = parentElement();
|
| + ASSERT(parent);
|
| + if (isHTMLOptGroupElement(*parent)) {
|
| + RenderStyle* parentStyle = parent->renderStyle() ? parent->renderStyle() : parent->computedStyle();
|
| + return !parentStyle || parentStyle->display() == NONE;
|
| + }
|
| + }
|
| + return !style || style->display() == NONE;
|
| +}
|
| +
|
| } // namespace blink
|
|
|