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 | |
590 protected: | 587 protected: |
591 // Scroll the content via the compositor. | 588 // Scroll the content via the compositor. |
592 bool scrollContentsFastPath(const IntSize& scrollDelta); | 589 bool scrollContentsFastPath(const IntSize& scrollDelta); |
593 | 590 |
594 // Scroll the content by invalidating everything. | 591 // Scroll the content by invalidating everything. |
595 void scrollContentsSlowPath(const IntRect& updateRect); | 592 void scrollContentsSlowPath(const IntRect& updateRect); |
596 | 593 |
597 // These functions are used to create/destroy scrollbars. | 594 // These functions are used to create/destroy scrollbars. |
598 void setHasHorizontalScrollbar(bool); | 595 void setHasHorizontalScrollbar(bool); |
599 void setHasVerticalScrollbar(bool); | 596 void setHasVerticalScrollbar(bool); |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 static const unsigned visualPixelThreshold = 32 * 32; | 920 static const unsigned visualPixelThreshold = 32 * 32; |
924 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 921 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
925 setIsVisuallyNonEmpty(); | 922 setIsVisuallyNonEmpty(); |
926 } | 923 } |
927 | 924 |
928 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 925 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
929 | 926 |
930 } // namespace blink | 927 } // namespace blink |
931 | 928 |
932 #endif // FrameView_h | 929 #endif // FrameView_h |
OLD | NEW |