Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 1612683002: Reland of Don't change layout size due to top control show/hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698