OLD | NEW |
---|---|
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 Loading... | |
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::InternalLoading, &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::InternalLoading, &frame), |
Sami
2016/12/08 17:05:08
I would classify both of these as timers since the
altimin
2016/12/08 17:47:40
Done.
| |
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 4484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4659 DCHECK(m_frame->isMainFrame()); | 4661 DCHECK(m_frame->isMainFrame()); |
4660 return m_initialViewportSize.width(); | 4662 return m_initialViewportSize.width(); |
4661 } | 4663 } |
4662 | 4664 |
4663 int FrameView::initialViewportHeight() const { | 4665 int FrameView::initialViewportHeight() const { |
4664 DCHECK(m_frame->isMainFrame()); | 4666 DCHECK(m_frame->isMainFrame()); |
4665 return m_initialViewportSize.height(); | 4667 return m_initialViewportSize.height(); |
4666 } | 4668 } |
4667 | 4669 |
4668 } // namespace blink | 4670 } // namespace blink |
OLD | NEW |