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

Unified Diff: Source/core/rendering/style/RenderStyle.h

Issue 613273002: [CSS Grid Layout] Stretch value for align and justify properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolveAlignment and resolveJustification now defined in RenderStyle. Created 6 years, 2 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: Source/core/rendering/style/RenderStyle.h
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h
index b63388337df13da2fb11621997573a2c382b9530..eb4fcd39525fe1f5c1007c68e472cc849fad6627 100644
--- a/Source/core/rendering/style/RenderStyle.h
+++ b/Source/core/rendering/style/RenderStyle.h
@@ -346,7 +346,8 @@ public:
// Computes how the style change should be propagated down the tree.
static StyleRecalcChange stylePropagationDiff(const RenderStyle* oldStyle, const RenderStyle* newStyle);
- static ItemPosition resolveAlignment(const RenderStyle* parentStyle, const RenderStyle* childStyle);
+ static ItemPosition resolveAlignment(const RenderStyle* parentStyle, const RenderStyle* childStyle, ItemPosition defaultPosition = ItemPositionStretch);
+ static ItemPosition resolveJustification(const RenderStyle* parentStyle, const RenderStyle* childStyle, ItemPosition defaultPosition = ItemPositionStretch);
Julien - ping for review 2014/10/31 17:17:13 The default parameter seems very artificial (why I
jfernandez 2014/10/31 22:55:59 I agree is not the best approach, but I couldn't c
StyleDifference visualInvalidationDiff(const RenderStyle&) const;

Powered by Google App Engine
This is Rietveld 408576698