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

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

Issue 2705403003: Convert FrameView timer to UnspecedTimer frame-specific timer. (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/core/frame/FrameView.h ('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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 this, 176 this,
177 &FrameView::updateWidgetsTimerFired), 177 &FrameView::updateWidgetsTimerFired),
178 m_isTransparent(false), 178 m_isTransparent(false),
179 m_baseBackgroundColor(Color::white), 179 m_baseBackgroundColor(Color::white),
180 m_mediaType(MediaTypeNames::screen), 180 m_mediaType(MediaTypeNames::screen),
181 m_safeToPropagateScrollToParent(true), 181 m_safeToPropagateScrollToParent(true),
182 m_scrollCorner(nullptr), 182 m_scrollCorner(nullptr),
183 m_stickyPositionObjectCount(0), 183 m_stickyPositionObjectCount(0),
184 m_inputEventsScaleFactorForEmulation(1), 184 m_inputEventsScaleFactorForEmulation(1),
185 m_layoutSizeFixedToFrameSize(true), 185 m_layoutSizeFixedToFrameSize(true),
186 m_didScrollTimer(this, &FrameView::didScrollTimerFired), 186 m_didScrollTimer(TaskRunnerHelper::get(TaskType::UnspecedTimer, &frame),
187 this,
188 &FrameView::didScrollTimerFired),
187 m_needsUpdateWidgetGeometries(false), 189 m_needsUpdateWidgetGeometries(false),
188 m_horizontalScrollbarMode(ScrollbarAuto), 190 m_horizontalScrollbarMode(ScrollbarAuto),
189 m_verticalScrollbarMode(ScrollbarAuto), 191 m_verticalScrollbarMode(ScrollbarAuto),
190 m_horizontalScrollbarLock(false), 192 m_horizontalScrollbarLock(false),
191 m_verticalScrollbarLock(false), 193 m_verticalScrollbarLock(false),
192 m_scrollbarsSuppressed(false), 194 m_scrollbarsSuppressed(false),
193 m_inUpdateScrollbars(false), 195 m_inUpdateScrollbars(false),
194 m_frameTimingRequestsDirty(true), 196 m_frameTimingRequestsDirty(true),
195 m_hiddenForThrottling(false), 197 m_hiddenForThrottling(false),
196 m_subtreeThrottled(false), 198 m_subtreeThrottled(false),
(...skipping 4988 matching lines...) Expand 10 before | Expand all | Expand 10 after
5185 void FrameView::setAnimationHost( 5187 void FrameView::setAnimationHost(
5186 std::unique_ptr<CompositorAnimationHost> host) { 5188 std::unique_ptr<CompositorAnimationHost> host) {
5187 m_animationHost = std::move(host); 5189 m_animationHost = std::move(host);
5188 } 5190 }
5189 5191
5190 LayoutUnit FrameView::caretWidth() const { 5192 LayoutUnit FrameView::caretWidth() const {
5191 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); 5193 return LayoutUnit(getHostWindow()->windowToViewportScalar(1));
5192 } 5194 }
5193 5195
5194 } // namespace blink 5196 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698