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

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

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index d07a8f1ecc5a2609240e7965d311773527d173d6..29b89596bf12d17ced8953b75a114751b0b80aaf 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -388,7 +388,7 @@ WebInputEventResult EventHandler::handleMousePressEvent(const MouseEventWithHitT
cancelFakeMouseMoveEvent();
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
if (FrameView* frameView = m_frame->view()) {
if (frameView->isPointInScrollbarCorner(event.event().position()))
@@ -656,7 +656,7 @@ ScrollResult EventHandler::physicalScroll(ScrollGranularity granularity,
Node* node = startNode;
ASSERT(node && node->layoutObject());
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
ScrollResult result;
@@ -712,7 +712,7 @@ bool EventHandler::logicalScroll(ScrollDirection direction, ScrollGranularity gr
if (!node)
return false;
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
LayoutBox* curBox = node->layoutObject()->enclosingBox();
while (curBox) {
@@ -738,7 +738,7 @@ void EventHandler::customizedScroll(const Node& startNode, ScrollState& scrollSt
return;
if (scrollState.deltaX() || scrollState.deltaY())
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
if (m_currentScrollChain.empty())
recomputeScrollChain(*m_frame, startNode, m_currentScrollChain);
@@ -753,7 +753,7 @@ bool EventHandler::bubblingScroll(ScrollDirection direction, ScrollGranularity g
{
// 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.
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
// FIXME: enable scroll customization in this case. See crbug.com/410974.
if (logicalScroll(direction, granularity, startingNode))
return true;
@@ -841,7 +841,7 @@ void EventHandler::updateCursor()
if (layoutViewItem.isNull())
return;
- m_frame->document()->updateLayout();
+ m_frame->document()->updateStyleAndLayout();
HitTestRequest request(HitTestRequest::ReadOnly | HitTestRequest::AllowChildFrameContent);
HitTestResult result(request, view->rootFrameToContents(m_lastKnownMousePosition));
@@ -1786,7 +1786,7 @@ WebInputEventResult EventHandler::handleMouseFocus(const MouseEventWithHitTestRe
}
// The layout needs to be up to date to determine if an element is focusable.
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
Element* element = nullptr;
if (m_nodeUnderMouse)

Powered by Google App Engine
This is Rietveld 408576698