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

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

Issue 2043903002: Move didChangeCursor calls from WebViewClient to WebWidgetClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 4 years, 5 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
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 3119 matching lines...) Expand 10 before | Expand all | Expand 10 after
3130 if (frame().document()) 3130 if (frame().document())
3131 return frame().document()->existingAXObjectCache(); 3131 return frame().document()->existingAXObjectCache();
3132 return nullptr; 3132 return nullptr;
3133 } 3133 }
3134 3134
3135 void FrameView::setCursor(const Cursor& cursor) 3135 void FrameView::setCursor(const Cursor& cursor)
3136 { 3136 {
3137 Page* page = frame().page(); 3137 Page* page = frame().page();
3138 if (!page || !page->settings().deviceSupportsMouse()) 3138 if (!page || !page->settings().deviceSupportsMouse())
3139 return; 3139 return;
3140 page->chromeClient().setCursor(cursor, m_frame->localFrameRoot()); 3140 page->chromeClient().setCursor(cursor, m_frame);
3141 } 3141 }
3142 3142
3143 void FrameView::frameRectsChanged() 3143 void FrameView::frameRectsChanged()
3144 { 3144 {
3145 TRACE_EVENT0("blink", "FrameView::frameRectsChanged"); 3145 TRACE_EVENT0("blink", "FrameView::frameRectsChanged");
3146 if (layoutSizeFixedToFrameSize()) 3146 if (layoutSizeFixedToFrameSize())
3147 setLayoutSizeInternal(frameRect().size()); 3147 setLayoutSizeInternal(frameRect().size());
3148 3148
3149 setNeedsUpdateViewportIntersection(); 3149 setNeedsUpdateViewportIntersection();
3150 for (const auto& child : m_children) 3150 for (const auto& child : m_children)
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
4239 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); 4239 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling);
4240 } 4240 }
4241 4241
4242 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 4242 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
4243 { 4243 {
4244 ASSERT(!layoutViewItem().isNull()); 4244 ASSERT(!layoutViewItem().isNull());
4245 return *layoutView(); 4245 return *layoutView();
4246 } 4246 }
4247 4247
4248 } // namespace blink 4248 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698