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

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

Issue 2393133004: reflow comments in core/html/shadow (Closed)
Patch Set: oops Created 4 years, 2 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
Index: third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
index 648d7e10d1b877b7b6f3c42dcc06c5e17e31719c..fead6f8529ac8adfaec846211606d59e90d68948 100644
--- a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
@@ -167,7 +167,8 @@ void SliderThumbElement::setPositionFromPoint(const LayoutPoint& point) {
if (valueString == input->value())
return;
- // FIXME: This is no longer being set from renderer. Consider updating the method name.
+ // FIXME: This is no longer being set from renderer. Consider updating the
+ // method name.
input->setValueFromRenderer(valueString);
if (layoutObject())
layoutObject()->setNeedsLayoutAndFullPaintInvalidation(
@@ -202,7 +203,8 @@ void SliderThumbElement::defaultEventHandler(Event* event) {
}
// FIXME: Should handle this readonly/disabled check in more general way.
- // Missing this kind of check is likely to occur elsewhere if adding it in each shadow element.
+ // Missing this kind of check is likely to occur elsewhere if adding it in
+ // each shadow element.
HTMLInputElement* input = hostInput();
if (!input || input->isDisabledOrReadOnly()) {
stopDragging();
@@ -260,8 +262,8 @@ void SliderThumbElement::detachLayoutTree(const AttachContext& context) {
}
HTMLInputElement* SliderThumbElement::hostInput() const {
- // Only HTMLInputElement creates SliderThumbElement instances as its shadow nodes.
- // So, ownerShadowHost() must be an HTMLInputElement.
+ // Only HTMLInputElement creates SliderThumbElement instances as its shadow
+ // nodes. So, ownerShadowHost() must be an HTMLInputElement.
return toHTMLInputElement(ownerShadowHost());
}
@@ -358,7 +360,8 @@ void SliderContainerElement::handleTouchEvent(TouchEvent* event) {
m_slidingDirection = getDirection(currentPoint, m_startPoint);
}
- // m_slidingDirection has been updated, so check whether it's okay to slide again.
+ // m_slidingDirection has been updated, so check whether it's okay to
+ // slide again.
if (canSlide()) {
thumb->setPositionFromPoint(touches->item(0)->absoluteLocation());
event->setDefaultHandled();

Powered by Google App Engine
This is Rietveld 408576698