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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LayoutViewItem.h

Issue 1842653004: [Layout API] Add viewRect() to LayoutViewItem and use it in FrameView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 // Copyright 2016 The Chromium Authors. All rights reserved. 2 // Copyright 2016 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #ifndef LayoutViewItem_h 6 #ifndef LayoutViewItem_h
7 #define LayoutViewItem_h 7 #define LayoutViewItem_h
8 8
9 #include "core/layout/LayoutView.h" 9 #include "core/layout/LayoutView.h"
10 #include "core/layout/api/LayoutBlockItem.h" 10 #include "core/layout/api/LayoutBlockItem.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 bool hasPendingSelection() const 43 bool hasPendingSelection() const
44 { 44 {
45 return toView()->hasPendingSelection(); 45 return toView()->hasPendingSelection();
46 } 46 }
47 47
48 IntRect documentRect() const 48 IntRect documentRect() const
49 { 49 {
50 return toView()->documentRect(); 50 return toView()->documentRect();
51 } 51 }
52 52
53 LayoutRect viewRect() const
54 {
55 return toView()->viewRect();
56 }
57
53 IntSize layoutSize(IncludeScrollbarsInRect scrollbars = ExcludeScrollbars) c onst 58 IntSize layoutSize(IncludeScrollbarsInRect scrollbars = ExcludeScrollbars) c onst
54 { 59 {
55 return toView()->layoutSize(scrollbars); 60 return toView()->layoutSize(scrollbars);
56 } 61 }
57 62
58 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarSiz eRelevancy scrollbars = IgnoreOverlayScrollbarSize) const 63 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarSiz eRelevancy scrollbars = IgnoreOverlayScrollbarSize) const
59 { 64 {
60 return toView()->overflowClipRect(location, scrollbars); 65 return toView()->overflowClipRect(location, scrollbars);
61 } 66 }
62 67
63 private: 68 private:
64 LayoutView* toView() { return toLayoutView(layoutObject()); } 69 LayoutView* toView() { return toLayoutView(layoutObject()); }
65 const LayoutView* toView() const { return toLayoutView(layoutObject()); } 70 const LayoutView* toView() const { return toLayoutView(layoutObject()); }
66 }; 71 };
67 72
68 } // namespace blink 73 } // namespace blink
69 74
70 #endif // LayoutViewItem_h 75 #endif // LayoutViewItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698