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

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 1120653002: Revert of Schedule cursor update when DOM updates layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/events/mouse-cursor-change-after-layout-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 if (m_isVisuallyNonEmpty && !m_frame->document()->didLayoutWithPendingSt ylesheets() && m_firstVisuallyNonEmptyLayoutCallbackPending) { 2098 if (m_isVisuallyNonEmpty && !m_frame->document()->didLayoutWithPendingSt ylesheets() && m_firstVisuallyNonEmptyLayoutCallbackPending) {
2099 m_firstVisuallyNonEmptyLayoutCallbackPending = false; 2099 m_firstVisuallyNonEmptyLayoutCallbackPending = false;
2100 // FIXME: This callback is probably not needed, but is currently use d 2100 // FIXME: This callback is probably not needed, but is currently use d
2101 // by android for setting the background color. 2101 // by android for setting the background color.
2102 m_frame->loader().client()->dispatchDidFirstVisuallyNonEmptyLayout() ; 2102 m_frame->loader().client()->dispatchDidFirstVisuallyNonEmptyLayout() ;
2103 } 2103 }
2104 } 2104 }
2105 2105
2106 FontFaceSet::didLayout(*m_frame->document()); 2106 FontFaceSet::didLayout(*m_frame->document());
2107 2107
2108 frame().eventHandler().scheduleCursorUpdate();
2109
2110 updateWidgetPositions(); 2108 updateWidgetPositions();
2111 2109
2112 // Plugins could have torn down the page inside updateWidgetPositions(). 2110 // Plugins could have torn down the page inside updateWidgetPositions().
2113 if (!renderView()) 2111 if (!renderView())
2114 return; 2112 return;
2115 2113
2116 scheduleUpdateWidgetsIfNecessary(); 2114 scheduleUpdateWidgetsIfNecessary();
2117 2115
2118 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator( )) 2116 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator( ))
2119 scrollingCoordinator->notifyLayoutUpdated(); 2117 scrollingCoordinator->notifyLayoutUpdated();
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
4034 { 4032 {
4035 Settings* settings = frame().settings(); 4033 Settings* settings = frame().settings();
4036 if (!settings || !settings->rootLayerScrolls()) 4034 if (!settings || !settings->rootLayerScrolls())
4037 return this; 4035 return this;
4038 4036
4039 RenderView* renderView = this->renderView(); 4037 RenderView* renderView = this->renderView();
4040 return renderView ? renderView->scrollableArea() : nullptr; 4038 return renderView ? renderView->scrollableArea() : nullptr;
4041 } 4039 }
4042 4040
4043 } // namespace blink 4041 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/mouse-cursor-change-after-layout-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698