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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 virtual IntRect windowResizerRect() const OVERRIDE; | 144 virtual IntRect windowResizerRect() const OVERRIDE; |
145 | 145 |
146 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC
ontentScaleFactor; } | 146 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC
ontentScaleFactor; } |
147 void setVisibleContentScaleFactor(float); | 147 void setVisibleContentScaleFactor(float); |
148 | 148 |
149 virtual float inputEventsScaleFactor() const OVERRIDE; | 149 virtual float inputEventsScaleFactor() const OVERRIDE; |
150 virtual IntSize inputEventsOffsetForEmulation() const OVERRIDE; | 150 virtual IntSize inputEventsOffsetForEmulation() const OVERRIDE; |
151 void setInputEventsTransformForEmulation(const IntSize&, float); | 151 void setInputEventsTransformForEmulation(const IntSize&, float); |
152 | 152 |
153 virtual void setScrollPosition(const IntPoint&) OVERRIDE; | 153 virtual void setScrollPosition(const IntPoint&) OVERRIDE; |
154 virtual void repaintFixedElementsAfterScrolling() OVERRIDE; | |
155 virtual void updateFixedElementsAfterScrolling() OVERRIDE; | |
156 virtual bool shouldRubberBandInDirection(ScrollDirection) const OVERRIDE; | 154 virtual bool shouldRubberBandInDirection(ScrollDirection) const OVERRIDE; |
157 virtual bool isRubberBandInProgress() const OVERRIDE; | 155 virtual bool isRubberBandInProgress() const OVERRIDE; |
158 void setScrollPositionNonProgrammatically(const IntPoint&); | 156 void setScrollPositionNonProgrammatically(const IntPoint&); |
159 | 157 |
160 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) | 158 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) |
161 // offsets from rubber-banding, and it takes zooming into account. | 159 // offsets from rubber-banding, and it takes zooming into account. |
162 LayoutRect viewportConstrainedVisibleContentRect() const; | 160 LayoutRect viewportConstrainedVisibleContentRect() const; |
163 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he
ightChanged); | 161 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he
ightChanged); |
164 | 162 |
165 AtomicString mediaType() const; | 163 AtomicString mediaType() const; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 virtual void scrollTo(const IntSize&) OVERRIDE; | 322 virtual void scrollTo(const IntSize&) OVERRIDE; |
325 virtual IntRect scrollableAreaBoundingBox() const OVERRIDE; | 323 virtual IntRect scrollableAreaBoundingBox() const OVERRIDE; |
326 virtual bool scrollAnimatorEnabled() const OVERRIDE; | 324 virtual bool scrollAnimatorEnabled() const OVERRIDE; |
327 virtual bool usesCompositedScrolling() const OVERRIDE; | 325 virtual bool usesCompositedScrolling() const OVERRIDE; |
328 virtual GraphicsLayer* layerForScrolling() const OVERRIDE; | 326 virtual GraphicsLayer* layerForScrolling() const OVERRIDE; |
329 virtual GraphicsLayer* layerForHorizontalScrollbar() const OVERRIDE; | 327 virtual GraphicsLayer* layerForHorizontalScrollbar() const OVERRIDE; |
330 virtual GraphicsLayer* layerForVerticalScrollbar() const OVERRIDE; | 328 virtual GraphicsLayer* layerForVerticalScrollbar() const OVERRIDE; |
331 virtual GraphicsLayer* layerForScrollCorner() const OVERRIDE; | 329 virtual GraphicsLayer* layerForScrollCorner() const OVERRIDE; |
332 | 330 |
333 protected: | 331 protected: |
| 332 virtual void scrollContentsIfNeeded(); |
334 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect) OVERRIDE; | 333 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect) OVERRIDE; |
335 virtual void scrollContentsSlowPath(const IntRect& updateRect) OVERRIDE; | 334 virtual void scrollContentsSlowPath(const IntRect& updateRect) OVERRIDE; |
336 | 335 |
337 virtual bool isVerticalDocument() const OVERRIDE; | 336 virtual bool isVerticalDocument() const OVERRIDE; |
338 virtual bool isFlippedDocument() const OVERRIDE; | 337 virtual bool isFlippedDocument() const OVERRIDE; |
339 | 338 |
340 private: | 339 private: |
341 explicit FrameView(LocalFrame*); | 340 explicit FrameView(LocalFrame*); |
342 | 341 |
343 void reset(); | 342 void reset(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 virtual void notifyPageThatContentAreaWillPaint() const OVERRIDE; | 386 virtual void notifyPageThatContentAreaWillPaint() const OVERRIDE; |
388 | 387 |
389 void scheduleUpdateWidgetsIfNecessary(); | 388 void scheduleUpdateWidgetsIfNecessary(); |
390 void updateWidgetsTimerFired(Timer<FrameView>*); | 389 void updateWidgetsTimerFired(Timer<FrameView>*); |
391 bool updateWidgets(); | 390 bool updateWidgets(); |
392 | 391 |
393 void scrollToAnchor(); | 392 void scrollToAnchor(); |
394 void scrollPositionChanged(); | 393 void scrollPositionChanged(); |
395 void didScrollTimerFired(Timer<FrameView>*); | 394 void didScrollTimerFired(Timer<FrameView>*); |
396 | 395 |
| 396 void updateLayersAndCompositingAfterScrollIfNeeded(); |
| 397 void updateFixedElementRepaintRectsAfterScroll(); |
| 398 |
397 bool hasCustomScrollbars() const; | 399 bool hasCustomScrollbars() const; |
398 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame*
& customScrollbarFrame); | 400 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame*
& customScrollbarFrame); |
399 | 401 |
400 virtual void updateScrollCorner() OVERRIDE; | 402 virtual void updateScrollCorner() OVERRIDE; |
401 | 403 |
402 FrameView* parentFrameView() const; | 404 FrameView* parentFrameView() const; |
403 | 405 |
404 AXObjectCache* axObjectCache() const; | 406 AXObjectCache* axObjectCache() const; |
405 void removeFromAXObjectCache(); | 407 void removeFromAXObjectCache(); |
406 | 408 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 m_view->setCanRepaintDuringPerformLayout(m_originalValue); | 563 m_view->setCanRepaintDuringPerformLayout(m_originalValue); |
562 } | 564 } |
563 private: | 565 private: |
564 FrameView* m_view; | 566 FrameView* m_view; |
565 bool m_originalValue; | 567 bool m_originalValue; |
566 }; | 568 }; |
567 | 569 |
568 } // namespace WebCore | 570 } // namespace WebCore |
569 | 571 |
570 #endif // FrameView_h | 572 #endif // FrameView_h |
OLD | NEW |