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

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: Missing file :( Created 5 years, 4 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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); } 584 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); }
585 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri tedData->m_textJustify); } 585 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri tedData->m_textJustify); }
586 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); } 586 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); }
587 TextDecoration textDecorationsInEffect() const; 587 TextDecoration textDecorationsInEffect() const;
588 const Vector<AppliedTextDecoration>& appliedTextDecorations() const; 588 const Vector<AppliedTextDecoration>& appliedTextDecorations() const;
589 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); } 589 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); }
590 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } 590 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); }
591 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); } 591 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); }
592 float wordSpacing() const; 592 float wordSpacing() const;
593 float letterSpacing() const; 593 float letterSpacing() const;
594 StyleVariableData* variables() const;
595 void setVariables(PassRefPtr<StyleVariableData>);
596
597 void setVariable(const AtomicString&, CSSVariableData*);
598 void removeVariable(const AtomicString&);
594 599
595 float zoom() const { return visual->m_zoom; } 600 float zoom() const { return visual->m_zoom; }
596 float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; } 601 float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; }
597 602
598 TextDirection direction() const { return static_cast<TextDirection>(inherite d_flags._direction); } 603 TextDirection direction() const { return static_cast<TextDirection>(inherite d_flags._direction); }
599 bool isLeftToRightDirection() const { return direction() == LTR; } 604 bool isLeftToRightDirection() const { return direction() == LTR; }
600 bool selfOrAncestorHasDirAutoAttribute() const { return rareInheritedData->m _selfOrAncestorHasDirAutoAttribute; } 605 bool selfOrAncestorHasDirAutoAttribute() const { return rareInheritedData->m _selfOrAncestorHasDirAutoAttribute; }
601 606
602 const Length& specifiedLineHeight() const; 607 const Length& specifiedLineHeight() const;
603 Length lineHeight() const; 608 Length lineHeight() const;
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 static EImageRendering initialImageRendering() { return ImageRenderingAuto; } 1705 static EImageRendering initialImageRendering() { return ImageRenderingAuto; }
1701 static ImageResolutionSource initialImageResolutionSource() { return ImageRe solutionSpecified; } 1706 static ImageResolutionSource initialImageResolutionSource() { return ImageRe solutionSpecified; }
1702 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu tionNoSnap; } 1707 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu tionNoSnap; }
1703 static float initialImageResolution() { return 1; } 1708 static float initialImageResolution() { return 1; }
1704 static StyleImage* initialBorderImageSource() { return 0; } 1709 static StyleImage* initialBorderImageSource() { return 0; }
1705 static StyleImage* initialMaskBoxImageSource() { return 0; } 1710 static StyleImage* initialMaskBoxImageSource() { return 0; }
1706 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE conomy; } 1711 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE conomy; }
1707 static TouchAction initialTouchAction() { return TouchActionAuto; } 1712 static TouchAction initialTouchAction() { return TouchActionAuto; }
1708 static ShadowList* initialBoxShadow() { return 0; } 1713 static ShadowList* initialBoxShadow() { return 0; }
1709 static ShadowList* initialTextShadow() { return 0; } 1714 static ShadowList* initialTextShadow() { return 0; }
1715 static StyleVariableData* initialVariables() { return nullptr; }
1710 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; } 1716 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; }
1711 static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnN one; } 1717 static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnN one; }
1712 static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; } 1718 static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; }
1713 static ScrollSnapPoints initialScrollSnapPointsX() { return ScrollSnapPoints (); } 1719 static ScrollSnapPoints initialScrollSnapPointsX() { return ScrollSnapPoints (); }
1714 static ScrollSnapPoints initialScrollSnapPointsY() { return ScrollSnapPoints (); } 1720 static ScrollSnapPoints initialScrollSnapPointsY() { return ScrollSnapPoints (); }
1715 static LengthPoint initialScrollSnapDestination() { return LengthPoint(Lengt h(0, Fixed), Length(0, Fixed)); } 1721 static LengthPoint initialScrollSnapDestination() { return LengthPoint(Lengt h(0, Fixed), Length(0, Fixed)); }
1716 static Vector<LengthPoint> initialScrollSnapCoordinate() { return Vector<Len gthPoint>(); } 1722 static Vector<LengthPoint> initialScrollSnapCoordinate() { return Vector<Len gthPoint>(); }
1717 1723
1718 // The initial value is 'none' for grid tracks. 1724 // The initial value is 'none' for grid tracks.
1719 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr idTrackSize>(); } 1725 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr idTrackSize>(); }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 } 1953 }
1948 1954
1949 inline bool ComputedStyle::hasPseudoElementStyle() const 1955 inline bool ComputedStyle::hasPseudoElementStyle() const
1950 { 1956 {
1951 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1957 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1952 } 1958 }
1953 1959
1954 } // namespace blink 1960 } // namespace blink
1955 1961
1956 #endif // ComputedStyle_h 1962 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698