| 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 | 544 |
| 545 virtual void trace(Visitor*) override; | 545 virtual void trace(Visitor*) override; |
| 546 void notifyPageThatContentAreaWillPaint() const; | 546 void notifyPageThatContentAreaWillPaint() const; |
| 547 FrameView* parentFrameView() const; | 547 FrameView* parentFrameView() const; |
| 548 | 548 |
| 549 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); | 549 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); |
| 550 | 550 |
| 551 // Returns the scrollable area for the frame. | 551 // Returns the scrollable area for the frame. |
| 552 ScrollableArea* scrollableArea(); | 552 ScrollableArea* scrollableArea(); |
| 553 | 553 |
| 554 void lineLayoutTime(double ms); |
| 555 |
| 554 protected: | 556 protected: |
| 555 // Scroll the content via the compositor. | 557 // Scroll the content via the compositor. |
| 556 bool scrollContentsFastPath(const IntSize& scrollDelta); | 558 bool scrollContentsFastPath(const IntSize& scrollDelta); |
| 557 | 559 |
| 558 // Scroll the content by invalidating everything. | 560 // Scroll the content by invalidating everything. |
| 559 void scrollContentsSlowPath(const IntRect& updateRect); | 561 void scrollContentsSlowPath(const IntRect& updateRect); |
| 560 | 562 |
| 561 bool isVerticalDocument() const; | 563 bool isVerticalDocument() const; |
| 562 bool isFlippedDocument() const; | 564 bool isFlippedDocument() const; |
| 563 | 565 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 bool m_scrollbarsSuppressed; | 819 bool m_scrollbarsSuppressed; |
| 818 | 820 |
| 819 FloatSize m_elasticOverscroll; | 821 FloatSize m_elasticOverscroll; |
| 820 | 822 |
| 821 bool m_inUpdateScrollbars; | 823 bool m_inUpdateScrollbars; |
| 822 | 824 |
| 823 IntPoint m_panScrollIconPoint; | 825 IntPoint m_panScrollIconPoint; |
| 824 bool m_shouldDrawPanScrollIcon; | 826 bool m_shouldDrawPanScrollIcon; |
| 825 | 827 |
| 826 bool m_clipsRepaints; | 828 bool m_clipsRepaints; |
| 829 |
| 830 double m_lineLayoutMs; |
| 827 }; | 831 }; |
| 828 | 832 |
| 829 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) | 833 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |
| 830 { | 834 { |
| 831 if (m_isVisuallyNonEmpty) | 835 if (m_isVisuallyNonEmpty) |
| 832 return; | 836 return; |
| 833 m_visuallyNonEmptyCharacterCount += count; | 837 m_visuallyNonEmptyCharacterCount += count; |
| 834 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout. | 838 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout. |
| 835 // The first few hundred characters rarely contain the interesting content o
f the page. | 839 // The first few hundred characters rarely contain the interesting content o
f the page. |
| 836 static const unsigned visualCharacterThreshold = 200; | 840 static const unsigned visualCharacterThreshold = 200; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 } | 877 } |
| 874 | 878 |
| 875 private: | 879 private: |
| 876 RawPtrWillBeMember<FrameView> m_view; | 880 RawPtrWillBeMember<FrameView> m_view; |
| 877 bool m_originalValue; | 881 bool m_originalValue; |
| 878 }; | 882 }; |
| 879 | 883 |
| 880 } // namespace blink | 884 } // namespace blink |
| 881 | 885 |
| 882 #endif // FrameView_h | 886 #endif // FrameView_h |
| OLD | NEW |