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

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

Issue 2056303002: [Layout API] Use Document::layoutViewItem() in ViewportStyleResolver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 int viewHeight(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbar s) const 126 int viewHeight(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbar s) const
127 { 127 {
128 return toView()->viewHeight(scrollbarInclusion); 128 return toView()->viewHeight(scrollbarInclusion);
129 } 129 }
130 130
131 int viewWidth(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars ) const 131 int viewWidth(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars ) const
132 { 132 {
133 return toView()->viewWidth(scrollbarInclusion); 133 return toView()->viewWidth(scrollbarInclusion);
134 } 134 }
135 135
136 FloatSize viewportSizeForViewportUnits() const
137 {
138 return toView()->viewportSizeForViewportUnits();
139 }
140
136 private: 141 private:
137 LayoutView* toView() { return toLayoutView(layoutObject()); } 142 LayoutView* toView() { return toLayoutView(layoutObject()); }
138 const LayoutView* toView() const { return toLayoutView(layoutObject()); } 143 const LayoutView* toView() const { return toLayoutView(layoutObject()); }
139 }; 144 };
140 145
141 } // namespace blink 146 } // namespace blink
142 147
143 #endif // LayoutViewItem_h 148 #endif // LayoutViewItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698