Index: Source/core/layout/LayoutBlock.cpp |
diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp |
index c717f16cd731914f84449fa5e7454a712bf67b39..5cee8786dba8a9c20f46c54ec7b6042949bd0eff 100644 |
--- a/Source/core/layout/LayoutBlock.cpp |
+++ b/Source/core/layout/LayoutBlock.cpp |
@@ -38,6 +38,7 @@ |
#include "core/frame/FrameView.h" |
#include "core/frame/LocalFrame.h" |
#include "core/frame/Settings.h" |
+#include "core/html/HTMLMarqueeElement.h" |
#include "core/layout/HitTestLocation.h" |
#include "core/layout/HitTestResult.h" |
#include "core/layout/LayoutAnalyzer.h" |
@@ -2007,6 +2008,9 @@ void LayoutBlock::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Lay |
maxLogicalWidth = std::max(minLogicalWidth, maxLogicalWidth); |
+ if (isHTMLMarqueeElement(node()) && toHTMLMarqueeElement(node())->isHorizontal()) |
+ minLogicalWidth = LayoutUnit(); |
+ |
if (isTableCell()) { |
Length tableCellWidth = toLayoutTableCell(this)->styleOrColLogicalWidth(); |
if (tableCellWidth.isFixed() && tableCellWidth.value() > 0) |