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

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

Issue 1709963002: [css-align] New CSS Value 'normal' for Self Alignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New test for alignment and anonymous boxes. Created 4 years, 6 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: 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 0f80c7e9498b1e19096a1d7080dddfc6ee8cda7d..2207695b158634c5e9c8ca827277d6875c27452f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -968,6 +968,8 @@ protected:
void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
void updateFromStyle() override;
+ virtual ItemPosition selfAlignmentNormalBehavior() const { return ItemPositionStretch; }
+
// Returns false if it could not cheaply compute the extent (e.g. fixed background), in which case the returned rect may be incorrect.
// FIXME: make this a const method once the LayoutBox reference in BoxPainter is const.
bool getBackgroundPaintedExtent(LayoutRect&) const;
@@ -996,6 +998,8 @@ protected:
PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState&) override;
void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPaintInvalidationState) override;
+ bool columnFlexItemHasStretchAlignment() const;
+ bool isStretchingColumnFlexItem() const;
bool hasStretchedLogicalWidth() const;
bool hasNonCompositedScrollbars() const final;

Powered by Google App Engine
This is Rietveld 408576698