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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParser.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 CSSParser_h 5 #ifndef CSSParser_h
6 #define CSSParser_h 6 #define CSSParser_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/StylePropertySet.h" 10 #include "core/css/StylePropertySet.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static MutableStylePropertySet::SetResult parseValue( 50 static MutableStylePropertySet::SetResult parseValue(
51 MutableStylePropertySet*, 51 MutableStylePropertySet*,
52 CSSPropertyID unresolvedProperty, 52 CSSPropertyID unresolvedProperty,
53 const String&, 53 const String&,
54 bool important, 54 bool important,
55 StyleSheetContents*); 55 StyleSheetContents*);
56 56
57 static MutableStylePropertySet::SetResult parseValueForCustomProperty( 57 static MutableStylePropertySet::SetResult parseValueForCustomProperty(
58 MutableStylePropertySet*, 58 MutableStylePropertySet*,
59 const AtomicString& propertyName, 59 const AtomicString& propertyName,
60 const PropertyRegistry*,
60 const String& value, 61 const String& value,
61 bool important, 62 bool important,
62 StyleSheetContents*, 63 StyleSheetContents*,
63 bool isAnimationTainted); 64 bool isAnimationTainted);
64 static ImmutableStylePropertySet* parseCustomPropertySet(CSSParserTokenRange); 65 static ImmutableStylePropertySet* parseCustomPropertySet(CSSParserTokenRange);
65 66
66 // This is for non-shorthands only 67 // This is for non-shorthands only
67 static const CSSValue* parseSingleValue( 68 static const CSSValue* parseSingleValue(
68 CSSPropertyID, 69 CSSPropertyID,
69 const String&, 70 const String&,
(...skipping 30 matching lines...) Expand all
100 MutableStylePropertySet*, 101 MutableStylePropertySet*,
101 CSSPropertyID unresolvedProperty, 102 CSSPropertyID unresolvedProperty,
102 const String&, 103 const String&,
103 bool important, 104 bool important,
104 const CSSParserContext&); 105 const CSSParserContext&);
105 }; 106 };
106 107
107 } // namespace blink 108 } // namespace blink
108 109
109 #endif // CSSParser_h 110 #endif // CSSParser_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StylePropertySet.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698