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

Side by Side Diff: Source/core/css/CSSStyleDeclaration.h

Issue 1288623005: Make cssFloat an enumerable property of CSSStyleDeclaration (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make cssFloat an enumerable property of CSSStyleDeclaration Created 5 years, 4 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 | « Source/core/css/CSSComputedStyleDeclaration.h ('k') | Source/core/css/CSSStyleDeclaration.idl » ('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 * (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 29 matching lines...) Expand all
40 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED_WILL_BE_R EMOVED(CSSStyleDeclaration); 40 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED_WILL_BE_R EMOVED(CSSStyleDeclaration);
41 public: 41 public:
42 virtual ~CSSStyleDeclaration() { } 42 virtual ~CSSStyleDeclaration() { }
43 43
44 #if !ENABLE(OILPAN) 44 #if !ENABLE(OILPAN)
45 virtual void ref() = 0; 45 virtual void ref() = 0;
46 virtual void deref() = 0; 46 virtual void deref() = 0;
47 #endif 47 #endif
48 48
49 virtual CSSRule* parentRule() const = 0; 49 virtual CSSRule* parentRule() const = 0;
50 String cssFloat()
51 {
52 return getPropertyValueInternal(CSSPropertyFloat);
53 }
54 void setCSSFloat(const String& value, ExceptionState& exceptionState)
55 {
56 setPropertyInternal(CSSPropertyFloat, value, false, exceptionState);
57 }
50 virtual String cssText() const = 0; 58 virtual String cssText() const = 0;
51 virtual void setCSSText(const String&, ExceptionState&) = 0; 59 virtual void setCSSText(const String&, ExceptionState&) = 0;
52 virtual unsigned length() const = 0; 60 virtual unsigned length() const = 0;
53 virtual String item(unsigned index) const = 0; 61 virtual String item(unsigned index) const = 0;
54 virtual String getPropertyValue(const String& propertyName) = 0; 62 virtual String getPropertyValue(const String& propertyName) = 0;
55 virtual String getPropertyPriority(const String& propertyName) = 0; 63 virtual String getPropertyPriority(const String& propertyName) = 0;
56 virtual String getPropertyShorthand(const String& propertyName) = 0; 64 virtual String getPropertyShorthand(const String& propertyName) = 0;
57 virtual bool isPropertyImplicit(const String& propertyName) = 0; 65 virtual bool isPropertyImplicit(const String& propertyName) = 0;
58 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionState&) = 0; 66 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionState&) = 0;
59 virtual String removeProperty(const String& propertyName, ExceptionState&) = 0; 67 virtual String removeProperty(const String& propertyName, ExceptionState&) = 0;
(...skipping 10 matching lines...) Expand all
70 78
71 DEFINE_INLINE_VIRTUAL_TRACE() { } 79 DEFINE_INLINE_VIRTUAL_TRACE() { }
72 80
73 protected: 81 protected:
74 CSSStyleDeclaration() { } 82 CSSStyleDeclaration() { }
75 }; 83 };
76 84
77 } // namespace blink 85 } // namespace blink
78 86
79 #endif // CSSStyleDeclaration_h 87 #endif // CSSStyleDeclaration_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.h ('k') | Source/core/css/CSSStyleDeclaration.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698