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 | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 * rights reserved. | 6 * rights reserved. |
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 StyleDifference VisualInvalidationDiff(const ComputedStyle&) const; | 289 StyleDifference VisualInvalidationDiff(const ComputedStyle&) const; |
290 | 290 |
291 void InheritFrom(const ComputedStyle& inherit_parent, | 291 void InheritFrom(const ComputedStyle& inherit_parent, |
292 IsAtShadowBoundary = kNotAtShadowBoundary); | 292 IsAtShadowBoundary = kNotAtShadowBoundary); |
293 void CopyNonInheritedFromCached(const ComputedStyle&); | 293 void CopyNonInheritedFromCached(const ComputedStyle&); |
294 | 294 |
295 PseudoId StyleType() const { return StyleTypeInternal(); } | 295 PseudoId StyleType() const { return StyleTypeInternal(); } |
296 void SetStyleType(PseudoId style_type) { SetStyleTypeInternal(style_type); } | 296 void SetStyleType(PseudoId style_type) { SetStyleTypeInternal(style_type); } |
297 | 297 |
298 ComputedStyle* GetCachedPseudoStyle(PseudoId) const; | 298 ComputedStyle* GetCachedPseudoStyle(PseudoId) const; |
299 ComputedStyle* AddCachedPseudoStyle(PassRefPtr<ComputedStyle>); | 299 ComputedStyle* AddCachedPseudoStyle(RefPtr<ComputedStyle>); |
300 void RemoveCachedPseudoStyle(PseudoId); | 300 void RemoveCachedPseudoStyle(PseudoId); |
301 | 301 |
302 const PseudoStyleCache* CachedPseudoStyles() const { | 302 const PseudoStyleCache* CachedPseudoStyles() const { |
303 return cached_pseudo_styles_.get(); | 303 return cached_pseudo_styles_.get(); |
304 } | 304 } |
305 | 305 |
306 bool BorderWidthEquals(float border_width_first, | 306 bool BorderWidthEquals(float border_width_first, |
307 float border_width_second) const { | 307 float border_width_second) const { |
308 return WidthToFixedPoint(border_width_first) == | 308 return WidthToFixedPoint(border_width_first) == |
309 WidthToFixedPoint(border_width_second); | 309 WidthToFixedPoint(border_width_second); |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 SetBorderBottomColorInternal(color.Resolve(Color())); | 628 SetBorderBottomColorInternal(color.Resolve(Color())); |
629 SetBorderBottomColorIsCurrentColor(color.IsCurrentColor()); | 629 SetBorderBottomColorIsCurrentColor(color.IsCurrentColor()); |
630 } | 630 } |
631 } | 631 } |
632 | 632 |
633 // box-shadow (aka -webkit-box-shadow) | 633 // box-shadow (aka -webkit-box-shadow) |
634 static ShadowList* InitialBoxShadow() { return 0; } | 634 static ShadowList* InitialBoxShadow() { return 0; } |
635 ShadowList* BoxShadow() const { | 635 ShadowList* BoxShadow() const { |
636 return rare_non_inherited_data_->box_shadow_.Get(); | 636 return rare_non_inherited_data_->box_shadow_.Get(); |
637 } | 637 } |
638 void SetBoxShadow(PassRefPtr<ShadowList>); | 638 void SetBoxShadow(RefPtr<ShadowList>); |
639 | 639 |
640 // clip | 640 // clip |
641 static LengthBox InitialClip() { return LengthBox(); } | 641 static LengthBox InitialClip() { return LengthBox(); } |
642 const LengthBox& Clip() const { return ClipInternal(); } | 642 const LengthBox& Clip() const { return ClipInternal(); } |
643 void SetClip(const LengthBox& box) { | 643 void SetClip(const LengthBox& box) { |
644 SetHasAutoClipInternal(false); | 644 SetHasAutoClipInternal(false); |
645 SetClipInternal(box); | 645 SetClipInternal(box); |
646 } | 646 } |
647 bool HasAutoClip() const { return HasAutoClipInternal(); } | 647 bool HasAutoClip() const { return HasAutoClipInternal(); } |
648 void SetHasAutoClip() { | 648 void SetHasAutoClip() { |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 } | 880 } |
881 void SetBoxPack(EBoxPack p) { | 881 void SetBoxPack(EBoxPack p) { |
882 SET_NESTED_VAR(rare_non_inherited_data_, deprecated_flexible_box_, pack, p); | 882 SET_NESTED_VAR(rare_non_inherited_data_, deprecated_flexible_box_, pack, p); |
883 } | 883 } |
884 | 884 |
885 // -webkit-box-reflect | 885 // -webkit-box-reflect |
886 static StyleReflection* InitialBoxReflect() { return 0; } | 886 static StyleReflection* InitialBoxReflect() { return 0; } |
887 StyleReflection* BoxReflect() const { | 887 StyleReflection* BoxReflect() const { |
888 return rare_non_inherited_data_->box_reflect_.Get(); | 888 return rare_non_inherited_data_->box_reflect_.Get(); |
889 } | 889 } |
890 void SetBoxReflect(PassRefPtr<StyleReflection> reflect) { | 890 void SetBoxReflect(RefPtr<StyleReflection> reflect) { |
891 if (rare_non_inherited_data_->box_reflect_ != reflect) | 891 if (rare_non_inherited_data_->box_reflect_ != reflect) |
892 rare_non_inherited_data_.Access()->box_reflect_ = std::move(reflect); | 892 rare_non_inherited_data_.Access()->box_reflect_ = std::move(reflect); |
893 } | 893 } |
894 | 894 |
895 // Grid properties. | 895 // Grid properties. |
896 static Vector<GridTrackSize> InitialGridAutoRepeatTracks() { | 896 static Vector<GridTrackSize> InitialGridAutoRepeatTracks() { |
897 return Vector<GridTrackSize>(); /* none */ | 897 return Vector<GridTrackSize>(); /* none */ |
898 } | 898 } |
899 static size_t InitialGridAutoRepeatInsertionPoint() { return 0; } | 899 static size_t InitialGridAutoRepeatInsertionPoint() { return 0; } |
900 static AutoRepeatType InitialGridAutoRepeatType() { return kNoAutoRepeat; } | 900 static AutoRepeatType InitialGridAutoRepeatType() { return kNoAutoRepeat; } |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 void SetOffsetDistance(const Length& offset_distance) { | 1131 void SetOffsetDistance(const Length& offset_distance) { |
1132 SET_NESTED_VAR(rare_non_inherited_data_, transform_, motion_.distance_, | 1132 SET_NESTED_VAR(rare_non_inherited_data_, transform_, motion_.distance_, |
1133 offset_distance); | 1133 offset_distance); |
1134 } | 1134 } |
1135 | 1135 |
1136 // offset-path | 1136 // offset-path |
1137 static BasicShape* InitialOffsetPath() { return nullptr; } | 1137 static BasicShape* InitialOffsetPath() { return nullptr; } |
1138 BasicShape* OffsetPath() const { | 1138 BasicShape* OffsetPath() const { |
1139 return rare_non_inherited_data_->transform_->motion_.path_.Get(); | 1139 return rare_non_inherited_data_->transform_->motion_.path_.Get(); |
1140 } | 1140 } |
1141 void SetOffsetPath(PassRefPtr<BasicShape>); | 1141 void SetOffsetPath(RefPtr<BasicShape>); |
1142 | 1142 |
1143 // offset-position | 1143 // offset-position |
1144 static LengthPoint InitialOffsetPosition() { | 1144 static LengthPoint InitialOffsetPosition() { |
1145 return LengthPoint(Length(kAuto), Length(kAuto)); | 1145 return LengthPoint(Length(kAuto), Length(kAuto)); |
1146 } | 1146 } |
1147 const LengthPoint& OffsetPosition() const { | 1147 const LengthPoint& OffsetPosition() const { |
1148 return rare_non_inherited_data_->transform_->motion_.position_; | 1148 return rare_non_inherited_data_->transform_->motion_.position_; |
1149 } | 1149 } |
1150 void SetOffsetPosition(const LengthPoint& offset_position) { | 1150 void SetOffsetPosition(const LengthPoint& offset_position) { |
1151 SET_NESTED_VAR(rare_non_inherited_data_, transform_, motion_.position_, | 1151 SET_NESTED_VAR(rare_non_inherited_data_, transform_, motion_.position_, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 } | 1325 } |
1326 | 1326 |
1327 // Independent transform properties. | 1327 // Independent transform properties. |
1328 // translate | 1328 // translate |
1329 static PassRefPtr<TranslateTransformOperation> InitialTranslate() { | 1329 static PassRefPtr<TranslateTransformOperation> InitialTranslate() { |
1330 return nullptr; | 1330 return nullptr; |
1331 } | 1331 } |
1332 TranslateTransformOperation* Translate() const { | 1332 TranslateTransformOperation* Translate() const { |
1333 return rare_non_inherited_data_->transform_->translate_.Get(); | 1333 return rare_non_inherited_data_->transform_->translate_.Get(); |
1334 } | 1334 } |
1335 void SetTranslate(PassRefPtr<TranslateTransformOperation> v) { | 1335 void SetTranslate(RefPtr<TranslateTransformOperation> v) { |
1336 rare_non_inherited_data_.Access()->transform_.Access()->translate_ = | 1336 rare_non_inherited_data_.Access()->transform_.Access()->translate_ = |
1337 std::move(v); | 1337 std::move(v); |
1338 } | 1338 } |
1339 | 1339 |
1340 // rotate | 1340 // rotate |
1341 static PassRefPtr<RotateTransformOperation> InitialRotate() { | 1341 static PassRefPtr<RotateTransformOperation> InitialRotate() { |
1342 return nullptr; | 1342 return nullptr; |
1343 } | 1343 } |
1344 RotateTransformOperation* Rotate() const { | 1344 RotateTransformOperation* Rotate() const { |
1345 return rare_non_inherited_data_->transform_->rotate_.Get(); | 1345 return rare_non_inherited_data_->transform_->rotate_.Get(); |
1346 } | 1346 } |
1347 void SetRotate(PassRefPtr<RotateTransformOperation> v) { | 1347 void SetRotate(RefPtr<RotateTransformOperation> v) { |
1348 rare_non_inherited_data_.Access()->transform_.Access()->rotate_ = | 1348 rare_non_inherited_data_.Access()->transform_.Access()->rotate_ = |
1349 std::move(v); | 1349 std::move(v); |
1350 } | 1350 } |
1351 | 1351 |
1352 // scale | 1352 // scale |
1353 static PassRefPtr<ScaleTransformOperation> InitialScale() { return nullptr; } | 1353 static PassRefPtr<ScaleTransformOperation> InitialScale() { return nullptr; } |
1354 ScaleTransformOperation* Scale() const { | 1354 ScaleTransformOperation* Scale() const { |
1355 return rare_non_inherited_data_->transform_->scale_.Get(); | 1355 return rare_non_inherited_data_->transform_->scale_.Get(); |
1356 } | 1356 } |
1357 void SetScale(PassRefPtr<ScaleTransformOperation> v) { | 1357 void SetScale(RefPtr<ScaleTransformOperation> v) { |
1358 rare_non_inherited_data_.Access()->transform_.Access()->scale_ = | 1358 rare_non_inherited_data_.Access()->transform_.Access()->scale_ = |
1359 std::move(v); | 1359 std::move(v); |
1360 } | 1360 } |
1361 | 1361 |
1362 // Scroll properties. | 1362 // Scroll properties. |
1363 // scroll-behavior | 1363 // scroll-behavior |
1364 static ScrollBehavior InitialScrollBehavior() { return kScrollBehaviorAuto; } | 1364 static ScrollBehavior InitialScrollBehavior() { return kScrollBehaviorAuto; } |
1365 ScrollBehavior GetScrollBehavior() const { | 1365 ScrollBehavior GetScrollBehavior() const { |
1366 return static_cast<ScrollBehavior>( | 1366 return static_cast<ScrollBehavior>( |
1367 rare_non_inherited_data_->scroll_behavior_); | 1367 rare_non_inherited_data_->scroll_behavior_); |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 } | 1624 } |
1625 void SetAppearance(ControlPart a) { | 1625 void SetAppearance(ControlPart a) { |
1626 SET_VAR(rare_non_inherited_data_, appearance_, a); | 1626 SET_VAR(rare_non_inherited_data_, appearance_, a); |
1627 } | 1627 } |
1628 | 1628 |
1629 // -webkit-clip-path | 1629 // -webkit-clip-path |
1630 static ClipPathOperation* InitialClipPath() { return 0; } | 1630 static ClipPathOperation* InitialClipPath() { return 0; } |
1631 ClipPathOperation* ClipPath() const { | 1631 ClipPathOperation* ClipPath() const { |
1632 return rare_non_inherited_data_->clip_path_.Get(); | 1632 return rare_non_inherited_data_->clip_path_.Get(); |
1633 } | 1633 } |
1634 void SetClipPath(PassRefPtr<ClipPathOperation> operation) { | 1634 void SetClipPath(RefPtr<ClipPathOperation> operation) { |
1635 if (rare_non_inherited_data_->clip_path_ != operation) | 1635 if (rare_non_inherited_data_->clip_path_ != operation) |
1636 rare_non_inherited_data_.Access()->clip_path_ = std::move(operation); | 1636 rare_non_inherited_data_.Access()->clip_path_ = std::move(operation); |
1637 } | 1637 } |
1638 | 1638 |
1639 // Mask properties. | 1639 // Mask properties. |
1640 // -webkit-mask-box-image-outset | 1640 // -webkit-mask-box-image-outset |
1641 const BorderImageLengthBox& MaskBoxImageOutset() const { | 1641 const BorderImageLengthBox& MaskBoxImageOutset() const { |
1642 return rare_non_inherited_data_->mask_box_image_.Outset(); | 1642 return rare_non_inherited_data_->mask_box_image_.Outset(); |
1643 } | 1643 } |
1644 void SetMaskBoxImageOutset(const BorderImageLengthBox& outset) { | 1644 void SetMaskBoxImageOutset(const BorderImageLengthBox& outset) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1718 EOverflowWrap OverflowWrap() const { | 1718 EOverflowWrap OverflowWrap() const { |
1719 return static_cast<EOverflowWrap>(rare_inherited_data_->overflow_wrap_); | 1719 return static_cast<EOverflowWrap>(rare_inherited_data_->overflow_wrap_); |
1720 } | 1720 } |
1721 void SetOverflowWrap(EOverflowWrap b) { | 1721 void SetOverflowWrap(EOverflowWrap b) { |
1722 SET_VAR(rare_inherited_data_, overflow_wrap_, b); | 1722 SET_VAR(rare_inherited_data_, overflow_wrap_, b); |
1723 } | 1723 } |
1724 | 1724 |
1725 // quotes | 1725 // quotes |
1726 static QuotesData* InitialQuotes() { return 0; } | 1726 static QuotesData* InitialQuotes() { return 0; } |
1727 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); } | 1727 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); } |
1728 void SetQuotes(PassRefPtr<QuotesData>); | 1728 void SetQuotes(RefPtr<QuotesData>); |
1729 | 1729 |
1730 bool QuotesDataEquivalent(const ComputedStyle&) const; | 1730 bool QuotesDataEquivalent(const ComputedStyle&) const; |
1731 | 1731 |
1732 // line-height-step | 1732 // line-height-step |
1733 static uint8_t InitialLineHeightStep() { return 0; } | 1733 static uint8_t InitialLineHeightStep() { return 0; } |
1734 uint8_t LineHeightStep() const { | 1734 uint8_t LineHeightStep() const { |
1735 return rare_inherited_data_->line_height_step_; | 1735 return rare_inherited_data_->line_height_step_; |
1736 } | 1736 } |
1737 void SetLineHeightStep(uint8_t unit) { | 1737 void SetLineHeightStep(uint8_t unit) { |
1738 SET_VAR(rare_inherited_data_, line_height_step_, unit); | 1738 SET_VAR(rare_inherited_data_, line_height_step_, unit); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1812 return static_cast<TextOrientation>( | 1812 return static_cast<TextOrientation>( |
1813 rare_inherited_data_->text_orientation_); | 1813 rare_inherited_data_->text_orientation_); |
1814 } | 1814 } |
1815 bool SetTextOrientation(TextOrientation); | 1815 bool SetTextOrientation(TextOrientation); |
1816 | 1816 |
1817 // text-shadow | 1817 // text-shadow |
1818 static ShadowList* InitialTextShadow() { return 0; } | 1818 static ShadowList* InitialTextShadow() { return 0; } |
1819 ShadowList* TextShadow() const { | 1819 ShadowList* TextShadow() const { |
1820 return rare_inherited_data_->text_shadow_.Get(); | 1820 return rare_inherited_data_->text_shadow_.Get(); |
1821 } | 1821 } |
1822 void SetTextShadow(PassRefPtr<ShadowList>); | 1822 void SetTextShadow(RefPtr<ShadowList>); |
1823 | 1823 |
1824 bool TextShadowDataEquivalent(const ComputedStyle&) const; | 1824 bool TextShadowDataEquivalent(const ComputedStyle&) const; |
1825 | 1825 |
1826 // text-size-adjust (aka -webkit-text-size-adjust) | 1826 // text-size-adjust (aka -webkit-text-size-adjust) |
1827 static TextSizeAdjust InitialTextSizeAdjust() { | 1827 static TextSizeAdjust InitialTextSizeAdjust() { |
1828 return TextSizeAdjust::AdjustAuto(); | 1828 return TextSizeAdjust::AdjustAuto(); |
1829 } | 1829 } |
1830 TextSizeAdjust GetTextSizeAdjust() const { | 1830 TextSizeAdjust GetTextSizeAdjust() const { |
1831 return rare_inherited_data_->text_size_adjust_; | 1831 return rare_inherited_data_->text_size_adjust_; |
1832 } | 1832 } |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2058 svg_style.SetBaselineShiftValue(value); | 2058 svg_style.SetBaselineShiftValue(value); |
2059 } | 2059 } |
2060 | 2060 |
2061 // cx | 2061 // cx |
2062 void SetCx(const Length& cx) { AccessSVGStyle().SetCx(cx); } | 2062 void SetCx(const Length& cx) { AccessSVGStyle().SetCx(cx); } |
2063 | 2063 |
2064 // cy | 2064 // cy |
2065 void SetCy(const Length& cy) { AccessSVGStyle().SetCy(cy); } | 2065 void SetCy(const Length& cy) { AccessSVGStyle().SetCy(cy); } |
2066 | 2066 |
2067 // d | 2067 // d |
2068 void SetD(PassRefPtr<StylePath> d) { AccessSVGStyle().SetD(std::move(d)); } | 2068 void SetD(RefPtr<StylePath> d) { AccessSVGStyle().SetD(std::move(d)); } |
2069 | 2069 |
2070 // x | 2070 // x |
2071 void SetX(const Length& x) { AccessSVGStyle().SetX(x); } | 2071 void SetX(const Length& x) { AccessSVGStyle().SetX(x); } |
2072 | 2072 |
2073 // y | 2073 // y |
2074 void SetY(const Length& y) { AccessSVGStyle().SetY(y); } | 2074 void SetY(const Length& y) { AccessSVGStyle().SetY(y); } |
2075 | 2075 |
2076 // r | 2076 // r |
2077 void SetR(const Length& r) { AccessSVGStyle().SetR(r); } | 2077 void SetR(const Length& r) { AccessSVGStyle().SetR(r); } |
2078 | 2078 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2112 void SetStopOpacity(float f) { AccessSVGStyle().SetStopOpacity(f); } | 2112 void SetStopOpacity(float f) { AccessSVGStyle().SetStopOpacity(f); } |
2113 | 2113 |
2114 // stroke | 2114 // stroke |
2115 const SVGPaintType& StrokePaintType() const { | 2115 const SVGPaintType& StrokePaintType() const { |
2116 return SvgStyle().StrokePaintType(); | 2116 return SvgStyle().StrokePaintType(); |
2117 } | 2117 } |
2118 Color StrokePaintColor() const { return SvgStyle().StrokePaintColor(); } | 2118 Color StrokePaintColor() const { return SvgStyle().StrokePaintColor(); } |
2119 | 2119 |
2120 // stroke-dasharray | 2120 // stroke-dasharray |
2121 SVGDashArray* StrokeDashArray() const { return SvgStyle().StrokeDashArray(); } | 2121 SVGDashArray* StrokeDashArray() const { return SvgStyle().StrokeDashArray(); } |
2122 void SetStrokeDashArray(PassRefPtr<SVGDashArray> array) { | 2122 void SetStrokeDashArray(RefPtr<SVGDashArray> array) { |
2123 AccessSVGStyle().SetStrokeDashArray(std::move(array)); | 2123 AccessSVGStyle().SetStrokeDashArray(std::move(array)); |
2124 } | 2124 } |
2125 | 2125 |
2126 // stroke-dashoffset | 2126 // stroke-dashoffset |
2127 const Length& StrokeDashOffset() const { | 2127 const Length& StrokeDashOffset() const { |
2128 return SvgStyle().StrokeDashOffset(); | 2128 return SvgStyle().StrokeDashOffset(); |
2129 } | 2129 } |
2130 void SetStrokeDashOffset(const Length& d) { | 2130 void SetStrokeDashOffset(const Length& d) { |
2131 AccessSVGStyle().SetStrokeDashOffset(d); | 2131 AccessSVGStyle().SetStrokeDashOffset(d); |
2132 } | 2132 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2178 return nullptr; | 2178 return nullptr; |
2179 } | 2179 } |
2180 static StyleNonInheritedVariables* InitialNonInheritedVariables() { | 2180 static StyleNonInheritedVariables* InitialNonInheritedVariables() { |
2181 return nullptr; | 2181 return nullptr; |
2182 } | 2182 } |
2183 | 2183 |
2184 StyleInheritedVariables* InheritedVariables() const; | 2184 StyleInheritedVariables* InheritedVariables() const; |
2185 StyleNonInheritedVariables* NonInheritedVariables() const; | 2185 StyleNonInheritedVariables* NonInheritedVariables() const; |
2186 | 2186 |
2187 void SetUnresolvedInheritedVariable(const AtomicString&, | 2187 void SetUnresolvedInheritedVariable(const AtomicString&, |
2188 PassRefPtr<CSSVariableData>); | 2188 RefPtr<CSSVariableData>); |
2189 void SetUnresolvedNonInheritedVariable(const AtomicString&, | 2189 void SetUnresolvedNonInheritedVariable(const AtomicString&, |
2190 PassRefPtr<CSSVariableData>); | 2190 RefPtr<CSSVariableData>); |
2191 | 2191 |
2192 void SetResolvedUnregisteredVariable(const AtomicString&, | 2192 void SetResolvedUnregisteredVariable(const AtomicString&, |
2193 PassRefPtr<CSSVariableData>); | 2193 RefPtr<CSSVariableData>); |
2194 void SetResolvedInheritedVariable(const AtomicString&, | 2194 void SetResolvedInheritedVariable(const AtomicString&, |
2195 PassRefPtr<CSSVariableData>, | 2195 RefPtr<CSSVariableData>, |
2196 const CSSValue*); | 2196 const CSSValue*); |
2197 void SetResolvedNonInheritedVariable(const AtomicString&, | 2197 void SetResolvedNonInheritedVariable(const AtomicString&, |
2198 PassRefPtr<CSSVariableData>, | 2198 RefPtr<CSSVariableData>, |
2199 const CSSValue*); | 2199 const CSSValue*); |
2200 | 2200 |
2201 void RemoveVariable(const AtomicString&, bool is_inherited_property); | 2201 void RemoveVariable(const AtomicString&, bool is_inherited_property); |
2202 | 2202 |
2203 // Handles both inherited and non-inherited variables | 2203 // Handles both inherited and non-inherited variables |
2204 CSSVariableData* GetVariable(const AtomicString&) const; | 2204 CSSVariableData* GetVariable(const AtomicString&) const; |
2205 | 2205 |
2206 CSSVariableData* GetVariable(const AtomicString&, | 2206 CSSVariableData* GetVariable(const AtomicString&, |
2207 bool is_inherited_property) const; | 2207 bool is_inherited_property) const; |
2208 | 2208 |
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3798 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3798 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3799 } | 3799 } |
3800 | 3800 |
3801 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3801 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3802 return PseudoBitsInternal() & kElementPseudoIdMask; | 3802 return PseudoBitsInternal() & kElementPseudoIdMask; |
3803 } | 3803 } |
3804 | 3804 |
3805 } // namespace blink | 3805 } // namespace blink |
3806 | 3806 |
3807 #endif // ComputedStyle_h | 3807 #endif // ComputedStyle_h |
OLD | NEW |