Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(971)

Unified Diff: Source/core/layout/LayoutFieldset.cpp

Issue 1173853005: LayoutFieldSet::computePreferredLogicalWidths uses marginLeft for marginRight by mistake Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding layout Test Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698