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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 1583433002: [css-align] New CSS Value 'normal' for Content Alignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed layout tests failing. 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 364 }
365 365
366 public: 366 public:
367 static PassRefPtr<ComputedStyle> create(); 367 static PassRefPtr<ComputedStyle> create();
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;
375 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten tAlignmentData& normalValueBehavior) const;
376 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData & normalValueBehavior) const;
377 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA lignmentData& normalValueBehavior) const;
374 const StyleSelfAlignmentData resolvedAlignment(const ComputedStyle& parentSt yle, ItemPosition resolvedAutoPositionForLayoutObject) const; 378 const StyleSelfAlignmentData resolvedAlignment(const ComputedStyle& parentSt yle, ItemPosition resolvedAutoPositionForLayoutObject) const;
375 static ItemPosition resolveAlignment(const ComputedStyle& parentStyle, const ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject); 379 static ItemPosition resolveAlignment(const ComputedStyle& parentStyle, const ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject);
376 static ItemPosition resolveJustification(const ComputedStyle& parentStyle, c onst ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject ); 380 static ItemPosition resolveJustification(const ComputedStyle& parentStyle, c onst ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject );
377 381
378 StyleDifference visualInvalidationDiff(const ComputedStyle&) const; 382 StyleDifference visualInvalidationDiff(const ComputedStyle&) const;
379 383
380 enum IsAtShadowBoundary { 384 enum IsAtShadowBoundary {
381 AtShadowBoundary, 385 AtShadowBoundary,
382 NotAtShadowBoundary, 386 NotAtShadowBoundary,
383 }; 387 };
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 static EBoxPack initialBoxPack() { return Start; } 1710 static EBoxPack initialBoxPack() { return Start; }
1707 static float initialBoxFlex() { return 0.0f; } 1711 static float initialBoxFlex() { return 0.0f; }
1708 static unsigned initialBoxFlexGroup() { return 1; } 1712 static unsigned initialBoxFlexGroup() { return 1; }
1709 static unsigned initialBoxOrdinalGroup() { return 1; } 1713 static unsigned initialBoxOrdinalGroup() { return 1; }
1710 static EBoxSizing initialBoxSizing() { return CONTENT_BOX; } 1714 static EBoxSizing initialBoxSizing() { return CONTENT_BOX; }
1711 static StyleReflection* initialBoxReflect() { return 0; } 1715 static StyleReflection* initialBoxReflect() { return 0; }
1712 static float initialFlexGrow() { return 0; } 1716 static float initialFlexGrow() { return 0; }
1713 static float initialFlexShrink() { return 1; } 1717 static float initialFlexShrink() { return 1; }
1714 static Length initialFlexBasis() { return Length(Auto); } 1718 static Length initialFlexBasis() { return Length(Auto); }
1715 static int initialOrder() { return 0; } 1719 static int initialOrder() { return 0; }
1716 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(ContentPositionAuto, ContentDistributionDefault, OverflowAlign mentDefault); } 1720 static StyleContentAlignmentData initialContentAlignment() { return StyleCon tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli gnmentDefault); }
1717 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); } 1721 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign mentData(ItemPositionAuto, OverflowAlignmentDefault); }
1718 static EFlexDirection initialFlexDirection() { return FlowRow; } 1722 static EFlexDirection initialFlexDirection() { return FlowRow; }
1719 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } 1723 static EFlexWrap initialFlexWrap() { return FlexNoWrap; }
1720 static EUserModify initialUserModify() { return READ_ONLY; } 1724 static EUserModify initialUserModify() { return READ_ONLY; }
1721 static EUserDrag initialUserDrag() { return DRAG_AUTO; } 1725 static EUserDrag initialUserDrag() { return DRAG_AUTO; }
1722 static EUserSelect initialUserSelect() { return SELECT_TEXT; } 1726 static EUserSelect initialUserSelect() { return SELECT_TEXT; }
1723 static TextOverflow initialTextOverflow() { return TextOverflowClip; } 1727 static TextOverflow initialTextOverflow() { return TextOverflowClip; }
1724 static EMarginCollapse initialMarginBeforeCollapse() { return MCOLLAPSE; } 1728 static EMarginCollapse initialMarginBeforeCollapse() { return MCOLLAPSE; }
1725 static EMarginCollapse initialMarginAfterCollapse() { return MCOLLAPSE; } 1729 static EMarginCollapse initialMarginAfterCollapse() { return MCOLLAPSE; }
1726 static EWordBreak initialWordBreak() { return NormalWordBreak; } 1730 static EWordBreak initialWordBreak() { return NormalWordBreak; }
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 } 2022 }
2019 2023
2020 inline bool ComputedStyle::hasPseudoElementStyle() const 2024 inline bool ComputedStyle::hasPseudoElementStyle() const
2021 { 2025 {
2022 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2026 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2023 } 2027 }
2024 2028
2025 } // namespace blink 2029 } // namespace blink
2026 2030
2027 #endif // ComputedStyle_h 2031 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698