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

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

Issue 2824583002: Implement <script nomodule> (Closed)
Patch Set: Fix a couple of tests I missed 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 144 }
145 145
146 String HTMLScriptElement::TypeAttributeValue() const { 146 String HTMLScriptElement::TypeAttributeValue() const {
147 return getAttribute(typeAttr).GetString(); 147 return getAttribute(typeAttr).GetString();
148 } 148 }
149 149
150 String HTMLScriptElement::LanguageAttributeValue() const { 150 String HTMLScriptElement::LanguageAttributeValue() const {
151 return getAttribute(languageAttr).GetString(); 151 return getAttribute(languageAttr).GetString();
152 } 152 }
153 153
154 bool HTMLScriptElement::NomoduleAttributeValue() const {
155 return FastHasAttribute(nomoduleAttr);
156 }
157
154 String HTMLScriptElement::ForAttributeValue() const { 158 String HTMLScriptElement::ForAttributeValue() const {
155 return getAttribute(forAttr).GetString(); 159 return getAttribute(forAttr).GetString();
156 } 160 }
157 161
158 String HTMLScriptElement::EventAttributeValue() const { 162 String HTMLScriptElement::EventAttributeValue() const {
159 return getAttribute(eventAttr).GetString(); 163 return getAttribute(eventAttr).GetString();
160 } 164 }
161 165
162 String HTMLScriptElement::CrossOriginAttributeValue() const { 166 String HTMLScriptElement::CrossOriginAttributeValue() const {
163 return getAttribute(crossoriginAttr); 167 return getAttribute(crossoriginAttr);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 return new HTMLScriptElement(GetDocument(), false, loader_->AlreadyStarted(), 238 return new HTMLScriptElement(GetDocument(), false, loader_->AlreadyStarted(),
235 false); 239 false);
236 } 240 }
237 241
238 DEFINE_TRACE(HTMLScriptElement) { 242 DEFINE_TRACE(HTMLScriptElement) {
239 HTMLElement::Trace(visitor); 243 HTMLElement::Trace(visitor);
240 ScriptElementBase::Trace(visitor); 244 ScriptElementBase::Trace(visitor);
241 } 245 }
242 246
243 } // namespace blink 247 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698