Index: third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp b/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp |
index 2ed99ed2ce9aecf375182ed61634eedaa508a230..96c0368e1684004c22eeff8110bb32cfcf1300fb 100644 |
--- a/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp |
+++ b/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp |
@@ -92,7 +92,7 @@ void SpinButtonElement::defaultEventHandler(Event* event) |
if (box->pixelSnappedBorderBoxRect().contains(local)) { |
if (m_spinButtonOwner) |
m_spinButtonOwner->focusAndSelectSpinButtonOwner(); |
- if (layoutObject()) { |
+ if (hasLayoutObject()) { |
if (m_upDownState != Indeterminate) { |
// A JavaScript event handler called in doStepAction() below |
// might change the element state and we might need to |