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

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

Issue 1461623002: Disable stretch-to-viewport quirk for multicol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: third_party/WebKit/Source/core/layout/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 896c08f34e1ae5756bbb6551e8ea3ef892c939a0..07c0d2c66265cdab8da27312202509a664420384 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -621,10 +621,7 @@ public:
void computeLogicalWidth(LogicalExtentComputedValues&) const;
- bool stretchesToViewport() const
- {
- return document().inQuirksMode() && style()->logicalHeight().isAuto() && !isFloatingOrOutOfFlowPositioned() && (isDocumentElement() || isBody()) && !isInline();
- }
+ bool stretchesToViewport() const { return document().inQuirksMode() && stretchesToViewportInQuirksMode(); }
virtual LayoutSize intrinsicSize() const { return LayoutSize(); }
LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWritingMode() ? intrinsicSize().width() : intrinsicSize().height(); }
@@ -905,6 +902,7 @@ private:
// Returns true if we queued up a paint invalidation.
bool invalidatePaintOfLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawingBackground);
+ bool stretchesToViewportInQuirksMode() const;
bool skipContainingBlockForPercentHeightCalculation(const LayoutBox* containingBlock) const;
LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObject* containingBlock, bool checkForPerpendicularWritingMode = true) const;

Powered by Google App Engine
This is Rietveld 408576698