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

Unified Diff: sky/engine/core/page/EventHandler.cpp

Issue 834693007: Remove the remaining parts of ignorePendingStylesheets and placeholder styles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove comment. Created 5 years, 11 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 | « sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | sky/engine/core/page/FocusController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/page/EventHandler.cpp
diff --git a/sky/engine/core/page/EventHandler.cpp b/sky/engine/core/page/EventHandler.cpp
index 1bf66bd82bfb3a1fee89cd9cdb011e25068d378a..fb41cc372ed81ae47890a4ef70df5f8c20a4321c 100644
--- a/sky/engine/core/page/EventHandler.cpp
+++ b/sky/engine/core/page/EventHandler.cpp
@@ -409,7 +409,7 @@ bool EventHandler::handleMousePressEventSingleClick(const MouseEventWithHitTestR
{
TRACE_EVENT0("blink", "EventHandler::handleMousePressEventSingleClick");
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateLayout();
Node* innerNode = event.targetNode();
if (!(innerNode && innerNode->renderer() && m_mouseDownMayStartSelect))
return false;
@@ -488,7 +488,7 @@ bool EventHandler::handleMousePressEvent(const MouseEventWithHitTestResults& eve
cancelFakeMouseMoveEvent();
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateLayout();
bool singleClick = event.event().clickCount() <= 1;
@@ -774,7 +774,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()->updateLayout();
if (scroll(direction, granularity, startingNode))
return true;
return false;
@@ -1354,7 +1354,7 @@ bool EventHandler::dispatchMouseEvent(const AtomicString& eventType, Node* targe
bool EventHandler::handleMouseFocus(const PlatformMouseEvent& mouseEvent)
{
// The layout needs to be up to date to determine if an element is focusable.
- m_frame->document()->updateLayoutIgnorePendingStylesheets();
+ m_frame->document()->updateLayout();
Element* element = 0;
if (m_nodeUnderMouse)
« no previous file with comments | « sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | sky/engine/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698