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

Side by Side Diff: sky/engine/core/css/CSSStyleDeclaration.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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@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 Library General Public 6 * modify it under the terms of the GNU Library 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual void ref() = 0; 44 virtual void ref() = 0;
45 virtual void deref() = 0; 45 virtual void deref() = 0;
46 #endif 46 #endif
47 47
48 virtual String cssText() const = 0; 48 virtual String cssText() const = 0;
49 virtual void setCSSText(const String&, ExceptionState&) = 0; 49 virtual void setCSSText(const String&, ExceptionState&) = 0;
50 virtual unsigned length() const = 0; 50 virtual unsigned length() const = 0;
51 virtual String item(unsigned index) const = 0; 51 virtual String item(unsigned index) const = 0;
52 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) = 0; 52 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) = 0;
53 virtual String getPropertyValue(const String& propertyName) = 0; 53 virtual String getPropertyValue(const String& propertyName) = 0;
54 virtual String getPropertyPriority(const String& propertyName) = 0;
55 virtual String getPropertyShorthand(const String& propertyName) = 0; 54 virtual String getPropertyShorthand(const String& propertyName) = 0;
56 virtual bool isPropertyImplicit(const String& propertyName) = 0; 55 virtual bool isPropertyImplicit(const String& propertyName) = 0;
57 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionState&) = 0; 56 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionState&) = 0;
58 virtual String removeProperty(const String& propertyName, ExceptionState&) = 0; 57 virtual String removeProperty(const String& propertyName, ExceptionState&) = 0;
59 58
60 // CSSPropertyID versions of the CSSOM functions to support bindings and edi ting. 59 // CSSPropertyID versions of the CSSOM functions to support bindings and edi ting.
61 // Use the non-virtual methods in the concrete subclasses when possible. 60 // Use the non-virtual methods in the concrete subclasses when possible.
62 // The CSSValue returned by this function should not be exposed to the web a s it may be used by multiple documents at the same time. 61 // The CSSValue returned by this function should not be exposed to the web a s it may be used by multiple documents at the same time.
63 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0; 62 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0;
64 virtual String getPropertyValueInternal(CSSPropertyID) = 0; 63 virtual String getPropertyValueInternal(CSSPropertyID) = 0;
65 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im portant, ExceptionState&) = 0; 64 virtual void setPropertyInternal(CSSPropertyID, const String& value, Excepti onState&) = 0;
66 65
67 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const = 0; 66 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const = 0;
68 67
69 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0; 68 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0;
70 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } 69 virtual CSSStyleSheet* parentStyleSheet() const { return 0; }
71 70
72 protected: 71 protected:
73 CSSStyleDeclaration() 72 CSSStyleDeclaration()
74 { 73 {
75 } 74 }
76 }; 75 };
77 76
78 } // namespace blink 77 } // namespace blink
79 78
80 #endif // SKY_ENGINE_CORE_CSS_CSSSTYLEDECLARATION_H_ 79 #endif // SKY_ENGINE_CORE_CSS_CSSSTYLEDECLARATION_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSPropertySourceData.cpp ('k') | sky/engine/core/css/CSSStyleDeclaration.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698