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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 2801243002: More tweaks to <script nonce> hiding. (Closed)
Patch Set: Element. Created 3 years, 8 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 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 ExceptionState&); 195 ExceptionState&);
196 196
197 const AtomicString& GetIdAttribute() const; 197 const AtomicString& GetIdAttribute() const;
198 void SetIdAttribute(const AtomicString&); 198 void SetIdAttribute(const AtomicString&);
199 199
200 const AtomicString& GetNameAttribute() const; 200 const AtomicString& GetNameAttribute() const;
201 const AtomicString& GetClassAttribute() const; 201 const AtomicString& GetClassAttribute() const;
202 202
203 bool ShouldIgnoreAttributeCase() const; 203 bool ShouldIgnoreAttributeCase() const;
204 204
205 const AtomicString& nonce() const;
206 void setNonce(const AtomicString&);
207
205 // Call this to get the value of the id attribute for style resolution 208 // Call this to get the value of the id attribute for style resolution
206 // purposes. The value will already be lowercased if the document is in 209 // purposes. The value will already be lowercased if the document is in
207 // compatibility mode, so this function is not suitable for non-style uses. 210 // compatibility mode, so this function is not suitable for non-style uses.
208 const AtomicString& IdForStyleResolution() const; 211 const AtomicString& IdForStyleResolution() const;
209 212
210 // This getter takes care of synchronizing all attributes before returning the 213 // This getter takes care of synchronizing all attributes before returning the
211 // AttributeCollection. If the Element has no attributes, an empty 214 // AttributeCollection. If the Element has no attributes, an empty
212 // AttributeCollection will be returned. This is not a trivial getter and its 215 // AttributeCollection will be returned. This is not a trivial getter and its
213 // return value should be cached for performance. 216 // return value should be cached for performance.
214 AttributeCollection Attributes() const; 217 AttributeCollection Attributes() const;
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1232 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1230 static T* Create(const QualifiedName&, Document&) 1233 static T* Create(const QualifiedName&, Document&)
1231 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1234 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1232 T* T::Create(const QualifiedName& tagName, Document& document) { \ 1235 T* T::Create(const QualifiedName& tagName, Document& document) { \
1233 return new T(tagName, document); \ 1236 return new T(tagName, document); \
1234 } 1237 }
1235 1238
1236 } // namespace blink 1239 } // namespace blink
1237 1240
1238 #endif // Element_h 1241 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698