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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); } 576 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); }
577 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri tedData->m_textJustify); } 577 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri tedData->m_textJustify); }
578 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); } 578 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); }
579 TextDecoration textDecorationsInEffect() const; 579 TextDecoration textDecorationsInEffect() const;
580 const Vector<AppliedTextDecoration>& appliedTextDecorations() const; 580 const Vector<AppliedTextDecoration>& appliedTextDecorations() const;
581 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); } 581 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); }
582 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } 582 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); }
583 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); } 583 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); }
584 float wordSpacing() const; 584 float wordSpacing() const;
585 float letterSpacing() const; 585 float letterSpacing() const;
586 void createVariables();
587 StyleVariableData* variables() const;
588 void setVariables(PassRefPtr<StyleVariableData>);
586 589
587 float zoom() const { return visual->m_zoom; } 590 float zoom() const { return visual->m_zoom; }
588 float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; } 591 float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; }
589 592
590 TextDirection direction() const { return static_cast<TextDirection>(inherite d_flags._direction); } 593 TextDirection direction() const { return static_cast<TextDirection>(inherite d_flags._direction); }
591 bool isLeftToRightDirection() const { return direction() == LTR; } 594 bool isLeftToRightDirection() const { return direction() == LTR; }
592 bool selfOrAncestorHasDirAutoAttribute() const { return rareInheritedData->m _selfOrAncestorHasDirAutoAttribute; } 595 bool selfOrAncestorHasDirAutoAttribute() const { return rareInheritedData->m _selfOrAncestorHasDirAutoAttribute; }
593 596
594 const Length& specifiedLineHeight() const; 597 const Length& specifiedLineHeight() const;
595 Length lineHeight() const; 598 Length lineHeight() const;
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 static EImageRendering initialImageRendering() { return ImageRenderingAuto; } 1661 static EImageRendering initialImageRendering() { return ImageRenderingAuto; }
1659 static ImageResolutionSource initialImageResolutionSource() { return ImageRe solutionSpecified; } 1662 static ImageResolutionSource initialImageResolutionSource() { return ImageRe solutionSpecified; }
1660 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu tionNoSnap; } 1663 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu tionNoSnap; }
1661 static float initialImageResolution() { return 1; } 1664 static float initialImageResolution() { return 1; }
1662 static StyleImage* initialBorderImageSource() { return 0; } 1665 static StyleImage* initialBorderImageSource() { return 0; }
1663 static StyleImage* initialMaskBoxImageSource() { return 0; } 1666 static StyleImage* initialMaskBoxImageSource() { return 0; }
1664 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE conomy; } 1667 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE conomy; }
1665 static TouchAction initialTouchAction() { return TouchActionAuto; } 1668 static TouchAction initialTouchAction() { return TouchActionAuto; }
1666 static ShadowList* initialBoxShadow() { return 0; } 1669 static ShadowList* initialBoxShadow() { return 0; }
1667 static ShadowList* initialTextShadow() { return 0; } 1670 static ShadowList* initialTextShadow() { return 0; }
1671 static StyleVariableData* initialVariables() { return 0; }
1668 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; } 1672 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; }
1669 static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnN one; } 1673 static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnN one; }
1670 static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; } 1674 static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; }
1671 static ScrollSnapPoints initialScrollSnapPointsX() { return ScrollSnapPoints (); } 1675 static ScrollSnapPoints initialScrollSnapPointsX() { return ScrollSnapPoints (); }
1672 static ScrollSnapPoints initialScrollSnapPointsY() { return ScrollSnapPoints (); } 1676 static ScrollSnapPoints initialScrollSnapPointsY() { return ScrollSnapPoints (); }
1673 static LengthPoint initialScrollSnapDestination() { return LengthPoint(Lengt h(0, Fixed), Length(0, Fixed)); } 1677 static LengthPoint initialScrollSnapDestination() { return LengthPoint(Lengt h(0, Fixed), Length(0, Fixed)); }
1674 static Vector<LengthPoint> initialScrollSnapCoordinate() { return Vector<Len gthPoint>(); } 1678 static Vector<LengthPoint> initialScrollSnapCoordinate() { return Vector<Len gthPoint>(); }
1675 1679
1676 // The initial value is 'none' for grid tracks. 1680 // The initial value is 'none' for grid tracks.
1677 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr idTrackSize>(); } 1681 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr idTrackSize>(); }
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 } 1905 }
1902 1906
1903 inline bool ComputedStyle::hasPseudoElementStyle() const 1907 inline bool ComputedStyle::hasPseudoElementStyle() const
1904 { 1908 {
1905 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1909 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1906 } 1910 }
1907 1911
1908 } // namespace blink 1912 } // namespace blink
1909 1913
1910 #endif // ComputedStyle_h 1914 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698