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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/api/LayoutBlockItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LayoutBlockItem.h b/third_party/WebKit/Source/core/layout/api/LayoutBlockItem.h
index b9b833661067d6b8a8bb8251f71ea7214041bdb4..2f4d9ddc579d557fd4e2d680255802c0d2da15b2 100644
--- a/third_party/WebKit/Source/core/layout/api/LayoutBlockItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LayoutBlockItem.h
@@ -38,6 +38,11 @@ public:
return toBlock()->recalcOverflowAfterStyleChange();
}
+ LayoutItem firstChild() const
+ {
+ return LayoutItem(toBlock()->firstChild());
+ }
+
private:
LayoutBlock* toBlock() { return toLayoutBlock(layoutObject()); }
const LayoutBlock* toBlock() const { return toLayoutBlock(layoutObject()); }
« 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