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

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

Issue 2126973004: [Layout API] Use layoutViewItem() in Document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 LayoutBlockItem_h 6 #ifndef LayoutBlockItem_h
7 #define LayoutBlockItem_h 7 #define LayoutBlockItem_h
8 8
9 #include "core/layout/LayoutBlock.h" 9 #include "core/layout/LayoutBlock.h"
10 #include "core/layout/api/LayoutBoxItem.h" 10 #include "core/layout/api/LayoutBoxItem.h"
(...skipping 20 matching lines...) Expand all
31 void invalidatePaintRectangle(const LayoutRect& layoutRect) const 31 void invalidatePaintRectangle(const LayoutRect& layoutRect) const
32 { 32 {
33 toBlock()->invalidatePaintRectangle(layoutRect); 33 toBlock()->invalidatePaintRectangle(layoutRect);
34 } 34 }
35 35
36 bool recalcOverflowAfterStyleChange() 36 bool recalcOverflowAfterStyleChange()
37 { 37 {
38 return toBlock()->recalcOverflowAfterStyleChange(); 38 return toBlock()->recalcOverflowAfterStyleChange();
39 } 39 }
40 40
41 LayoutItem firstChild() const
42 {
43 return LayoutItem(toBlock()->firstChild());
44 }
45
41 private: 46 private:
42 LayoutBlock* toBlock() { return toLayoutBlock(layoutObject()); } 47 LayoutBlock* toBlock() { return toLayoutBlock(layoutObject()); }
43 const LayoutBlock* toBlock() const { return toLayoutBlock(layoutObject()); } 48 const LayoutBlock* toBlock() const { return toLayoutBlock(layoutObject()); }
44 }; 49 };
45 50
46 } // namespace blink 51 } // namespace blink
47 52
48 #endif // LayoutBlockItem_h 53 #endif // LayoutBlockItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698