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

Side by Side Diff: sky/engine/core/css/CSSComputedStyleDeclaration.h

Issue 860423004: Remove css !important (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public 6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return adoptRef(new CSSComputedStyleDeclaration(node, allowVisitedStyle, pseudoElementName)); 54 return adoptRef(new CSSComputedStyleDeclaration(node, allowVisitedStyle, pseudoElementName));
55 } 55 }
56 virtual ~CSSComputedStyleDeclaration(); 56 virtual ~CSSComputedStyleDeclaration();
57 57
58 #if !ENABLE(OILPAN) 58 #if !ENABLE(OILPAN)
59 virtual void ref() override; 59 virtual void ref() override;
60 virtual void deref() override; 60 virtual void deref() override;
61 #endif 61 #endif
62 62
63 String getPropertyValue(CSSPropertyID) const; 63 String getPropertyValue(CSSPropertyID) const;
64 bool getPropertyPriority(CSSPropertyID) const;
65 64
66 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const override; 65 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const override;
67 66
68 PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout = Upda teLayout) const; 67 PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout = Upda teLayout) const;
69 PassRefPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() const; 68 PassRefPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() const;
70 FixedPitchFontType fixedPitchFontType() const; 69 FixedPitchFontType fixedPitchFontType() const;
71 70
72 PassRefPtr<MutableStylePropertySet> copyPropertiesInSet(const Vector<CSSProp ertyID>&) const; 71 PassRefPtr<MutableStylePropertySet> copyPropertiesInSet(const Vector<CSSProp ertyID>&) const;
73 72
74 private: 73 private:
75 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle, const String&); 74 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle, const String&);
76 75
77 // CSSOM functions. Don't make these public. 76 // CSSOM functions. Don't make these public.
78 virtual unsigned length() const override; 77 virtual unsigned length() const override;
79 virtual String item(unsigned index) const override; 78 virtual String item(unsigned index) const override;
80 PassRefPtr<RenderStyle> computeRenderStyle(CSSPropertyID) const; 79 PassRefPtr<RenderStyle> computeRenderStyle(CSSPropertyID) const;
81 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) override; 80 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) override;
82 virtual String getPropertyValue(const String& propertyName) override; 81 virtual String getPropertyValue(const String& propertyName) override;
83 virtual String getPropertyPriority(const String& propertyName) override;
84 virtual String getPropertyShorthand(const String& propertyName) override; 82 virtual String getPropertyShorthand(const String& propertyName) override;
85 virtual bool isPropertyImplicit(const String& propertyName) override; 83 virtual bool isPropertyImplicit(const String& propertyName) override;
86 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionState&) override; 84 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionState&) override;
87 virtual String removeProperty(const String& propertyName, ExceptionState&) o verride; 85 virtual String removeProperty(const String& propertyName, ExceptionState&) o verride;
88 virtual String cssText() const override; 86 virtual String cssText() const override;
89 virtual void setCSSText(const String&, ExceptionState&) override; 87 virtual void setCSSText(const String&, ExceptionState&) override;
90 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) over ride; 88 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) over ride;
91 virtual String getPropertyValueInternal(CSSPropertyID) override; 89 virtual String getPropertyValueInternal(CSSPropertyID) override;
92 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im portant, ExceptionState&) override; 90 virtual void setPropertyInternal(CSSPropertyID, const String& value, Excepti onState&) override;
93 91
94 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const overri de; 92 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const overri de;
95 93
96 PassRefPtr<CSSValue> valueForShadowData(const ShadowData&, const RenderStyle &, bool useSpread) const; 94 PassRefPtr<CSSValue> valueForShadowData(const ShadowData&, const RenderStyle &, bool useSpread) const;
97 PassRefPtr<CSSValue> valueForShadowList(const ShadowList*, const RenderStyle &, bool useSpread) const; 95 PassRefPtr<CSSValue> valueForShadowList(const ShadowList*, const RenderStyle &, bool useSpread) const;
98 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(const RenderStyle&, c onst StyleColor&) const; 96 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(const RenderStyle&, c onst StyleColor&) const;
99 97
100 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle&) const; 98 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle&) const;
101 99
102 PassRefPtr<CSSValueList> valuesForShorthandProperty(const StylePropertyShort hand&) const; 100 PassRefPtr<CSSValueList> valuesForShorthandProperty(const StylePropertyShort hand&) const;
103 PassRefPtr<CSSValueList> valuesForSidesShorthand(const StylePropertyShorthan d&) const; 101 PassRefPtr<CSSValueList> valuesForSidesShorthand(const StylePropertyShorthan d&) const;
104 PassRefPtr<CSSValueList> valuesForBackgroundShorthand() const; 102 PassRefPtr<CSSValueList> valuesForBackgroundShorthand() const;
105 103
106 RefPtr<Node> m_node; 104 RefPtr<Node> m_node;
107 PseudoId m_pseudoElementSpecifier; 105 PseudoId m_pseudoElementSpecifier;
108 bool m_allowVisitedStyle; 106 bool m_allowVisitedStyle;
109 #if !ENABLE(OILPAN) 107 #if !ENABLE(OILPAN)
110 unsigned m_refCount; 108 unsigned m_refCount;
111 #endif 109 #endif
112 }; 110 };
113 111
114 } // namespace blink 112 } // namespace blink
115 113
116 #endif // SKY_ENGINE_CORE_CSS_CSSCOMPUTEDSTYLEDECLARATION_H_ 114 #endif // SKY_ENGINE_CORE_CSS_CSSCOMPUTEDSTYLEDECLARATION_H_
OLDNEW
« no previous file with comments | « sky/engine/core/animation/css/CSSAnimations.cpp ('k') | sky/engine/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698