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

Unified Diff: Source/WebCore/rendering/RenderBox.cpp

Issue 10918085: Revert 122501 - Percentage width replaced element in zero percent/fixed width container block incor… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « LayoutTests/fast/css/resources/red-box.png ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderBox.cpp
===================================================================
--- Source/WebCore/rendering/RenderBox.cpp (revision 127650)
+++ Source/WebCore/rendering/RenderBox.cpp (working copy)
@@ -2184,10 +2184,7 @@
// containing block's block-flow.
// https://bugs.webkit.org/show_bug.cgi?id=46496
const LayoutUnit cw = isOutOfFlowPositioned() ? containingBlockLogicalWidthForPositioned(toRenderBoxModelObject(container())) : containingBlockLogicalWidthForContent();
- Length containerLogicalWidth = containingBlock()->style()->logicalWidth();
- // FIXME: Handle cases when containing block width is calculated or viewport percent.
- // https://bugs.webkit.org/show_bug.cgi?id=91071
- if (cw > 0 || (!cw && (containerLogicalWidth.isFixed() || containerLogicalWidth.isPercent())))
+ if (cw > 0)
return computeContentBoxLogicalWidth(minimumValueForLength(logicalWidth, cw));
}
// fall through
« no previous file with comments | « LayoutTests/fast/css/resources/red-box.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698