diff --git a/layout/generic/nsLineLayout.cpp b/layout/generic/nsLineLayout.cpp index 38c7a2f93b6..42dd271b584 100644 --- a/layout/generic/nsLineLayout.cpp +++ b/layout/generic/nsLineLayout.cpp @@ -206,6 +206,8 @@ nsLineLayout::TreatFrameAsBlock(const nsStyleDisplay* aDisplay, switch (aDisplay->mDisplay) { case NS_STYLE_DISPLAY_BLOCK: case NS_STYLE_DISPLAY_LIST_ITEM: + case NS_STYLE_DISPLAY_RUN_IN: + case NS_STYLE_DISPLAY_COMPACT: case NS_STYLE_DISPLAY_TABLE: return PR_TRUE; } diff --git a/layout/html/base/src/nsLineLayout.cpp b/layout/html/base/src/nsLineLayout.cpp index 38c7a2f93b6..42dd271b584 100644 --- a/layout/html/base/src/nsLineLayout.cpp +++ b/layout/html/base/src/nsLineLayout.cpp @@ -206,6 +206,8 @@ nsLineLayout::TreatFrameAsBlock(const nsStyleDisplay* aDisplay, switch (aDisplay->mDisplay) { case NS_STYLE_DISPLAY_BLOCK: case NS_STYLE_DISPLAY_LIST_ITEM: + case NS_STYLE_DISPLAY_RUN_IN: + case NS_STYLE_DISPLAY_COMPACT: case NS_STYLE_DISPLAY_TABLE: return PR_TRUE; }