Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: Source/core/html/shadow/SliderThumbElement.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/forms/RangeInputType.cpp ('k') | Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « Source/core/html/forms/RangeInputType.cpp ('k') | Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698