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

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

Issue 2738173002: Initial containing block for print not affected by page zoom. (Closed)
Patch Set: Add viewportSizeForMediaQueries. Created 3 years, 9 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 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 754
755 // Set when the whole frame subtree needs full paint property update, 755 // Set when the whole frame subtree needs full paint property update,
756 // e.g. when beginning or finishing printing. 756 // e.g. when beginning or finishing printing.
757 void setSubtreeNeedsPaintPropertyUpdate(); 757 void setSubtreeNeedsPaintPropertyUpdate();
758 758
759 // TODO(ojan): Merge this with IntersectionObserver once it lands. 759 // TODO(ojan): Merge this with IntersectionObserver once it lands.
760 IntRect computeVisibleArea(); 760 IntRect computeVisibleArea();
761 761
762 // Viewport size that should be used for viewport units (i.e. 'vh'/'vw'). 762 // Viewport size that should be used for viewport units (i.e. 'vh'/'vw').
763 FloatSize viewportSizeForViewportUnits() const; 763 FloatSize viewportSizeForViewportUnits() const;
764 FloatSize viewportSizeForMediaQueries() const;
764 765
765 ScrollAnchor* scrollAnchor() override { return &m_scrollAnchor; } 766 ScrollAnchor* scrollAnchor() override { return &m_scrollAnchor; }
766 void clearScrollAnchor(); 767 void clearScrollAnchor();
767 bool shouldPerformScrollAnchoring() const override; 768 bool shouldPerformScrollAnchoring() const override;
768 void enqueueScrollAnchoringAdjustment(ScrollableArea*); 769 void enqueueScrollAnchoringAdjustment(ScrollableArea*);
769 void performScrollAnchoringAdjustments(); 770 void performScrollAnchoringAdjustments();
770 771
771 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into 772 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into
772 // PaintInvalidator. 773 // PaintInvalidator.
773 void invalidatePaintIfNeeded(const PaintInvalidationState&); 774 void invalidatePaintIfNeeded(const PaintInvalidationState&);
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 frameViewBase.isFrameView()); 1261 frameViewBase.isFrameView());
1261 DEFINE_TYPE_CASTS(FrameView, 1262 DEFINE_TYPE_CASTS(FrameView,
1262 ScrollableArea, 1263 ScrollableArea,
1263 scrollableArea, 1264 scrollableArea,
1264 scrollableArea->isFrameView(), 1265 scrollableArea->isFrameView(),
1265 scrollableArea.isFrameView()); 1266 scrollableArea.isFrameView());
1266 1267
1267 } // namespace blink 1268 } // namespace blink
1268 1269
1269 #endif // FrameView_h 1270 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698