summaryrefslogtreecommitdiffstats
path: root/WebCore/wml/WMLOptionElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/wml/WMLOptionElement.cpp')
-rw-r--r--WebCore/wml/WMLOptionElement.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/wml/WMLOptionElement.cpp b/WebCore/wml/WMLOptionElement.cpp
index 764d3a1..61fa762 100644
--- a/WebCore/wml/WMLOptionElement.cpp
+++ b/WebCore/wml/WMLOptionElement.cpp
@@ -158,6 +158,10 @@ RenderStyle* WMLOptionElement::nonRendererRenderStyle() const
void WMLOptionElement::handleIntrinsicEventIfNeeded()
{
+ WMLSelectElement* select = ownerSelectElement(this);
+ if (!select || !select->initialized())
+ return;
+
WMLIntrinsicEventHandler* eventHandler = this->eventHandler();
if (!eventHandler)
return;