Index: Source/core/html/shadow/SliderThumbElement.cpp |
diff --git a/Source/core/html/shadow/SliderThumbElement.cpp b/Source/core/html/shadow/SliderThumbElement.cpp |
index e34c2c0d92e96aef021158e3d3e4a9bfbdb46de9..093f36cc057f5f825545647822edcc3d8cd039a1 100644 |
--- a/Source/core/html/shadow/SliderThumbElement.cpp |
+++ b/Source/core/html/shadow/SliderThumbElement.cpp |
@@ -226,12 +226,12 @@ bool SliderThumbElement::isDisabledFormControl() const |
bool SliderThumbElement::matchesReadOnlyPseudoClass() const |
{ |
- return hostInput()->matchesReadOnlyPseudoClass(); |
+ return hostInput() && hostInput()->matchesReadOnlyPseudoClass(); |
} |
bool SliderThumbElement::matchesReadWritePseudoClass() const |
{ |
- return hostInput()->matchesReadWritePseudoClass(); |
+ return hostInput() && hostInput()->matchesReadWritePseudoClass(); |
} |
Node* SliderThumbElement::focusDelegate() |
@@ -322,7 +322,8 @@ void SliderThumbElement::stopDragging() |
m_inDragMode = false; |
if (renderer()) |
renderer()->setNeedsLayout(); |
- hostInput()->dispatchFormControlChangeEvent(); |
+ if (hostInput()) |
+ hostInput()->dispatchFormControlChangeEvent(); |
} |
void SliderThumbElement::defaultEventHandler(Event* event) |