| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 | 337 |
| 338 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. | 338 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. |
| 339 IntSize scrollOffsetForFixedPosition() const; | 339 IntSize scrollOffsetForFixedPosition() const; |
| 340 | 340 |
| 341 PartialLayoutState& partialLayout() { return m_partialLayout; } | 341 PartialLayoutState& partialLayout() { return m_partialLayout; } |
| 342 | 342 |
| 343 // Override scrollbar notifications to update the AXObject cache. | 343 // Override scrollbar notifications to update the AXObject cache. |
| 344 virtual void didAddScrollbar(Scrollbar*, ScrollbarOrientation) OVERRIDE; | 344 virtual void didAddScrollbar(Scrollbar*, ScrollbarOrientation) OVERRIDE; |
| 345 virtual void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation) OVERRIDE; | 345 virtual void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation) OVERRIDE; |
| 346 | 346 |
| 347 class DeferredRepaintScope { | |
| 348 public: | |
| 349 DeferredRepaintScope(FrameView&); | |
| 350 ~DeferredRepaintScope(); | |
| 351 private: | |
| 352 RefPtr<FrameView> m_view; | |
| 353 }; | |
| 354 | |
| 355 protected: | 347 protected: |
| 356 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect) OVERRIDE; | 348 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect) OVERRIDE; |
| 357 virtual void scrollContentsSlowPath(const IntRect& updateRect) OVERRIDE; | 349 virtual void scrollContentsSlowPath(const IntRect& updateRect) OVERRIDE; |
| 358 | 350 |
| 359 virtual bool isVerticalDocument() const OVERRIDE; | 351 virtual bool isVerticalDocument() const OVERRIDE; |
| 360 virtual bool isFlippedDocument() const OVERRIDE; | 352 virtual bool isFlippedDocument() const OVERRIDE; |
| 361 | 353 |
| 362 private: | 354 private: |
| 363 explicit FrameView(Frame*); | 355 explicit FrameView(Frame*); |
| 364 | 356 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 bool m_horizontalOverflow; | 497 bool m_horizontalOverflow; |
| 506 bool m_verticalOverflow; | 498 bool m_verticalOverflow; |
| 507 RenderObject* m_viewportRenderer; | 499 RenderObject* m_viewportRenderer; |
| 508 | 500 |
| 509 Pagination m_pagination; | 501 Pagination m_pagination; |
| 510 | 502 |
| 511 bool m_wasScrolledByUser; | 503 bool m_wasScrolledByUser; |
| 512 bool m_inProgrammaticScroll; | 504 bool m_inProgrammaticScroll; |
| 513 bool m_safeToPropagateScrollToParent; | 505 bool m_safeToPropagateScrollToParent; |
| 514 | 506 |
| 515 unsigned m_deferringRepaints; | |
| 516 unsigned m_repaintCount; | 507 unsigned m_repaintCount; |
| 517 Vector<LayoutRect> m_repaintRects; | 508 Vector<LayoutRect> m_repaintRects; |
| 518 Timer<FrameView> m_deferredRepaintTimer; | 509 Timer<FrameView> m_deferredRepaintTimer; |
| 519 double m_deferredRepaintDelay; | 510 double m_deferredRepaintDelay; |
| 520 double m_lastPaintTime; | 511 double m_lastPaintTime; |
| 521 | 512 |
| 522 bool m_isTrackingRepaints; // Used for testing. | 513 bool m_isTrackingRepaints; // Used for testing. |
| 523 Vector<IntRect> m_trackedRepaintRects; | 514 Vector<IntRect> m_trackedRepaintRects; |
| 524 | 515 |
| 525 bool m_shouldUpdateWhileOffscreen; | 516 bool m_shouldUpdateWhileOffscreen; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 static const unsigned visualPixelThreshold = 32 * 32; | 580 static const unsigned visualPixelThreshold = 32 * 32; |
| 590 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 581 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 591 setIsVisuallyNonEmpty(); | 582 setIsVisuallyNonEmpty(); |
| 592 } | 583 } |
| 593 | 584 |
| 594 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 585 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 595 | 586 |
| 596 } // namespace WebCore | 587 } // namespace WebCore |
| 597 | 588 |
| 598 #endif // FrameView_h | 589 #endif // FrameView_h |
| OLD | NEW |