OLD | NEW |
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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&); | 374 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&); |
375 static void invalidateInitialStyle(); | 375 static void invalidateInitialStyle(); |
376 | 376 |
377 // Computes how the style change should be propagated down the tree. | 377 // Computes how the style change should be propagated down the tree. |
378 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle,
const ComputedStyle* newStyle); | 378 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle,
const ComputedStyle* newStyle); |
379 | 379 |
380 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa
ta& normalValueBehavior) const; | 380 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa
ta& normalValueBehavior) const; |
381 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten
tAlignmentData& normalValueBehavior) const; | 381 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten
tAlignmentData& normalValueBehavior) const; |
382 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData
& normalValueBehavior) const; | 382 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData
& normalValueBehavior) const; |
383 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA
lignmentData& normalValueBehavior) const; | 383 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA
lignmentData& normalValueBehavior) const; |
384 const StyleSelfAlignmentData resolvedAlignment(const ComputedStyle& parentSt
yle, ItemPosition resolvedAutoPositionForLayoutObject) const; | 384 const StyleSelfAlignmentData resolvedAlignItems(ItemPosition normalValueBeha
viour) const; |
385 static ItemPosition resolveAlignment(const ComputedStyle& parentStyle, const
ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject); | 385 const StyleSelfAlignmentData resolvedAlignSelf(const ComputedStyle& parentSt
yle, ItemPosition normalValueBehaviour) const; |
386 static ItemPosition resolveJustification(const ComputedStyle& parentStyle, c
onst ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject
); | 386 const StyleSelfAlignmentData resolvedJustifyItems(ItemPosition normalValueBe
haviour) const; |
| 387 const StyleSelfAlignmentData resolvedJustifySelf(const ComputedStyle& parent
Style, ItemPosition normalValueBehaviour) const; |
387 | 388 |
388 StyleDifference visualInvalidationDiff(const ComputedStyle&) const; | 389 StyleDifference visualInvalidationDiff(const ComputedStyle&) const; |
389 | 390 |
390 enum IsAtShadowBoundary { | 391 enum IsAtShadowBoundary { |
391 AtShadowBoundary, | 392 AtShadowBoundary, |
392 NotAtShadowBoundary, | 393 NotAtShadowBoundary, |
393 }; | 394 }; |
394 | 395 |
395 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No
tAtShadowBoundary); | 396 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No
tAtShadowBoundary); |
396 void copyNonInheritedFromCached(const ComputedStyle&); | 397 void copyNonInheritedFromCached(const ComputedStyle&); |
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1737 static float initialBoxFlex() { return 0.0f; } | 1738 static float initialBoxFlex() { return 0.0f; } |
1738 static unsigned initialBoxFlexGroup() { return 1; } | 1739 static unsigned initialBoxFlexGroup() { return 1; } |
1739 static unsigned initialBoxOrdinalGroup() { return 1; } | 1740 static unsigned initialBoxOrdinalGroup() { return 1; } |
1740 static EBoxSizing initialBoxSizing() { return BoxSizingContentBox; } | 1741 static EBoxSizing initialBoxSizing() { return BoxSizingContentBox; } |
1741 static StyleReflection* initialBoxReflect() { return 0; } | 1742 static StyleReflection* initialBoxReflect() { return 0; } |
1742 static float initialFlexGrow() { return 0; } | 1743 static float initialFlexGrow() { return 0; } |
1743 static float initialFlexShrink() { return 1; } | 1744 static float initialFlexShrink() { return 1; } |
1744 static Length initialFlexBasis() { return Length(Auto); } | 1745 static Length initialFlexBasis() { return Length(Auto); } |
1745 static int initialOrder() { return 0; } | 1746 static int initialOrder() { return 0; } |
1746 static StyleContentAlignmentData initialContentAlignment() { return StyleCon
tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli
gnmentDefault); } | 1747 static StyleContentAlignmentData initialContentAlignment() { return StyleCon
tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli
gnmentDefault); } |
| 1748 static StyleSelfAlignmentData initialDefaultAlignment() { return StyleSelfAl
ignmentData(ItemPositionNormal, OverflowAlignmentDefault); } |
1747 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign
mentData(ItemPositionAuto, OverflowAlignmentDefault); } | 1749 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign
mentData(ItemPositionAuto, OverflowAlignmentDefault); } |
1748 static EFlexDirection initialFlexDirection() { return FlowRow; } | 1750 static EFlexDirection initialFlexDirection() { return FlowRow; } |
1749 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } | 1751 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } |
1750 static EUserModify initialUserModify() { return READ_ONLY; } | 1752 static EUserModify initialUserModify() { return READ_ONLY; } |
1751 static EUserDrag initialUserDrag() { return DRAG_AUTO; } | 1753 static EUserDrag initialUserDrag() { return DRAG_AUTO; } |
1752 static EUserSelect initialUserSelect() { return SELECT_TEXT; } | 1754 static EUserSelect initialUserSelect() { return SELECT_TEXT; } |
1753 static TextOverflow initialTextOverflow() { return TextOverflowClip; } | 1755 static TextOverflow initialTextOverflow() { return TextOverflowClip; } |
1754 static EMarginCollapse initialMarginBeforeCollapse() { return MarginCollapse
Collapse; } | 1756 static EMarginCollapse initialMarginBeforeCollapse() { return MarginCollapse
Collapse; } |
1755 static EMarginCollapse initialMarginAfterCollapse() { return MarginCollapseC
ollapse; } | 1757 static EMarginCollapse initialMarginAfterCollapse() { return MarginCollapseC
ollapse; } |
1756 static EWordBreak initialWordBreak() { return NormalWordBreak; } | 1758 static EWordBreak initialWordBreak() { return NormalWordBreak; } |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2051 } | 2053 } |
2052 | 2054 |
2053 inline bool ComputedStyle::hasPseudoElementStyle() const | 2055 inline bool ComputedStyle::hasPseudoElementStyle() const |
2054 { | 2056 { |
2055 return noninherited_flags.pseudoBits & ElementPseudoIdMask; | 2057 return noninherited_flags.pseudoBits & ElementPseudoIdMask; |
2056 } | 2058 } |
2057 | 2059 |
2058 } // namespace blink | 2060 } // namespace blink |
2059 | 2061 |
2060 #endif // ComputedStyle_h | 2062 #endif // ComputedStyle_h |
OLD | NEW |