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

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

Issue 216803002: Implement all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 Apple Computer, Inc. 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool isSetFromShorthand() const { return m_metadata.m_isSetFromShorthand; }; 72 bool isSetFromShorthand() const { return m_metadata.m_isSetFromShorthand; };
73 CSSPropertyID shorthandID() const { return m_metadata.shorthandID(); }; 73 CSSPropertyID shorthandID() const { return m_metadata.shorthandID(); };
74 bool isImportant() const { return m_metadata.m_important; } 74 bool isImportant() const { return m_metadata.m_important; }
75 75
76 CSSValue* value() const { return m_value.get(); } 76 CSSValue* value() const { return m_value.get(); }
77 77
78 void wrapValueInCommaSeparatedList(); 78 void wrapValueInCommaSeparatedList();
79 79
80 static CSSPropertyID resolveDirectionAwareProperty(CSSPropertyID, TextDirect ion, WritingMode); 80 static CSSPropertyID resolveDirectionAwareProperty(CSSPropertyID, TextDirect ion, WritingMode);
81 static bool isInheritedProperty(CSSPropertyID); 81 static bool isInheritedProperty(CSSPropertyID);
82 static bool isAffectedByAllProperty(CSSPropertyID);
82 83
83 const StylePropertyMetadata& metadata() const { return m_metadata; } 84 const StylePropertyMetadata& metadata() const { return m_metadata; }
84 85
85 void trace(Visitor* visitor) { visitor->trace(m_value); } 86 void trace(Visitor* visitor) { visitor->trace(m_value); }
86 87
87 private: 88 private:
88 StylePropertyMetadata m_metadata; 89 StylePropertyMetadata m_metadata;
89 RefPtrWillBeMember<CSSValue> m_value; 90 RefPtrWillBeMember<CSSValue> m_value;
90 }; 91 };
91 92
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 187 }
187 ASSERT(propertyId != CSSPropertyInvalid); 188 ASSERT(propertyId != CSSPropertyInvalid);
188 return propertyId; 189 return propertyId;
189 } 190 }
190 191
191 } // namespace WebCore 192 } // namespace WebCore
192 193
193 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(WebCore::CSSProperty); 194 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(WebCore::CSSProperty);
194 195
195 #endif // CSSProperty_h 196 #endif // CSSProperty_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698