Index: Source/core/layout/LayoutFieldset.cpp |
diff --git a/Source/core/layout/LayoutFieldset.cpp b/Source/core/layout/LayoutFieldset.cpp |
index a08e0042a20f7d8665bfd883a20687113cd23c26..41c354ead97c905b759f4671df16d941bd3a108c 100644 |
--- a/Source/core/layout/LayoutFieldset.cpp |
+++ b/Source/core/layout/LayoutFieldset.cpp |
@@ -41,7 +41,6 @@ LayoutFieldset::LayoutFieldset(Element* element) |
: LayoutBlockFlow(element) |
{ |
} |
- |
void LayoutFieldset::computePreferredLogicalWidths() |
{ |
LayoutBlockFlow::computePreferredLogicalWidths(); |
@@ -49,7 +48,7 @@ void LayoutFieldset::computePreferredLogicalWidths() |
int legendMinWidth = legend->minPreferredLogicalWidth(); |
Length legendMarginLeft = legend->style()->marginLeft(); |
- Length legendMarginRight = legend->style()->marginLeft(); |
+ Length legendMarginRight = legend->style()->marginRight(); |
if (legendMarginLeft.isFixed()) |
legendMinWidth += legendMarginLeft.value(); |