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/StylePropertySet.h

Issue 22917005: New parser mode for CSSOM @viewport descriptors. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 , m_isMutable(true) 129 , m_isMutable(true)
130 , m_arraySize(0) 130 , m_arraySize(0)
131 { } 131 { }
132 132
133 StylePropertySet(CSSParserMode cssParserMode, unsigned immutableArraySize) 133 StylePropertySet(CSSParserMode cssParserMode, unsigned immutableArraySize)
134 : m_cssParserMode(cssParserMode) 134 : m_cssParserMode(cssParserMode)
135 , m_isMutable(false) 135 , m_isMutable(false)
136 , m_arraySize(immutableArraySize) 136 , m_arraySize(immutableArraySize)
137 { } 137 { }
138 138
139 unsigned m_cssParserMode : 2; 139 unsigned m_cssParserMode : 3;
140 mutable unsigned m_isMutable : 1; 140 mutable unsigned m_isMutable : 1;
141 unsigned m_arraySize : 29; 141 unsigned m_arraySize : 28;
eseidel 2013/09/10 16:33:58 Do we have a constant somewhere to help make sure
rune 2013/09/12 13:05:01 Done.
142 142
143 friend class PropertySetCSSStyleDeclaration; 143 friend class PropertySetCSSStyleDeclaration;
144 }; 144 };
145 145
146 class ImmutableStylePropertySet : public StylePropertySet { 146 class ImmutableStylePropertySet : public StylePropertySet {
147 public: 147 public:
148 ~ImmutableStylePropertySet(); 148 ~ImmutableStylePropertySet();
149 static PassRefPtr<ImmutableStylePropertySet> create(const CSSProperty* prope rties, unsigned count, CSSParserMode); 149 static PassRefPtr<ImmutableStylePropertySet> create(const CSSProperty* prope rties, unsigned count, CSSParserMode);
150 150
151 unsigned propertyCount() const { return m_arraySize; } 151 unsigned propertyCount() const { return m_arraySize; }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 if (m_isMutable) 257 if (m_isMutable)
258 delete static_cast<MutableStylePropertySet*>(this); 258 delete static_cast<MutableStylePropertySet*>(this);
259 else 259 else
260 delete static_cast<ImmutableStylePropertySet*>(this); 260 delete static_cast<ImmutableStylePropertySet*>(this);
261 } 261 }
262 262
263 } // namespace WebCore 263 } // namespace WebCore
264 264
265 #endif // StylePropertySet_h 265 #endif // StylePropertySet_h
OLDNEW
« Source/core/css/CSSParser-in.cpp ('K') | « Source/core/css/CSSParserMode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698