Index: Source/core/html/shadow/SliderThumbElement.cpp |
diff --git a/Source/core/html/shadow/SliderThumbElement.cpp b/Source/core/html/shadow/SliderThumbElement.cpp |
index 5f5619881d1de1bb9db13822ecc94905a2091cbc..5cc7df869bb84af6a682712c590ee712bcc3de34 100644 |
--- a/Source/core/html/shadow/SliderThumbElement.cpp |
+++ b/Source/core/html/shadow/SliderThumbElement.cpp |
@@ -78,7 +78,7 @@ void SliderThumbElement::setPositionFromValue() |
// path, we don't actually update the value here. Instead, we poke at the |
// renderer directly to trigger layout. |
if (layoutObject()) |
- layoutObject()->setNeedsLayoutAndFullPaintInvalidation(); |
+ layoutObject()->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::SliderValueChanged); |
} |
LayoutObject* SliderThumbElement::createLayoutObject(const ComputedStyle&) |
@@ -168,7 +168,7 @@ void SliderThumbElement::setPositionFromPoint(const LayoutPoint& point) |
// FIXME: This is no longer being set from renderer. Consider updating the method name. |
input->setValueFromRenderer(valueString); |
if (layoutObject()) |
- layoutObject()->setNeedsLayoutAndFullPaintInvalidation(); |
+ layoutObject()->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::SliderValueChanged); |
} |
void SliderThumbElement::startDragging() |
@@ -188,7 +188,7 @@ void SliderThumbElement::stopDragging() |
frame->eventHandler().setCapturingMouseEventsNode(nullptr); |
m_inDragMode = false; |
if (layoutObject()) |
- layoutObject()->setNeedsLayoutAndFullPaintInvalidation(); |
+ layoutObject()->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::SliderValueChanged); |
if (hostInput()) |
hostInput()->dispatchFormControlChangeEvent(); |
} |