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

Unified Diff: third_party/WebKit/Source/core/input/ScrollManager.cpp

Issue 2397723004: reflow comments in core/input (Closed)
Patch Set: 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/input/ScrollManager.cpp
diff --git a/third_party/WebKit/Source/core/input/ScrollManager.cpp b/third_party/WebKit/Source/core/input/ScrollManager.cpp
index 0f720e50cc0be53cb15c520582691be06c61a6ea..c3a69467f399cc7b7e8f532415f8b6b2bd3e8a35 100644
--- a/third_party/WebKit/Source/core/input/ScrollManager.cpp
+++ b/third_party/WebKit/Source/core/input/ScrollManager.cpp
@@ -160,7 +160,8 @@ bool ScrollManager::bubblingScroll(ScrollDirection direction,
Node* startingNode,
Node* mousePressNode) {
// The layout needs to be up to date to determine if we can scroll. We may be
- // here because of an onLoad event, in which case the final layout hasn't been performed yet.
+ // here because of an onLoad event, in which case the final layout hasn't been
+ // performed yet.
m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
// FIXME: enable scroll customization in this case. See crbug.com/410974.
if (logicalScroll(direction, granularity, startingNode, mousePressNode))
@@ -202,8 +203,9 @@ WebInputEventResult ScrollManager::handleGestureScrollBegin(
if (document->layoutViewItem().isNull())
return WebInputEventResult::NotHandled;
- // If there's no layoutObject on the node, send the event to the nearest ancestor with a layoutObject.
- // Needed for <option> and <optgroup> elements so we can touch scroll <select>s
+ // If there's no layoutObject on the node, send the event to the nearest
+ // ancestor with a layoutObject. Needed for <option> and <optgroup> elements
+ // so we can touch scroll <select>s
while (m_scrollGestureHandlingNode &&
!m_scrollGestureHandlingNode->layoutObject())
m_scrollGestureHandlingNode =
« no previous file with comments | « third_party/WebKit/Source/core/input/ScrollManager.h ('k') | third_party/WebKit/Source/core/input/TouchActionUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698