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

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

Powered by Google App Engine
This is Rietveld 408576698