OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 (C) 1998 Waldo Bastian (bastian@kde.org) | 3 (C) 1998 Waldo Bastian (bastian@kde.org) |
4 (C) 1998, 1999 Torben Weis (weis@kde.org) | 4 (C) 1998, 1999 Torben Weis (weis@kde.org) |
5 (C) 1999 Lars Knoll (knoll@kde.org) | 5 (C) 1999 Lars Knoll (knoll@kde.org) |
6 (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
8 | 8 |
9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 class RenderEmbeddedObject; | 51 class RenderEmbeddedObject; |
52 class RenderObject; | 52 class RenderObject; |
53 class RenderScrollbarPart; | 53 class RenderScrollbarPart; |
54 class RenderView; | 54 class RenderView; |
55 class RenderWidget; | 55 class RenderWidget; |
56 struct CompositedSelectionBound; | 56 struct CompositedSelectionBound; |
57 | 57 |
58 typedef unsigned long long DOMTimeStamp; | 58 typedef unsigned long long DOMTimeStamp; |
59 | 59 |
60 // FIXME: Oilpan: move Widget (and thereby FrameView) to the heap. | 60 // FIXME: Oilpan: move Widget (and thereby FrameView) to the heap. |
61 class FrameView FINAL : public ScrollView { | 61 class FrameView final : public ScrollView { |
62 public: | 62 public: |
63 friend class RenderView; | 63 friend class RenderView; |
64 friend class Internals; | 64 friend class Internals; |
65 | 65 |
66 static PassRefPtr<FrameView> create(LocalFrame*); | 66 static PassRefPtr<FrameView> create(LocalFrame*); |
67 static PassRefPtr<FrameView> create(LocalFrame*, const IntSize& initialSize)
; | 67 static PassRefPtr<FrameView> create(LocalFrame*, const IntSize& initialSize)
; |
68 | 68 |
69 virtual ~FrameView(); | 69 virtual ~FrameView(); |
70 | 70 |
71 virtual HostWindow* hostWindow() const OVERRIDE; | 71 virtual HostWindow* hostWindow() const override; |
72 | 72 |
73 virtual void invalidateRect(const IntRect&) OVERRIDE; | 73 virtual void invalidateRect(const IntRect&) override; |
74 virtual void setFrameRect(const IntRect&) OVERRIDE; | 74 virtual void setFrameRect(const IntRect&) override; |
75 | 75 |
76 LocalFrame& frame() const | 76 LocalFrame& frame() const |
77 { | 77 { |
78 ASSERT(m_frame); | 78 ASSERT(m_frame); |
79 return *m_frame; | 79 return *m_frame; |
80 } | 80 } |
81 | 81 |
82 Page* page() const; | 82 Page* page() const; |
83 | 83 |
84 RenderView* renderView() const; | 84 RenderView* renderView() const; |
85 | 85 |
86 virtual void setCanHaveScrollbars(bool) OVERRIDE; | 86 virtual void setCanHaveScrollbars(bool) override; |
87 | 87 |
88 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) OVERRIDE
; | 88 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) override
; |
89 | 89 |
90 virtual void setContentsSize(const IntSize&) OVERRIDE; | 90 virtual void setContentsSize(const IntSize&) override; |
91 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale) const; | 91 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale) const; |
92 | 92 |
93 void layout(bool allowSubtree = true); | 93 void layout(bool allowSubtree = true); |
94 bool didFirstLayout() const; | 94 bool didFirstLayout() const; |
95 void scheduleRelayout(); | 95 void scheduleRelayout(); |
96 void scheduleRelayoutOfSubtree(RenderObject*); | 96 void scheduleRelayoutOfSubtree(RenderObject*); |
97 bool layoutPending() const; | 97 bool layoutPending() const; |
98 bool isInPerformLayout() const; | 98 bool isInPerformLayout() const; |
99 | 99 |
100 void setCanInvalidatePaintDuringPerformLayout(bool b) { m_canInvalidatePaint
DuringPerformLayout = b; } | 100 void setCanInvalidatePaintDuringPerformLayout(bool b) { m_canInvalidatePaint
DuringPerformLayout = b; } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 // True if the FrameView is not transparent, and the base background color i
s opaque. | 139 // True if the FrameView is not transparent, and the base background color i
s opaque. |
140 bool hasOpaqueBackground() const; | 140 bool hasOpaqueBackground() const; |
141 | 141 |
142 Color baseBackgroundColor() const; | 142 Color baseBackgroundColor() const; |
143 void setBaseBackgroundColor(const Color&); | 143 void setBaseBackgroundColor(const Color&); |
144 void updateBackgroundRecursively(const Color&, bool); | 144 void updateBackgroundRecursively(const Color&, bool); |
145 | 145 |
146 void adjustViewSize(); | 146 void adjustViewSize(); |
147 | 147 |
148 virtual IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars)
const OVERRIDE; | 148 virtual IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars)
const override; |
149 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*) const; | 149 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*) const; |
150 | 150 |
151 virtual IntRect windowResizerRect() const OVERRIDE; | 151 virtual IntRect windowResizerRect() const override; |
152 | 152 |
153 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC
ontentScaleFactor; } | 153 virtual float visibleContentScaleFactor() const override { return m_visibleC
ontentScaleFactor; } |
154 void setVisibleContentScaleFactor(float); | 154 void setVisibleContentScaleFactor(float); |
155 | 155 |
156 virtual float inputEventsScaleFactor() const OVERRIDE; | 156 virtual float inputEventsScaleFactor() const override; |
157 virtual IntSize inputEventsOffsetForEmulation() const OVERRIDE; | 157 virtual IntSize inputEventsOffsetForEmulation() const override; |
158 void setInputEventsTransformForEmulation(const IntSize&, float); | 158 void setInputEventsTransformForEmulation(const IntSize&, float); |
159 | 159 |
160 virtual void setScrollPosition(const IntPoint&, ScrollBehavior = ScrollBehav
iorInstant) OVERRIDE; | 160 virtual void setScrollPosition(const IntPoint&, ScrollBehavior = ScrollBehav
iorInstant) override; |
161 virtual bool isRubberBandInProgress() const OVERRIDE; | 161 virtual bool isRubberBandInProgress() const override; |
162 void setScrollPositionNonProgrammatically(const IntPoint&); | 162 void setScrollPositionNonProgrammatically(const IntPoint&); |
163 | 163 |
164 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) | 164 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) |
165 // offsets from rubber-banding, and it takes zooming into account. | 165 // offsets from rubber-banding, and it takes zooming into account. |
166 LayoutRect viewportConstrainedVisibleContentRect() const; | 166 LayoutRect viewportConstrainedVisibleContentRect() const; |
167 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he
ightChanged); | 167 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he
ightChanged); |
168 | 168 |
169 AtomicString mediaType() const; | 169 AtomicString mediaType() const; |
170 void setMediaType(const AtomicString&); | 170 void setMediaType(const AtomicString&); |
171 void adjustMediaTypeForPrinting(bool printing); | 171 void adjustMediaTypeForPrinting(bool printing); |
(...skipping 22 matching lines...) Expand all Loading... |
194 | 194 |
195 bool safeToPropagateScrollToParent() const { return m_safeToPropagateScrollT
oParent; } | 195 bool safeToPropagateScrollToParent() const { return m_safeToPropagateScrollT
oParent; } |
196 void setSafeToPropagateScrollToParent(bool isSafe) { m_safeToPropagateScroll
ToParent = isSafe; } | 196 void setSafeToPropagateScrollToParent(bool isSafe) { m_safeToPropagateScroll
ToParent = isSafe; } |
197 | 197 |
198 void addWidget(RenderWidget*); | 198 void addWidget(RenderWidget*); |
199 void removeWidget(RenderWidget*); | 199 void removeWidget(RenderWidget*); |
200 void updateWidgetPositions(); | 200 void updateWidgetPositions(); |
201 | 201 |
202 void addWidgetToUpdate(RenderEmbeddedObject&); | 202 void addWidgetToUpdate(RenderEmbeddedObject&); |
203 | 203 |
204 virtual void paintContents(GraphicsContext*, const IntRect& damageRect) OVER
RIDE; | 204 virtual void paintContents(GraphicsContext*, const IntRect& damageRect) over
ride; |
205 void setPaintBehavior(PaintBehavior); | 205 void setPaintBehavior(PaintBehavior); |
206 PaintBehavior paintBehavior() const; | 206 PaintBehavior paintBehavior() const; |
207 bool isPainting() const; | 207 bool isPainting() const; |
208 bool hasEverPainted() const { return m_lastPaintTime; } | 208 bool hasEverPainted() const { return m_lastPaintTime; } |
209 void setNodeToDraw(Node*); | 209 void setNodeToDraw(Node*); |
210 | 210 |
211 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO
verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect) OVER
RIDE; | 211 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO
verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect) over
ride; |
212 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect)
OVERRIDE; | 212 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect)
override; |
213 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV
ERRIDE; | 213 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) ov
erride; |
214 | 214 |
215 Color documentBackgroundColor() const; | 215 Color documentBackgroundColor() const; |
216 | 216 |
217 static double currentFrameTimeStamp() { return s_currentFrameTimeStamp; } | 217 static double currentFrameTimeStamp() { return s_currentFrameTimeStamp; } |
218 | 218 |
219 void updateLayoutAndStyleForPainting(); | 219 void updateLayoutAndStyleForPainting(); |
220 void updateLayoutAndStyleIfNeededRecursive(); | 220 void updateLayoutAndStyleIfNeededRecursive(); |
221 | 221 |
222 void invalidateTreeIfNeededRecursive(); | 222 void invalidateTreeIfNeededRecursive(); |
223 | 223 |
(...skipping 18 matching lines...) Expand all Loading... |
242 IntPoint convertFromRenderer(const RenderObject&, const IntPoint&) const; | 242 IntPoint convertFromRenderer(const RenderObject&, const IntPoint&) const; |
243 IntPoint convertToRenderer(const RenderObject&, const IntPoint&) const; | 243 IntPoint convertToRenderer(const RenderObject&, const IntPoint&) const; |
244 | 244 |
245 bool isFrameViewScrollCorner(RenderScrollbarPart* scrollCorner) const { retu
rn m_scrollCorner == scrollCorner; } | 245 bool isFrameViewScrollCorner(RenderScrollbarPart* scrollCorner) const { retu
rn m_scrollCorner == scrollCorner; } |
246 | 246 |
247 bool isScrollable(); | 247 bool isScrollable(); |
248 | 248 |
249 enum ScrollbarModesCalculationStrategy { RulesFromWebContentOnly, AnyRule }; | 249 enum ScrollbarModesCalculationStrategy { RulesFromWebContentOnly, AnyRule }; |
250 void calculateScrollbarModesForLayoutAndSetViewportRenderer(ScrollbarMode& h
Mode, ScrollbarMode& vMode, ScrollbarModesCalculationStrategy = AnyRule); | 250 void calculateScrollbarModesForLayoutAndSetViewportRenderer(ScrollbarMode& h
Mode, ScrollbarMode& vMode, ScrollbarModesCalculationStrategy = AnyRule); |
251 | 251 |
252 virtual IntPoint lastKnownMousePosition() const OVERRIDE; | 252 virtual IntPoint lastKnownMousePosition() const override; |
253 bool shouldSetCursor() const; | 253 bool shouldSetCursor() const; |
254 | 254 |
255 void setCursor(const Cursor&); | 255 void setCursor(const Cursor&); |
256 | 256 |
257 virtual bool scrollbarsCanBeActive() const OVERRIDE; | 257 virtual bool scrollbarsCanBeActive() const override; |
258 | 258 |
259 // FIXME: Remove this method once plugin loading is decoupled from layout. | 259 // FIXME: Remove this method once plugin loading is decoupled from layout. |
260 void flushAnyPendingPostLayoutTasks(); | 260 void flushAnyPendingPostLayoutTasks(); |
261 | 261 |
262 virtual bool shouldSuspendScrollAnimations() const OVERRIDE; | 262 virtual bool shouldSuspendScrollAnimations() const override; |
263 virtual void scrollbarStyleChanged() OVERRIDE; | 263 virtual void scrollbarStyleChanged() override; |
264 | 264 |
265 RenderBox* embeddedContentBox() const; | 265 RenderBox* embeddedContentBox() const; |
266 | 266 |
267 void setTracksPaintInvalidations(bool); | 267 void setTracksPaintInvalidations(bool); |
268 bool isTrackingPaintInvalidations() const { return m_isTrackingPaintInvalida
tions; } | 268 bool isTrackingPaintInvalidations() const { return m_isTrackingPaintInvalida
tions; } |
269 void resetTrackedPaintInvalidations(); | 269 void resetTrackedPaintInvalidations(); |
270 | 270 |
271 String trackedPaintInvalidationRectsAsText() const; | 271 String trackedPaintInvalidationRectsAsText() const; |
272 | 272 |
273 typedef HashSet<ScrollableArea*> ScrollableAreaSet; | 273 typedef HashSet<ScrollableArea*> ScrollableAreaSet; |
274 void addScrollableArea(ScrollableArea*); | 274 void addScrollableArea(ScrollableArea*); |
275 void removeScrollableArea(ScrollableArea*); | 275 void removeScrollableArea(ScrollableArea*); |
276 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas.
get(); } | 276 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas.
get(); } |
277 | 277 |
278 // With CSS style "resize:" enabled, a little resizer handle will appear at
the bottom | 278 // With CSS style "resize:" enabled, a little resizer handle will appear at
the bottom |
279 // right of the object. We keep track of these resizer areas for checking if
touches | 279 // right of the object. We keep track of these resizer areas for checking if
touches |
280 // (implemented using Scroll gesture) are targeting the resizer. | 280 // (implemented using Scroll gesture) are targeting the resizer. |
281 typedef HashSet<RenderBox*> ResizerAreaSet; | 281 typedef HashSet<RenderBox*> ResizerAreaSet; |
282 void addResizerArea(RenderBox&); | 282 void addResizerArea(RenderBox&); |
283 void removeResizerArea(RenderBox&); | 283 void removeResizerArea(RenderBox&); |
284 const ResizerAreaSet* resizerAreas() const { return m_resizerAreas.get(); } | 284 const ResizerAreaSet* resizerAreas() const { return m_resizerAreas.get(); } |
285 | 285 |
286 virtual void setParent(Widget*) OVERRIDE; | 286 virtual void setParent(Widget*) override; |
287 virtual void removeChild(Widget*) OVERRIDE; | 287 virtual void removeChild(Widget*) override; |
288 | 288 |
289 // This function exists for ports that need to handle wheel events manually. | 289 // This function exists for ports that need to handle wheel events manually. |
290 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o
n most other platforms | 290 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o
n most other platforms |
291 // we need this function in order to do the scroll ourselves. | 291 // we need this function in order to do the scroll ourselves. |
292 bool wheelEvent(const PlatformWheelEvent&); | 292 bool wheelEvent(const PlatformWheelEvent&); |
293 | 293 |
294 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; } | 294 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; } |
295 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro
ll = programmaticScroll; } | 295 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro
ll = programmaticScroll; } |
296 | 296 |
297 virtual bool isActive() const OVERRIDE; | 297 virtual bool isActive() const override; |
298 | 298 |
299 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. | 299 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. |
300 IntSize scrollOffsetForFixedPosition() const; | 300 IntSize scrollOffsetForFixedPosition() const; |
301 | 301 |
302 // Override scrollbar notifications to update the AXObject cache. | 302 // Override scrollbar notifications to update the AXObject cache. |
303 virtual void didAddScrollbar(Scrollbar*, ScrollbarOrientation) OVERRIDE; | 303 virtual void didAddScrollbar(Scrollbar*, ScrollbarOrientation) override; |
304 virtual void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation) OVERRIDE; | 304 virtual void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation) override; |
305 | 305 |
306 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter | 306 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter |
307 // passed around the FrameView layout methods can be true while this returns | 307 // passed around the FrameView layout methods can be true while this returns |
308 // false. | 308 // false. |
309 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; } | 309 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; } |
310 | 310 |
311 // Sets the tickmarks for the FrameView, overriding the default behavior | 311 // Sets the tickmarks for the FrameView, overriding the default behavior |
312 // which is to display the tickmarks corresponding to find results. | 312 // which is to display the tickmarks corresponding to find results. |
313 // If |m_tickmarks| is empty, the default behavior is restored. | 313 // If |m_tickmarks| is empty, the default behavior is restored. |
314 void setTickmarks(const Vector<IntRect>& tickmarks) { m_tickmarks = tickmark
s; } | 314 void setTickmarks(const Vector<IntRect>& tickmarks) { m_tickmarks = tickmark
s; } |
315 | 315 |
316 // Since the compositor can resize the viewport due to top controls and | 316 // Since the compositor can resize the viewport due to top controls and |
317 // commit scroll offsets before a WebView::resize occurs, we need to adjust | 317 // commit scroll offsets before a WebView::resize occurs, we need to adjust |
318 // our scroll extents to prevent clamping the scroll offsets. | 318 // our scroll extents to prevent clamping the scroll offsets. |
319 void setTopControlsViewportAdjustment(float); | 319 void setTopControlsViewportAdjustment(float); |
320 | 320 |
321 virtual IntPoint maximumScrollPosition() const OVERRIDE; | 321 virtual IntPoint maximumScrollPosition() const override; |
322 | 322 |
323 // ScrollableArea interface | 323 // ScrollableArea interface |
324 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) OVERRIDE; | 324 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; |
325 virtual void getTickmarks(Vector<IntRect>&) const OVERRIDE; | 325 virtual void getTickmarks(Vector<IntRect>&) const override; |
326 virtual void scrollTo(const DoublePoint&) OVERRIDE; | 326 virtual void scrollTo(const DoublePoint&) override; |
327 virtual IntRect scrollableAreaBoundingBox() const OVERRIDE; | 327 virtual IntRect scrollableAreaBoundingBox() const override; |
328 virtual bool scrollAnimatorEnabled() const OVERRIDE; | 328 virtual bool scrollAnimatorEnabled() const override; |
329 virtual bool usesCompositedScrolling() const OVERRIDE; | 329 virtual bool usesCompositedScrolling() const override; |
330 virtual GraphicsLayer* layerForScrolling() const OVERRIDE; | 330 virtual GraphicsLayer* layerForScrolling() const override; |
331 virtual GraphicsLayer* layerForHorizontalScrollbar() const OVERRIDE; | 331 virtual GraphicsLayer* layerForHorizontalScrollbar() const override; |
332 virtual GraphicsLayer* layerForVerticalScrollbar() const OVERRIDE; | 332 virtual GraphicsLayer* layerForVerticalScrollbar() const override; |
333 virtual GraphicsLayer* layerForScrollCorner() const OVERRIDE; | 333 virtual GraphicsLayer* layerForScrollCorner() const override; |
334 | 334 |
335 protected: | 335 protected: |
336 virtual bool scrollContentsFastPath(const IntSize& scrollDelta) OVERRIDE; | 336 virtual bool scrollContentsFastPath(const IntSize& scrollDelta) override; |
337 virtual void scrollContentsSlowPath(const IntRect& updateRect) OVERRIDE; | 337 virtual void scrollContentsSlowPath(const IntRect& updateRect) override; |
338 | 338 |
339 virtual bool isVerticalDocument() const OVERRIDE; | 339 virtual bool isVerticalDocument() const override; |
340 virtual bool isFlippedDocument() const OVERRIDE; | 340 virtual bool isFlippedDocument() const override; |
341 | 341 |
342 // Prevents creation of scrollbars. Used to prevent drawing two sets of | 342 // Prevents creation of scrollbars. Used to prevent drawing two sets of |
343 // overlay scrollbars in the case of the pinch viewport. | 343 // overlay scrollbars in the case of the pinch viewport. |
344 virtual bool scrollbarsDisabled() const OVERRIDE; | 344 virtual bool scrollbarsDisabled() const override; |
345 | 345 |
346 private: | 346 private: |
347 explicit FrameView(LocalFrame*); | 347 explicit FrameView(LocalFrame*); |
348 | 348 |
349 void reset(); | 349 void reset(); |
350 void init(); | 350 void init(); |
351 | 351 |
352 virtual void frameRectsChanged() OVERRIDE; | 352 virtual void frameRectsChanged() override; |
353 virtual bool isFrameView() const OVERRIDE { return true; } | 353 virtual bool isFrameView() const override { return true; } |
354 | 354 |
355 friend class RenderWidget; | 355 friend class RenderWidget; |
356 | 356 |
357 bool contentsInCompositedLayer() const; | 357 bool contentsInCompositedLayer() const; |
358 | 358 |
359 void applyOverflowToViewportAndSetRenderer(RenderObject*, ScrollbarMode& hMo
de, ScrollbarMode& vMode); | 359 void applyOverflowToViewportAndSetRenderer(RenderObject*, ScrollbarMode& hMo
de, ScrollbarMode& vMode); |
360 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow); | 360 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow); |
361 | 361 |
362 void updateCounters(); | 362 void updateCounters(); |
363 void forceLayoutParentViewIfNeeded(); | 363 void forceLayoutParentViewIfNeeded(); |
364 void performPreLayoutTasks(); | 364 void performPreLayoutTasks(); |
365 void performLayout(RenderObject* rootForThisLayout, bool inSubtreeLayout); | 365 void performLayout(RenderObject* rootForThisLayout, bool inSubtreeLayout); |
366 void scheduleOrPerformPostLayoutTasks(); | 366 void scheduleOrPerformPostLayoutTasks(); |
367 void performPostLayoutTasks(); | 367 void performPostLayoutTasks(); |
368 | 368 |
369 void invalidateTreeIfNeeded(); | 369 void invalidateTreeIfNeeded(); |
370 | 370 |
371 void gatherDebugLayoutRects(RenderObject* layoutRoot); | 371 void gatherDebugLayoutRects(RenderObject* layoutRoot); |
372 | 372 |
373 DocumentLifecycle& lifecycle() const; | 373 DocumentLifecycle& lifecycle() const; |
374 | 374 |
375 virtual void contentRectangleForPaintInvalidation(const IntRect&) OVERRIDE; | 375 virtual void contentRectangleForPaintInvalidation(const IntRect&) override; |
376 virtual void contentsResized() OVERRIDE; | 376 virtual void contentsResized() override; |
377 virtual void scrollbarExistenceDidChange() OVERRIDE; | 377 virtual void scrollbarExistenceDidChange() override; |
378 | 378 |
379 // Override ScrollView methods to do point conversion via renderers, in orde
r to | 379 // Override ScrollView methods to do point conversion via renderers, in orde
r to |
380 // take transforms into account. | 380 // take transforms into account. |
381 virtual IntRect convertToContainingView(const IntRect&) const OVERRIDE; | 381 virtual IntRect convertToContainingView(const IntRect&) const override; |
382 virtual IntRect convertFromContainingView(const IntRect&) const OVERRIDE; | 382 virtual IntRect convertFromContainingView(const IntRect&) const override; |
383 virtual IntPoint convertToContainingView(const IntPoint&) const OVERRIDE; | 383 virtual IntPoint convertToContainingView(const IntPoint&) const override; |
384 virtual IntPoint convertFromContainingView(const IntPoint&) const OVERRIDE; | 384 virtual IntPoint convertFromContainingView(const IntPoint&) const override; |
385 | 385 |
386 void updateWidgetPositionsIfNeeded(); | 386 void updateWidgetPositionsIfNeeded(); |
387 | 387 |
388 bool wasViewportResized(); | 388 bool wasViewportResized(); |
389 void sendResizeEventIfNeeded(); | 389 void sendResizeEventIfNeeded(); |
390 | 390 |
391 void updateScrollableAreaSet(); | 391 void updateScrollableAreaSet(); |
392 | 392 |
393 virtual void notifyPageThatContentAreaWillPaint() const OVERRIDE; | 393 virtual void notifyPageThatContentAreaWillPaint() const override; |
394 | 394 |
395 void scheduleUpdateWidgetsIfNecessary(); | 395 void scheduleUpdateWidgetsIfNecessary(); |
396 void updateWidgetsTimerFired(Timer<FrameView>*); | 396 void updateWidgetsTimerFired(Timer<FrameView>*); |
397 bool updateWidgets(); | 397 bool updateWidgets(); |
398 | 398 |
399 void scrollToAnchor(); | 399 void scrollToAnchor(); |
400 void scrollPositionChanged(); | 400 void scrollPositionChanged(); |
401 void didScrollTimerFired(Timer<FrameView>*); | 401 void didScrollTimerFired(Timer<FrameView>*); |
402 | 402 |
403 void updateLayersAndCompositingAfterScrollIfNeeded(); | 403 void updateLayersAndCompositingAfterScrollIfNeeded(); |
404 | 404 |
405 static bool computeCompositedSelectionBounds(LocalFrame&, CompositedSelectio
nBound& start, CompositedSelectionBound& end); | 405 static bool computeCompositedSelectionBounds(LocalFrame&, CompositedSelectio
nBound& start, CompositedSelectionBound& end); |
406 void updateCompositedSelectionBoundsIfNeeded(); | 406 void updateCompositedSelectionBoundsIfNeeded(); |
407 | 407 |
408 bool hasCustomScrollbars() const; | 408 bool hasCustomScrollbars() const; |
409 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame*
& customScrollbarFrame); | 409 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame*
& customScrollbarFrame); |
410 | 410 |
411 virtual void updateScrollCorner() OVERRIDE; | 411 virtual void updateScrollCorner() override; |
412 | 412 |
413 FrameView* parentFrameView() const; | 413 FrameView* parentFrameView() const; |
414 | 414 |
415 AXObjectCache* axObjectCache() const; | 415 AXObjectCache* axObjectCache() const; |
416 void removeFromAXObjectCache(); | 416 void removeFromAXObjectCache(); |
417 | 417 |
418 void setLayoutSizeInternal(const IntSize&); | 418 void setLayoutSizeInternal(const IntSize&); |
419 | 419 |
420 bool paintInvalidationIsAllowed() const | 420 bool paintInvalidationIsAllowed() const |
421 { | 421 { |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); | 561 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); |
562 } | 562 } |
563 private: | 563 private: |
564 FrameView* m_view; | 564 FrameView* m_view; |
565 bool m_originalValue; | 565 bool m_originalValue; |
566 }; | 566 }; |
567 | 567 |
568 } // namespace blink | 568 } // namespace blink |
569 | 569 |
570 #endif // FrameView_h | 570 #endif // FrameView_h |
OLD | NEW |