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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLScriptElement.cpp

Issue 2824583002: Implement <script nomodule> (Closed)
Patch Set: Move script_type declaration 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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights
6 * reserved. 6 * 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 String HTMLScriptElement::TypeAttributeValue() const { 147 String HTMLScriptElement::TypeAttributeValue() const {
148 return getAttribute(typeAttr).GetString(); 148 return getAttribute(typeAttr).GetString();
149 } 149 }
150 150
151 String HTMLScriptElement::LanguageAttributeValue() const { 151 String HTMLScriptElement::LanguageAttributeValue() const {
152 return getAttribute(languageAttr).GetString(); 152 return getAttribute(languageAttr).GetString();
153 } 153 }
154 154
155 bool HTMLScriptElement::NomoduleAttributeValue() const {
156 return FastHasAttribute(nomoduleAttr);
157 }
158
155 String HTMLScriptElement::ForAttributeValue() const { 159 String HTMLScriptElement::ForAttributeValue() const {
156 return getAttribute(forAttr).GetString(); 160 return getAttribute(forAttr).GetString();
157 } 161 }
158 162
159 String HTMLScriptElement::EventAttributeValue() const { 163 String HTMLScriptElement::EventAttributeValue() const {
160 return getAttribute(eventAttr).GetString(); 164 return getAttribute(eventAttr).GetString();
161 } 165 }
162 166
163 String HTMLScriptElement::CrossOriginAttributeValue() const { 167 String HTMLScriptElement::CrossOriginAttributeValue() const {
164 return getAttribute(crossoriginAttr); 168 return getAttribute(crossoriginAttr);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 return new HTMLScriptElement(GetDocument(), false, loader_->AlreadyStarted(), 239 return new HTMLScriptElement(GetDocument(), false, loader_->AlreadyStarted(),
236 false); 240 false);
237 } 241 }
238 242
239 DEFINE_TRACE(HTMLScriptElement) { 243 DEFINE_TRACE(HTMLScriptElement) {
240 HTMLElement::Trace(visitor); 244 HTMLElement::Trace(visitor);
241 ScriptElementBase::Trace(visitor); 245 ScriptElementBase::Trace(visitor);
242 } 246 }
243 247
244 } // namespace blink 248 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLScriptElement.h ('k') | third_party/WebKit/Source/core/html/HTMLScriptElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698