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()); } |