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

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: Minor changes. Created 4 years, 9 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&); 372 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&);
373 static void invalidateInitialStyle(); 373 static void invalidateInitialStyle();
374 374
375 // Computes how the style change should be propagated down the tree. 375 // Computes how the style change should be propagated down the tree.
376 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle, const ComputedStyle* newStyle); 376 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle, const ComputedStyle* newStyle);
377 377
378 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa ta& normalValueBehavior) const; 378 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa ta& normalValueBehavior) const;
379 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten tAlignmentData& normalValueBehavior) const; 379 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten tAlignmentData& normalValueBehavior) const;
380 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData & normalValueBehavior) const; 380 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData & normalValueBehavior) const;
381 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA lignmentData& normalValueBehavior) const; 381 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA lignmentData& normalValueBehavior) const;
382 const StyleSelfAlignmentData resolvedAlignment(const ComputedStyle& parentSt yle, ItemPosition resolvedAutoPositionForLayoutObject) const; 382 const StyleSelfAlignmentData resolvedAlignItems(ItemPosition normalValueBeha viour) const;
383 static ItemPosition resolveAlignment(const ComputedStyle& parentStyle, const ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject); 383 const StyleSelfAlignmentData resolvedAlignSelf(const ComputedStyle& parentSt yle, ItemPosition normalValueBehaviour) const;
384 static ItemPosition resolveJustification(const ComputedStyle& parentStyle, c onst ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject ); 384 const StyleSelfAlignmentData resolvedJustifyItems(ItemPosition normalValueBe haviour) const;
385 const StyleSelfAlignmentData resolvedJustifySelf(const ComputedStyle& parent Style, ItemPosition normalValueBehaviour) const;
385 386
386 StyleDifference visualInvalidationDiff(const ComputedStyle&) const; 387 StyleDifference visualInvalidationDiff(const ComputedStyle&) const;
387 388
388 enum IsAtShadowBoundary { 389 enum IsAtShadowBoundary {
389 AtShadowBoundary, 390 AtShadowBoundary,
390 NotAtShadowBoundary, 391 NotAtShadowBoundary,
391 }; 392 };
392 393
393 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No tAtShadowBoundary); 394 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No tAtShadowBoundary);
394 void copyNonInheritedFromCached(const ComputedStyle&); 395 void copyNonInheritedFromCached(const ComputedStyle&);
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 static float initialBoxFlex() { return 0.0f; } 1717 static float initialBoxFlex() { return 0.0f; }
1717 static unsigned initialBoxFlexGroup() { return 1; } 1718 static unsigned initialBoxFlexGroup() { return 1; }
1718 static unsigned initialBoxOrdinalGroup() { return 1; } 1719 static unsigned initialBoxOrdinalGroup() { return 1; }
1719 static EBoxSizing initialBoxSizing() { return CONTENT_BOX; } 1720 static EBoxSizing initialBoxSizing() { return CONTENT_BOX; }
1720 static StyleReflection* initialBoxReflect() { return 0; } 1721 static StyleReflection* initialBoxReflect() { return 0; }
1721 static float initialFlexGrow() { return 0; } 1722 static float initialFlexGrow() { return 0; }
1722 static float initialFlexShrink() { return 1; } 1723 static float initialFlexShrink() { return 1; }
1723 static Length initialFlexBasis() { return Length(Auto); } 1724 static Length initialFlexBasis() { return Length(Auto); }
1724 static int initialOrder() { return 0; } 1725 static int initialOrder() { return 0; }
1725 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli gnmentDefault); } 1726 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli gnmentDefault); }
1727 static StyleSelfAlignmentData initialDefaultAlignment() { return StyleSelfAl ignmentData(ItemPositionNormal, OverflowAlignmentDefault); }
1726 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); } 1728 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); }
1727 static EFlexDirection initialFlexDirection() { return FlowRow; } 1729 static EFlexDirection initialFlexDirection() { return FlowRow; }
1728 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } 1730 static EFlexWrap initialFlexWrap() { return FlexNoWrap; }
1729 static EUserModify initialUserModify() { return READ_ONLY; } 1731 static EUserModify initialUserModify() { return READ_ONLY; }
1730 static EUserDrag initialUserDrag() { return DRAG_AUTO; } 1732 static EUserDrag initialUserDrag() { return DRAG_AUTO; }
1731 static EUserSelect initialUserSelect() { return SELECT_TEXT; } 1733 static EUserSelect initialUserSelect() { return SELECT_TEXT; }
1732 static TextOverflow initialTextOverflow() { return TextOverflowClip; } 1734 static TextOverflow initialTextOverflow() { return TextOverflowClip; }
1733 static EMarginCollapse initialMarginBeforeCollapse() { return MCOLLAPSE; } 1735 static EMarginCollapse initialMarginBeforeCollapse() { return MCOLLAPSE; }
1734 static EMarginCollapse initialMarginAfterCollapse() { return MCOLLAPSE; } 1736 static EMarginCollapse initialMarginAfterCollapse() { return MCOLLAPSE; }
1735 static EWordBreak initialWordBreak() { return NormalWordBreak; } 1737 static EWordBreak initialWordBreak() { return NormalWordBreak; }
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 } 2029 }
2028 2030
2029 inline bool ComputedStyle::hasPseudoElementStyle() const 2031 inline bool ComputedStyle::hasPseudoElementStyle() const
2030 { 2032 {
2031 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2033 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2032 } 2034 }
2033 2035
2034 } // namespace blink 2036 } // namespace blink
2035 2037
2036 #endif // ComputedStyle_h 2038 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698