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

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

Issue 2741633002: Remove FrameHost::eventHandlerRegistry() (Closed)
Patch Set: Rebase Created 3 years, 9 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 4843 matching lines...) Expand 10 before | Expand all | Expand 10 after
4854 // partially painted version of this frame's contents if we skipped 4854 // partially painted version of this frame's contents if we skipped
4855 // painting them while the frame was throttled. 4855 // painting them while the frame was throttled.
4856 LayoutViewItem layoutViewItem = this->layoutViewItem(); 4856 LayoutViewItem layoutViewItem = this->layoutViewItem();
4857 if (!layoutViewItem.isNull()) 4857 if (!layoutViewItem.isNull())
4858 layoutViewItem.invalidatePaintForViewAndCompositedLayers(); 4858 layoutViewItem.invalidatePaintForViewAndCompositedLayers();
4859 // Also need to update all paint properties that might be skipped while 4859 // Also need to update all paint properties that might be skipped while
4860 // the frame was throttled. 4860 // the frame was throttled.
4861 setSubtreeNeedsPaintPropertyUpdate(); 4861 setSubtreeNeedsPaintPropertyUpdate();
4862 } 4862 }
4863 4863
4864 bool hasHandlers = m_frame->host() && 4864 bool hasHandlers = m_frame->page() &&
4865 m_frame->host()->eventHandlerRegistry().hasEventHandlers( 4865 m_frame->page()->eventHandlerRegistry().hasEventHandlers(
4866 EventHandlerRegistry::TouchStartOrMoveEventBlocking); 4866 EventHandlerRegistry::TouchStartOrMoveEventBlocking);
4867 if (wasThrottled != canThrottleRendering() && scrollingCoordinator && 4867 if (wasThrottled != canThrottleRendering() && scrollingCoordinator &&
4868 hasHandlers) 4868 hasHandlers)
4869 scrollingCoordinator->touchEventTargetRectsDidChange(); 4869 scrollingCoordinator->touchEventTargetRectsDidChange();
4870 4870
4871 if (m_frame->frameScheduler()) { 4871 if (m_frame->frameScheduler()) {
4872 m_frame->frameScheduler()->setFrameVisible(!m_hiddenForThrottling); 4872 m_frame->frameScheduler()->setFrameVisible(!m_hiddenForThrottling);
4873 m_frame->frameScheduler()->setCrossOrigin(m_frame->isCrossOriginSubframe()); 4873 m_frame->frameScheduler()->setCrossOrigin(m_frame->isCrossOriginSubframe());
4874 } 4874 }
4875 4875
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
5253 void FrameView::setAnimationHost( 5253 void FrameView::setAnimationHost(
5254 std::unique_ptr<CompositorAnimationHost> host) { 5254 std::unique_ptr<CompositorAnimationHost> host) {
5255 m_animationHost = std::move(host); 5255 m_animationHost = std::move(host);
5256 } 5256 }
5257 5257
5258 LayoutUnit FrameView::caretWidth() const { 5258 LayoutUnit FrameView::caretWidth() const {
5259 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); 5259 return LayoutUnit(getHostWindow()->windowToViewportScalar(1));
5260 } 5260 }
5261 5261
5262 } // namespace blink 5262 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameHost.cpp ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698