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

Unified Diff: Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 1070143002: [Alignment] Single class for holding the alignment data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased and got back previous setter names. Created 5 years, 8 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 | « Source/core/css/resolver/StyleBuilderConverter.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleBuilderCustom.cpp
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp
index 40e8122bf5ed52ab5bdb67489a11637a4c282780..271e4eb8cdc73f20102e5219ae05af0167a09ef5 100644
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -166,40 +166,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyColor(StyleResolverState& state
state.style()->setVisitedLinkColor(StyleBuilderConverter::convertColor(state, value, true));
}
-void StyleBuilderFunctions::applyInitialCSSPropertyJustifyItems(StyleResolverState& state)
-{
- state.style()->setJustifyItems(ComputedStyle::initialJustifyItems());
- state.style()->setJustifyItemsOverflowAlignment(ComputedStyle::initialJustifyItemsOverflowAlignment());
- state.style()->setJustifyItemsPositionType(ComputedStyle::initialJustifyItemsPositionType());
-}
-
-void StyleBuilderFunctions::applyInheritCSSPropertyJustifyItems(StyleResolverState& state)
-{
- state.style()->setJustifyItems(state.parentStyle()->justifyItems());
- state.style()->setJustifyItemsOverflowAlignment(state.parentStyle()->justifyItemsOverflowAlignment());
- state.style()->setJustifyItemsPositionType(state.parentStyle()->justifyItemsPositionType());
-}
-
-void StyleBuilderFunctions::applyValueCSSPropertyJustifyItems(StyleResolverState& state, CSSValue* value)
-{
- state.style()->setJustifyItems(ComputedStyle::initialJustifyItems());
- state.style()->setJustifyItemsOverflowAlignment(ComputedStyle::initialJustifyItemsOverflowAlignment());
- state.style()->setJustifyItemsPositionType(ComputedStyle::initialJustifyItemsPositionType());
-
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
- if (Pair* pairValue = primitiveValue->getPairValue()) {
- if (pairValue->first()->getValueID() == CSSValueLegacy) {
- state.style()->setJustifyItemsPositionType(LegacyPosition);
- state.style()->setJustifyItems(*pairValue->second());
- } else {
- state.style()->setJustifyItems(*pairValue->first());
- state.style()->setJustifyItemsOverflowAlignment(*pairValue->second());
- }
- } else {
- state.style()->setJustifyItems(*primitiveValue);
- }
-}
-
void StyleBuilderFunctions::applyInitialCSSPropertyCursor(StyleResolverState& state)
{
state.style()->clearCursorList();
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698