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

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: Getting back the FullScreen fix, missed during the rebase. Created 4 years, 4 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 3ced59e9528c400b0308c4bcb5e3f757bb123e69..2d933f00a9efbd0923baf524d9baacf334d818aa 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -983,6 +983,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;
@@ -1007,6 +1009,8 @@ protected:
PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidatorContext&) const override;
void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPaintInvalidationState) override;
+ bool columnFlexItemHasStretchAlignment() const;
+ bool isStretchingColumnFlexItem() const;
bool hasStretchedLogicalWidth() const;
void excludeScrollbars(LayoutRect&, OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const;

Powered by Google App Engine
This is Rietveld 408576698