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

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

Issue 2556993005: [blink] Split TaskType::Internal into InternalTimer and InternalLoading. (Closed)
Patch Set: One more fix Created 3 years, 12 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 static const double resourcePriorityUpdateDelayAfterScroll = 0.250; 149 static const double resourcePriorityUpdateDelayAfterScroll = 0.250;
150 150
151 static bool s_initialTrackAllPaintInvalidations = false; 151 static bool s_initialTrackAllPaintInvalidations = false;
152 152
153 FrameView::FrameView(LocalFrame& frame) 153 FrameView::FrameView(LocalFrame& frame)
154 : m_frame(frame), 154 : m_frame(frame),
155 m_displayMode(WebDisplayModeBrowser), 155 m_displayMode(WebDisplayModeBrowser),
156 m_canHaveScrollbars(true), 156 m_canHaveScrollbars(true),
157 m_hasPendingLayout(false), 157 m_hasPendingLayout(false),
158 m_inSynchronousPostLayout(false), 158 m_inSynchronousPostLayout(false),
159 m_postLayoutTasksTimer(TaskRunnerHelper::get(TaskType::Internal, &frame), 159 m_postLayoutTasksTimer(
160 this, 160 TaskRunnerHelper::get(TaskType::UnspecedTimer, &frame),
161 &FrameView::postLayoutTimerFired), 161 this,
162 m_updateWidgetsTimer(TaskRunnerHelper::get(TaskType::Internal, &frame), 162 &FrameView::postLayoutTimerFired),
163 this, 163 m_updateWidgetsTimer(
164 &FrameView::updateWidgetsTimerFired), 164 TaskRunnerHelper::get(TaskType::UnspecedTimer, &frame),
165 this,
166 &FrameView::updateWidgetsTimerFired),
165 m_isTransparent(false), 167 m_isTransparent(false),
166 m_baseBackgroundColor(Color::white), 168 m_baseBackgroundColor(Color::white),
167 m_mediaType(MediaTypeNames::screen), 169 m_mediaType(MediaTypeNames::screen),
168 m_safeToPropagateScrollToParent(true), 170 m_safeToPropagateScrollToParent(true),
169 m_scrollCorner(nullptr), 171 m_scrollCorner(nullptr),
170 m_stickyPositionObjectCount(0), 172 m_stickyPositionObjectCount(0),
171 m_inputEventsScaleFactorForEmulation(1), 173 m_inputEventsScaleFactorForEmulation(1),
172 m_layoutSizeFixedToFrameSize(true), 174 m_layoutSizeFixedToFrameSize(true),
173 m_didScrollTimer(this, &FrameView::didScrollTimerFired), 175 m_didScrollTimer(this, &FrameView::didScrollTimerFired),
174 m_browserControlsViewportAdjustment(0), 176 m_browserControlsViewportAdjustment(0),
(...skipping 4523 matching lines...) Expand 10 before | Expand all | Expand 10 after
4698 DCHECK(m_frame->isMainFrame()); 4700 DCHECK(m_frame->isMainFrame());
4699 return m_initialViewportSize.width(); 4701 return m_initialViewportSize.width();
4700 } 4702 }
4701 4703
4702 int FrameView::initialViewportHeight() const { 4704 int FrameView::initialViewportHeight() const {
4703 DCHECK(m_frame->isMainFrame()); 4705 DCHECK(m_frame->isMainFrame());
4704 return m_initialViewportSize.height(); 4706 return m_initialViewportSize.height();
4705 } 4707 }
4706 4708
4707 } // namespace blink 4709 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698