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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleElement.cpp

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: 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) 2006, 2007 Rob Buis 2 * Copyright (C) 2006, 2007 Rob Buis
3 * Copyright (C) 2008 Apple, Inc. All rights reserved. 3 * Copyright (C) 2008 Apple, Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 21 matching lines...) Expand all
32 #include "core/frame/LocalFrame.h" 32 #include "core/frame/LocalFrame.h"
33 #include "core/frame/csp/ContentSecurityPolicy.h" 33 #include "core/frame/csp/ContentSecurityPolicy.h"
34 #include "core/html/HTMLStyleElement.h" 34 #include "core/html/HTMLStyleElement.h"
35 #include "core/svg/SVGStyleElement.h" 35 #include "core/svg/SVGStyleElement.h"
36 #include "platform/instrumentation/tracing/TraceEvent.h" 36 #include "platform/instrumentation/tracing/TraceEvent.h"
37 #include "wtf/text/StringBuilder.h" 37 #include "wtf/text/StringBuilder.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 static bool IsCSS(const Element& element, const AtomicString& type) { 41 static bool IsCSS(const Element& element, const AtomicString& type) {
42 return type.IsEmpty() || 42 return type.IsEmpty() || (element.IsHTMLElement()
43 (element.IsHTMLElement() ? EqualIgnoringCase(type, "text/css") 43 ? DeprecatedEqualIgnoringCase(type, "text/css")
44 : (type == "text/css")); 44 : (type == "text/css"));
45 } 45 }
46 46
47 StyleElement::StyleElement(Document* document, bool created_by_parser) 47 StyleElement::StyleElement(Document* document, bool created_by_parser)
48 : created_by_parser_(created_by_parser), 48 : created_by_parser_(created_by_parser),
49 loading_(false), 49 loading_(false),
50 registered_as_candidate_(false), 50 registered_as_candidate_(false),
51 start_position_(TextPosition::BelowRangePosition()) { 51 start_position_(TextPosition::BelowRangePosition()) {
52 if (created_by_parser && document && 52 if (created_by_parser && document &&
53 document->GetScriptableDocumentParser() && !document->IsInDocumentWrite()) 53 document->GetScriptableDocumentParser() && !document->IsInDocumentWrite())
54 start_position_ = 54 start_position_ =
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 void StyleElement::StartLoadingDynamicSheet(Document& document) { 198 void StyleElement::StartLoadingDynamicSheet(Document& document) {
199 document.GetStyleEngine().AddPendingSheet(style_engine_context_); 199 document.GetStyleEngine().AddPendingSheet(style_engine_context_);
200 } 200 }
201 201
202 DEFINE_TRACE(StyleElement) { 202 DEFINE_TRACE(StyleElement) {
203 visitor->Trace(sheet_); 203 visitor->Trace(sheet_);
204 } 204 }
205 205
206 } // namespace blink 206 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698