Index: third_party/WebKit/Source/core/layout/LayoutBox.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h |
index ee2fb8feb987cb4f8132bf4dcab6fc6016e075c6..ed087e6f277f87db0e4e01b6940e59f6aafaa062 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h |
@@ -1578,9 +1578,9 @@ inline LayoutBox* LayoutBox::parentBox() const { |
inline LayoutBox* LayoutBox::firstInFlowChildBox() const { |
LayoutBox* first = firstChildBox(); |
- while (first && first->isOutOfFlowPositioned()) |
- first = first->nextInFlowSiblingBox(); |
- return first; |
+ return (first && first->isOutOfFlowPositioned()) |
+ ? first->nextInFlowSiblingBox() |
+ : first; |
} |
inline LayoutBox* LayoutBox::firstChildBox() const { |