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

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: Unskipped some repaint tests and rebaselined. Created 4 years, 7 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(const ComputedStyle& parentSt yle, ItemPosition normalValueBehaviour) 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(const ComputedStyle& parent Style, ItemPosition normalValueBehaviour) 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 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 static float initialBoxFlex() { return 0.0f; } 1731 static float initialBoxFlex() { return 0.0f; }
1731 static unsigned initialBoxFlexGroup() { return 1; } 1732 static unsigned initialBoxFlexGroup() { return 1; }
1732 static unsigned initialBoxOrdinalGroup() { return 1; } 1733 static unsigned initialBoxOrdinalGroup() { return 1; }
1733 static EBoxSizing initialBoxSizing() { return BoxSizingContentBox; } 1734 static EBoxSizing initialBoxSizing() { return BoxSizingContentBox; }
1734 static StyleReflection* initialBoxReflect() { return 0; } 1735 static StyleReflection* initialBoxReflect() { return 0; }
1735 static float initialFlexGrow() { return 0; } 1736 static float initialFlexGrow() { return 0; }
1736 static float initialFlexShrink() { return 1; } 1737 static float initialFlexShrink() { return 1; }
1737 static Length initialFlexBasis() { return Length(Auto); } 1738 static Length initialFlexBasis() { return Length(Auto); }
1738 static int initialOrder() { return 0; } 1739 static int initialOrder() { return 0; }
1739 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli gnmentDefault); } 1740 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli gnmentDefault); }
1741 static StyleSelfAlignmentData initialDefaultAlignment() { return StyleSelfAl ignmentData(ItemPositionNormal, OverflowAlignmentDefault); }
1740 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); } 1742 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); }
1741 static EFlexDirection initialFlexDirection() { return FlowRow; } 1743 static EFlexDirection initialFlexDirection() { return FlowRow; }
1742 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } 1744 static EFlexWrap initialFlexWrap() { return FlexNoWrap; }
1743 static EUserModify initialUserModify() { return READ_ONLY; } 1745 static EUserModify initialUserModify() { return READ_ONLY; }
1744 static EUserDrag initialUserDrag() { return DRAG_AUTO; } 1746 static EUserDrag initialUserDrag() { return DRAG_AUTO; }
1745 static EUserSelect initialUserSelect() { return SELECT_TEXT; } 1747 static EUserSelect initialUserSelect() { return SELECT_TEXT; }
1746 static TextOverflow initialTextOverflow() { return TextOverflowClip; } 1748 static TextOverflow initialTextOverflow() { return TextOverflowClip; }
1747 static EMarginCollapse initialMarginBeforeCollapse() { return MarginCollapse Collapse; } 1749 static EMarginCollapse initialMarginBeforeCollapse() { return MarginCollapse Collapse; }
1748 static EMarginCollapse initialMarginAfterCollapse() { return MarginCollapseC ollapse; } 1750 static EMarginCollapse initialMarginAfterCollapse() { return MarginCollapseC ollapse; }
1749 static EWordBreak initialWordBreak() { return NormalWordBreak; } 1751 static EWordBreak initialWordBreak() { return NormalWordBreak; }
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
2039 } 2041 }
2040 2042
2041 inline bool ComputedStyle::hasPseudoElementStyle() const 2043 inline bool ComputedStyle::hasPseudoElementStyle() const
2042 { 2044 {
2043 return noninherited_flags.pseudoBits & ElementPseudoIdMask; 2045 return noninherited_flags.pseudoBits & ElementPseudoIdMask;
2044 } 2046 }
2045 2047
2046 } // namespace blink 2048 } // namespace blink
2047 2049
2048 #endif // ComputedStyle_h 2050 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698