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

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

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle); 74 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle);
75 75
76 // CSSOM functions. Don't make these public. 76 // CSSOM functions. Don't make these public.
77 virtual unsigned length() const override; 77 virtual unsigned length() const override;
78 virtual String item(unsigned index) const override; 78 virtual String item(unsigned index) const override;
79 PassRefPtr<RenderStyle> computeRenderStyle(CSSPropertyID) const; 79 PassRefPtr<RenderStyle> computeRenderStyle(CSSPropertyID) const;
80 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) override; 80 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) override;
81 virtual String getPropertyValue(const String& propertyName) override; 81 virtual String getPropertyValue(const String& propertyName) override;
82 virtual String getPropertyShorthand(const String& propertyName) override; 82 virtual String getPropertyShorthand(const String& propertyName) override;
83 virtual bool isPropertyImplicit(const String& propertyName) override; 83 virtual bool isPropertyImplicit(const String& propertyName) override;
84 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, Ex ceptionState&) override;
85 virtual String removeProperty(const String& propertyName, ExceptionState&) o verride; 85 virtual String removeProperty(const String& propertyName, ExceptionState&) o verride;
86 virtual String cssText() const override; 86 virtual String cssText() const override;
87 virtual void setCSSText(const String&, ExceptionState&) override; 87 virtual void setCSSText(const String&, ExceptionState&) override;
88 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) over ride; 88 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) over ride;
89 virtual String getPropertyValueInternal(CSSPropertyID) override; 89 virtual String getPropertyValueInternal(CSSPropertyID) override;
90 virtual void setPropertyInternal(CSSPropertyID, const String& value, Excepti onState&) override; 90 virtual void setPropertyInternal(CSSPropertyID, const String& value, Excepti onState&) override;
91 91
92 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const overri de; 92 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const overri de;
93 93
94 PassRefPtr<CSSValue> valueForShadowData(const ShadowData&, const RenderStyle &, bool useSpread) const; 94 PassRefPtr<CSSValue> valueForShadowData(const ShadowData&, const RenderStyle &, bool useSpread) const;
95 PassRefPtr<CSSValue> valueForShadowList(const ShadowList*, const RenderStyle &, bool useSpread) const; 95 PassRefPtr<CSSValue> valueForShadowList(const ShadowList*, const RenderStyle &, bool useSpread) const;
96 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(const RenderStyle&, c onst StyleColor&) const; 96 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(const RenderStyle&, c onst StyleColor&) const;
97 97
98 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle&) const; 98 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle&) const;
99 99
100 PassRefPtr<CSSValueList> valuesForShorthandProperty(const StylePropertyShort hand&) const; 100 PassRefPtr<CSSValueList> valuesForShorthandProperty(const StylePropertyShort hand&) const;
101 PassRefPtr<CSSValueList> valuesForSidesShorthand(const StylePropertyShorthan d&) const; 101 PassRefPtr<CSSValueList> valuesForSidesShorthand(const StylePropertyShorthan d&) const;
102 PassRefPtr<CSSValueList> valuesForBackgroundShorthand() const; 102 PassRefPtr<CSSValueList> valuesForBackgroundShorthand() const;
103 103
104 RefPtr<Node> m_node; 104 RefPtr<Node> m_node;
105 bool m_allowVisitedStyle; 105 bool m_allowVisitedStyle;
106 #if !ENABLE(OILPAN) 106 #if !ENABLE(OILPAN)
107 unsigned m_refCount; 107 unsigned m_refCount;
108 #endif 108 #endif
109 }; 109 };
110 110
111 } // namespace blink 111 } // namespace blink
112 112
113 #endif // SKY_ENGINE_CORE_CSS_CSSCOMPUTEDSTYLEDECLARATION_H_ 113 #endif // SKY_ENGINE_CORE_CSS_CSSCOMPUTEDSTYLEDECLARATION_H_
OLDNEW
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698