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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserImpl.h

Issue 2607403002: Disallow setting invalid values for registered properties via CSSOM (Closed)
Patch Set: fix comments Created 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSParserImpl_h 5 #ifndef CSSParserImpl_h
6 #define CSSParserImpl_h 6 #define CSSParserImpl_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/css/CSSProperty.h" 9 #include "core/css/CSSProperty.h"
10 #include "core/css/CSSPropertySourceData.h" 10 #include "core/css/CSSPropertySourceData.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 }; 59 };
60 60
61 static MutableStylePropertySet::SetResult parseValue(MutableStylePropertySet*, 61 static MutableStylePropertySet::SetResult parseValue(MutableStylePropertySet*,
62 CSSPropertyID, 62 CSSPropertyID,
63 const String&, 63 const String&,
64 bool important, 64 bool important,
65 const CSSParserContext&); 65 const CSSParserContext&);
66 static MutableStylePropertySet::SetResult parseVariableValue( 66 static MutableStylePropertySet::SetResult parseVariableValue(
67 MutableStylePropertySet*, 67 MutableStylePropertySet*,
68 const AtomicString& propertyName, 68 const AtomicString& propertyName,
69 const PropertyRegistry*,
69 const String&, 70 const String&,
70 bool important, 71 bool important,
71 const CSSParserContext&, 72 const CSSParserContext&,
72 bool isAnimationTainted); 73 bool isAnimationTainted);
73 static ImmutableStylePropertySet* parseInlineStyleDeclaration(const String&, 74 static ImmutableStylePropertySet* parseInlineStyleDeclaration(const String&,
74 Element*); 75 Element*);
75 static bool parseDeclarationList(MutableStylePropertySet*, 76 static bool parseDeclarationList(MutableStylePropertySet*,
76 const String&, 77 const String&,
77 const CSSParserContext&); 78 const CSSParserContext&);
78 static StyleRuleBase* parseRule(const String&, 79 static StyleRuleBase* parseRule(const String&,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 163
163 // For the inspector 164 // For the inspector
164 CSSParserObserverWrapper* m_observerWrapper; 165 CSSParserObserverWrapper* m_observerWrapper;
165 166
166 Member<CSSLazyParsingState> m_lazyState; 167 Member<CSSLazyParsingState> m_lazyState;
167 }; 168 };
168 169
169 } // namespace blink 170 } // namespace blink
170 171
171 #endif // CSSParserImpl_h 172 #endif // CSSParserImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSParser.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698