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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 | 577 |
578 void setScrollTranslation(PassRefPtr<TransformPaintPropertyNode> scrollTrans
lation) { m_scrollTranslation = scrollTranslation; } | 578 void setScrollTranslation(PassRefPtr<TransformPaintPropertyNode> scrollTrans
lation) { m_scrollTranslation = scrollTranslation; } |
579 const TransformPaintPropertyNode* scrollTranslation() const { return m_scrol
lTranslation.get(); } | 579 const TransformPaintPropertyNode* scrollTranslation() const { return m_scrol
lTranslation.get(); } |
580 | 580 |
581 void setContentClip(PassRefPtr<ClipPaintPropertyNode> contentClip) { m_conte
ntClip = contentClip; } | 581 void setContentClip(PassRefPtr<ClipPaintPropertyNode> contentClip) { m_conte
ntClip = contentClip; } |
582 const ClipPaintPropertyNode* contentClip() const { return m_contentClip.get(
); } | 582 const ClipPaintPropertyNode* contentClip() const { return m_contentClip.get(
); } |
583 | 583 |
584 // TODO(ojan): Merge this with IntersectionObserver once it lands. | 584 // TODO(ojan): Merge this with IntersectionObserver once it lands. |
585 IntRect computeVisibleArea(); | 585 IntRect computeVisibleArea(); |
586 | 586 |
| 587 // Viewport size that should be used for viewport units (i.e. 'vh'/'vw'). |
| 588 FloatSize viewportSizeForViewportUnits() const; |
| 589 |
587 protected: | 590 protected: |
588 // Scroll the content via the compositor. | 591 // Scroll the content via the compositor. |
589 bool scrollContentsFastPath(const IntSize& scrollDelta); | 592 bool scrollContentsFastPath(const IntSize& scrollDelta); |
590 | 593 |
591 // Scroll the content by invalidating everything. | 594 // Scroll the content by invalidating everything. |
592 void scrollContentsSlowPath(const IntRect& updateRect); | 595 void scrollContentsSlowPath(const IntRect& updateRect); |
593 | 596 |
594 // These functions are used to create/destroy scrollbars. | 597 // These functions are used to create/destroy scrollbars. |
595 void setHasHorizontalScrollbar(bool); | 598 void setHasHorizontalScrollbar(bool); |
596 void setHasVerticalScrollbar(bool); | 599 void setHasVerticalScrollbar(bool); |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 static const unsigned visualPixelThreshold = 32 * 32; | 923 static const unsigned visualPixelThreshold = 32 * 32; |
921 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 924 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
922 setIsVisuallyNonEmpty(); | 925 setIsVisuallyNonEmpty(); |
923 } | 926 } |
924 | 927 |
925 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 928 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
926 | 929 |
927 } // namespace blink | 930 } // namespace blink |
928 | 931 |
929 #endif // FrameView_h | 932 #endif // FrameView_h |
OLD | NEW |