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

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: with missing files Created 5 years, 5 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); } 577 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); }
578 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri tedData->m_textJustify); } 578 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri tedData->m_textJustify); }
579 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); } 579 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); }
580 TextDecoration textDecorationsInEffect() const; 580 TextDecoration textDecorationsInEffect() const;
581 const Vector<AppliedTextDecoration>& appliedTextDecorations() const; 581 const Vector<AppliedTextDecoration>& appliedTextDecorations() const;
582 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); } 582 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); }
583 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } 583 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); }
584 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); } 584 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); }
585 float wordSpacing() const; 585 float wordSpacing() const;
586 float letterSpacing() const; 586 float letterSpacing() const;
587 void createVariables();
588 StyleVariableData* variables() const;
589 void setVariables(PassRefPtr<StyleVariableData>);
587 590
588 float zoom() const { return visual->m_zoom; } 591 float zoom() const { return visual->m_zoom; }
589 float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; } 592 float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; }
590 593
591 TextDirection direction() const { return static_cast<TextDirection>(inherite d_flags._direction); } 594 TextDirection direction() const { return static_cast<TextDirection>(inherite d_flags._direction); }
592 bool isLeftToRightDirection() const { return direction() == LTR; } 595 bool isLeftToRightDirection() const { return direction() == LTR; }
593 bool selfOrAncestorHasDirAutoAttribute() const { return rareInheritedData->m _selfOrAncestorHasDirAutoAttribute; } 596 bool selfOrAncestorHasDirAutoAttribute() const { return rareInheritedData->m _selfOrAncestorHasDirAutoAttribute; }
594 597
595 const Length& specifiedLineHeight() const; 598 const Length& specifiedLineHeight() const;
596 Length lineHeight() const; 599 Length lineHeight() const;
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 static EImageRendering initialImageRendering() { return ImageRenderingAuto; } 1689 static EImageRendering initialImageRendering() { return ImageRenderingAuto; }
1687 static ImageResolutionSource initialImageResolutionSource() { return ImageRe solutionSpecified; } 1690 static ImageResolutionSource initialImageResolutionSource() { return ImageRe solutionSpecified; }
1688 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu tionNoSnap; } 1691 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu tionNoSnap; }
1689 static float initialImageResolution() { return 1; } 1692 static float initialImageResolution() { return 1; }
1690 static StyleImage* initialBorderImageSource() { return 0; } 1693 static StyleImage* initialBorderImageSource() { return 0; }
1691 static StyleImage* initialMaskBoxImageSource() { return 0; } 1694 static StyleImage* initialMaskBoxImageSource() { return 0; }
1692 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE conomy; } 1695 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE conomy; }
1693 static TouchAction initialTouchAction() { return TouchActionAuto; } 1696 static TouchAction initialTouchAction() { return TouchActionAuto; }
1694 static ShadowList* initialBoxShadow() { return 0; } 1697 static ShadowList* initialBoxShadow() { return 0; }
1695 static ShadowList* initialTextShadow() { return 0; } 1698 static ShadowList* initialTextShadow() { return 0; }
1699 static StyleVariableData* initialVariables() { return 0; }
1696 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; } 1700 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; }
1697 static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnN one; } 1701 static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnN one; }
1698 static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; } 1702 static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; }
1699 static ScrollSnapPoints initialScrollSnapPointsX() { return ScrollSnapPoints (); } 1703 static ScrollSnapPoints initialScrollSnapPointsX() { return ScrollSnapPoints (); }
1700 static ScrollSnapPoints initialScrollSnapPointsY() { return ScrollSnapPoints (); } 1704 static ScrollSnapPoints initialScrollSnapPointsY() { return ScrollSnapPoints (); }
1701 static LengthPoint initialScrollSnapDestination() { return LengthPoint(Lengt h(0, Fixed), Length(0, Fixed)); } 1705 static LengthPoint initialScrollSnapDestination() { return LengthPoint(Lengt h(0, Fixed), Length(0, Fixed)); }
1702 static Vector<LengthPoint> initialScrollSnapCoordinate() { return Vector<Len gthPoint>(); } 1706 static Vector<LengthPoint> initialScrollSnapCoordinate() { return Vector<Len gthPoint>(); }
1703 1707
1704 // The initial value is 'none' for grid tracks. 1708 // The initial value is 'none' for grid tracks.
1705 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr idTrackSize>(); } 1709 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr idTrackSize>(); }
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 } 1938 }
1935 1939
1936 inline bool ComputedStyle::hasPseudoElementStyle() const 1940 inline bool ComputedStyle::hasPseudoElementStyle() const
1937 { 1941 {
1938 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1942 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1939 } 1943 }
1940 1944
1941 } // namespace blink 1945 } // namespace blink
1942 1946
1943 #endif // ComputedStyle_h 1947 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698