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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.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: Fixed repaint tests. 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 static const ComputedStyle& initialStyle() { return mutableInitialStyle(); } 368 static const ComputedStyle& initialStyle() { return mutableInitialStyle(); }
369 static void invalidateInitialStyle(); 369 static void invalidateInitialStyle();
370 370
371 // Computes how the style change should be propagated down the tree. 371 // Computes how the style change should be propagated down the tree.
372 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle, const ComputedStyle* newStyle); 372 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle, const ComputedStyle* newStyle);
373 373
374 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa ta& normalValueBehavior) const; 374 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa ta& normalValueBehavior) const;
375 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten tAlignmentData& normalValueBehavior) const; 375 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten tAlignmentData& normalValueBehavior) const;
376 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData & normalValueBehavior) const; 376 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData & normalValueBehavior) const;
377 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA lignmentData& normalValueBehavior) const; 377 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA lignmentData& normalValueBehavior) const;
378 const StyleSelfAlignmentData resolvedAlignment(const ComputedStyle& parentSt yle, ItemPosition resolvedAutoPositionForLayoutObject) const; 378 const StyleSelfAlignmentData resolvedAlignItems(ItemPosition normalValueBeha viour) const;
379 static ItemPosition resolveAlignment(const ComputedStyle& parentStyle, const ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject); 379 const StyleSelfAlignmentData resolvedAlignSelf(ItemPosition normalValueBehav iour) const;
380 static ItemPosition resolveJustification(const ComputedStyle& parentStyle, c onst ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject ); 380 const StyleSelfAlignmentData resolvedJustifyItems(ItemPosition normalValueBe haviour) const;
381 const StyleSelfAlignmentData resolvedJustifySelf(ItemPosition normalValueBeh aviour) const;
381 382
382 StyleDifference visualInvalidationDiff(const ComputedStyle&) const; 383 StyleDifference visualInvalidationDiff(const ComputedStyle&) const;
383 384
384 enum IsAtShadowBoundary { 385 enum IsAtShadowBoundary {
385 AtShadowBoundary, 386 AtShadowBoundary,
386 NotAtShadowBoundary, 387 NotAtShadowBoundary,
387 }; 388 };
388 389
389 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No tAtShadowBoundary); 390 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No tAtShadowBoundary);
390 void copyNonInheritedFromCached(const ComputedStyle&); 391 void copyNonInheritedFromCached(const ComputedStyle&);
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 static EBoxPack initialBoxPack() { return BoxPackStart; } 1732 static EBoxPack initialBoxPack() { return BoxPackStart; }
1732 static float initialBoxFlex() { return 0.0f; } 1733 static float initialBoxFlex() { return 0.0f; }
1733 static unsigned initialBoxFlexGroup() { return 1; } 1734 static unsigned initialBoxFlexGroup() { return 1; }
1734 static unsigned initialBoxOrdinalGroup() { return 1; } 1735 static unsigned initialBoxOrdinalGroup() { return 1; }
1735 static EBoxSizing initialBoxSizing() { return BoxSizingContentBox; } 1736 static EBoxSizing initialBoxSizing() { return BoxSizingContentBox; }
1736 static StyleReflection* initialBoxReflect() { return 0; } 1737 static StyleReflection* initialBoxReflect() { return 0; }
1737 static float initialFlexGrow() { return 0; } 1738 static float initialFlexGrow() { return 0; }
1738 static float initialFlexShrink() { return 1; } 1739 static float initialFlexShrink() { return 1; }
1739 static Length initialFlexBasis() { return Length(Auto); } 1740 static Length initialFlexBasis() { return Length(Auto); }
1740 static int initialOrder() { return 0; } 1741 static int initialOrder() { return 0; }
1741 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli gnmentDefault); } 1742 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(RuntimeEnabledFeatures::cssGridLayoutEnabled() ? ContentPositi onNormal : ContentPositionFlexStart, ContentDistributionDefault, OverflowAlignme ntDefault); }
1743 static StyleSelfAlignmentData initialDefaultAlignment() { return StyleSelfAl ignmentData(RuntimeEnabledFeatures::cssGridLayoutEnabled() ? ItemPositionNormal : ItemPositionStretch, OverflowAlignmentDefault); }
1742 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); } 1744 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); }
1743 static EFlexDirection initialFlexDirection() { return FlowRow; } 1745 static EFlexDirection initialFlexDirection() { return FlowRow; }
1744 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } 1746 static EFlexWrap initialFlexWrap() { return FlexNoWrap; }
1745 static EUserModify initialUserModify() { return READ_ONLY; } 1747 static EUserModify initialUserModify() { return READ_ONLY; }
1746 static EUserDrag initialUserDrag() { return DRAG_AUTO; } 1748 static EUserDrag initialUserDrag() { return DRAG_AUTO; }
1747 static EUserSelect initialUserSelect() { return SELECT_TEXT; } 1749 static EUserSelect initialUserSelect() { return SELECT_TEXT; }
1748 static TextOverflow initialTextOverflow() { return TextOverflowClip; } 1750 static TextOverflow initialTextOverflow() { return TextOverflowClip; }
1749 static EMarginCollapse initialMarginBeforeCollapse() { return MarginCollapse Collapse; } 1751 static EMarginCollapse initialMarginBeforeCollapse() { return MarginCollapse Collapse; }
1750 static EMarginCollapse initialMarginAfterCollapse() { return MarginCollapseC ollapse; } 1752 static EMarginCollapse initialMarginAfterCollapse() { return MarginCollapseC ollapse; }
1751 static EWordBreak initialWordBreak() { return NormalWordBreak; } 1753 static EWordBreak initialWordBreak() { return NormalWordBreak; }
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 } 2044 }
2043 2045
2044 inline bool ComputedStyle::hasPseudoElementStyle() const 2046 inline bool ComputedStyle::hasPseudoElementStyle() const
2045 { 2047 {
2046 return noninherited_flags.pseudoBits & ElementPseudoIdMask; 2048 return noninherited_flags.pseudoBits & ElementPseudoIdMask;
2047 } 2049 }
2048 2050
2049 } // namespace blink 2051 } // namespace blink
2050 2052
2051 #endif // ComputedStyle_h 2053 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698