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

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

Issue 2816953002: Shorten FrameSelection::IsAppearanceDirty() call stack (Closed)
Patch Set: update Created 3 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/layout/LayoutView.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutViewItem_h 5 #ifndef LayoutViewItem_h
6 #define LayoutViewItem_h 6 #define LayoutViewItem_h
7 7
8 #include "core/layout/LayoutView.h" 8 #include "core/layout/LayoutView.h"
9 #include "core/layout/api/LayoutBlockItem.h" 9 #include "core/layout/api/LayoutBlockItem.h"
10 10
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 explicit LayoutViewItem(std::nullptr_t) : LayoutBlockItem(nullptr) {} 24 explicit LayoutViewItem(std::nullptr_t) : LayoutBlockItem(nullptr) {}
25 25
26 LayoutViewItem() {} 26 LayoutViewItem() {}
27 27
28 bool UsesCompositing() const { return ToView()->UsesCompositing(); } 28 bool UsesCompositing() const { return ToView()->UsesCompositing(); }
29 29
30 PaintLayerCompositor* Compositor() { return ToView()->Compositor(); } 30 PaintLayerCompositor* Compositor() { return ToView()->Compositor(); }
31 31
32 bool HasPendingSelection() const { return ToView()->HasPendingSelection(); }
33
34 IntRect DocumentRect() const { return ToView()->DocumentRect(); } 32 IntRect DocumentRect() const { return ToView()->DocumentRect(); }
35 33
36 LayoutRect ViewRect() const { return ToView()->ViewRect(); } 34 LayoutRect ViewRect() const { return ToView()->ViewRect(); }
37 35
38 IntSize GetLayoutSize( 36 IntSize GetLayoutSize(
39 IncludeScrollbarsInRect scrollbars = kExcludeScrollbars) const { 37 IncludeScrollbarsInRect scrollbars = kExcludeScrollbars) const {
40 return ToView()->GetLayoutSize(scrollbars); 38 return ToView()->GetLayoutSize(scrollbars);
41 } 39 }
42 40
43 LayoutRect OverflowClipRect(const LayoutPoint& location) const { 41 LayoutRect OverflowClipRect(const LayoutPoint& location) const {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); } 82 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); }
85 }; 83 };
86 84
87 inline LayoutViewItem LayoutItem::View() const { 85 inline LayoutViewItem LayoutItem::View() const {
88 return LayoutViewItem(layout_object_->View()); 86 return LayoutViewItem(layout_object_->View());
89 } 87 }
90 88
91 } // namespace blink 89 } // namespace blink
92 90
93 #endif // LayoutViewItem_h 91 #endif // LayoutViewItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698