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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2673583005: Fix: absolutely positioned block too wide in LegacyLayout (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 434c340a29739f0269b6663014d74b9a0f577d9d..e44471b0aec1a558e518942a01621ab49144de87 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2739,7 +2739,8 @@ bool LayoutBox::hasStretchedLogicalWidth() const {
bool LayoutBox::sizesLogicalWidthToFitContent(
const Length& logicalWidth) const {
- if (isFloating() || isInlineBlockOrInlineTable())
+ if (isFloating() || isInlineBlockOrInlineTable() ||
+ styleRef().hasOutOfFlowPosition())
return true;
if (isGridItem())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698