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

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: Created 4 years, 10 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 PassRefPtr<ComputedStyle> createAnonymousStyleWithDisplay(const Compu tedStyle& parentStyle, EDisplay); 368 static PassRefPtr<ComputedStyle> createAnonymousStyleWithDisplay(const Compu tedStyle& parentStyle, EDisplay);
369 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&); 369 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&);
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 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 static float initialBoxFlex() { return 0.0f; } 1713 static float initialBoxFlex() { return 0.0f; }
1713 static unsigned initialBoxFlexGroup() { return 1; } 1714 static unsigned initialBoxFlexGroup() { return 1; }
1714 static unsigned initialBoxOrdinalGroup() { return 1; } 1715 static unsigned initialBoxOrdinalGroup() { return 1; }
1715 static EBoxSizing initialBoxSizing() { return CONTENT_BOX; } 1716 static EBoxSizing initialBoxSizing() { return CONTENT_BOX; }
1716 static StyleReflection* initialBoxReflect() { return 0; } 1717 static StyleReflection* initialBoxReflect() { return 0; }
1717 static float initialFlexGrow() { return 0; } 1718 static float initialFlexGrow() { return 0; }
1718 static float initialFlexShrink() { return 1; } 1719 static float initialFlexShrink() { return 1; }
1719 static Length initialFlexBasis() { return Length(Auto); } 1720 static Length initialFlexBasis() { return Length(Auto); }
1720 static int initialOrder() { return 0; } 1721 static int initialOrder() { return 0; }
1721 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli gnmentDefault); } 1722 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli gnmentDefault); }
1723 static StyleSelfAlignmentData initialDefaultAlignment() { return StyleSelfAl ignmentData(ItemPositionNormal, OverflowAlignmentDefault); }
1722 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); } 1724 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); }
1723 static EFlexDirection initialFlexDirection() { return FlowRow; } 1725 static EFlexDirection initialFlexDirection() { return FlowRow; }
1724 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } 1726 static EFlexWrap initialFlexWrap() { return FlexNoWrap; }
1725 static EUserModify initialUserModify() { return READ_ONLY; } 1727 static EUserModify initialUserModify() { return READ_ONLY; }
1726 static EUserDrag initialUserDrag() { return DRAG_AUTO; } 1728 static EUserDrag initialUserDrag() { return DRAG_AUTO; }
1727 static EUserSelect initialUserSelect() { return SELECT_TEXT; } 1729 static EUserSelect initialUserSelect() { return SELECT_TEXT; }
1728 static TextOverflow initialTextOverflow() { return TextOverflowClip; } 1730 static TextOverflow initialTextOverflow() { return TextOverflowClip; }
1729 static EMarginCollapse initialMarginBeforeCollapse() { return MCOLLAPSE; } 1731 static EMarginCollapse initialMarginBeforeCollapse() { return MCOLLAPSE; }
1730 static EMarginCollapse initialMarginAfterCollapse() { return MCOLLAPSE; } 1732 static EMarginCollapse initialMarginAfterCollapse() { return MCOLLAPSE; }
1731 static EWordBreak initialWordBreak() { return NormalWordBreak; } 1733 static EWordBreak initialWordBreak() { return NormalWordBreak; }
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2023 } 2025 }
2024 2026
2025 inline bool ComputedStyle::hasPseudoElementStyle() const 2027 inline bool ComputedStyle::hasPseudoElementStyle() const
2026 { 2028 {
2027 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2029 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2028 } 2030 }
2029 2031
2030 } // namespace blink 2032 } // namespace blink
2031 2033
2032 #endif // ComputedStyle_h 2034 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698