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

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

Issue 1740483004: Rename enums/functions that collide in chromium style in core/html/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-5
Patch Set: get-names-6: . Created 4 years, 10 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/
4 * Copyright (C) 2010 Google Inc. All Rights Reserved. 4 * Copyright (C) 2010 Google Inc. All Rights Reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 269 }
270 270
271 template<typename NameType> 271 template<typename NameType>
272 void processLinkAttribute(const NameType& attributeName, const String& attri buteValue) 272 void processLinkAttribute(const NameType& attributeName, const String& attri buteValue)
273 { 273 {
274 // FIXME - Don't set rel/media/crossorigin multiple times. 274 // FIXME - Don't set rel/media/crossorigin multiple times.
275 if (match(attributeName, hrefAttr)) { 275 if (match(attributeName, hrefAttr)) {
276 setUrlToLoad(attributeValue, DisallowURLReplacement); 276 setUrlToLoad(attributeValue, DisallowURLReplacement);
277 } else if (match(attributeName, relAttr)) { 277 } else if (match(attributeName, relAttr)) {
278 LinkRelAttribute rel(attributeValue); 278 LinkRelAttribute rel(attributeValue);
279 m_linkIsStyleSheet = rel.isStyleSheet() && !rel.isAlternate() && rel .iconType() == InvalidIcon && !rel.isDNSPrefetch(); 279 m_linkIsStyleSheet = rel.isStyleSheet() && !rel.isAlternate() && rel .getIconType() == InvalidIcon && !rel.isDNSPrefetch();
280 m_linkIsPreconnect = rel.isPreconnect(); 280 m_linkIsPreconnect = rel.isPreconnect();
281 m_linkIsPreload = rel.isLinkPreload(); 281 m_linkIsPreload = rel.isLinkPreload();
282 m_linkIsImport = rel.isImport(); 282 m_linkIsImport = rel.isImport();
283 } else if (match(attributeName, mediaAttr)) { 283 } else if (match(attributeName, mediaAttr)) {
284 m_matchedMediaAttribute = mediaAttributeMatches(*m_mediaValues, attr ibuteValue); 284 m_matchedMediaAttribute = mediaAttributeMatches(*m_mediaValues, attr ibuteValue);
285 } else if (match(attributeName, crossoriginAttr)) { 285 } else if (match(attributeName, crossoriginAttr)) {
286 setCrossOrigin(attributeValue); 286 setCrossOrigin(attributeValue);
287 } else if (match(attributeName, asAttr)) { 287 } else if (match(attributeName, asAttr)) {
288 m_asAttributeValue = attributeValue; 288 m_asAttributeValue = attributeValue;
289 } else if (match(attributeName, typeAttr)) { 289 } else if (match(attributeName, typeAttr)) {
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 ASSERT(isMainThread()); 691 ASSERT(isMainThread());
692 ASSERT(document); 692 ASSERT(document);
693 doHtmlPreloadScanning = !document->settings() || document->settings()->doHtm lPreloadScanning(); 693 doHtmlPreloadScanning = !document->settings() || document->settings()->doHtm lPreloadScanning();
694 defaultViewportMinWidth = document->viewportDefaultMinWidth(); 694 defaultViewportMinWidth = document->viewportDefaultMinWidth();
695 viewportMetaZeroValuesQuirk = document->settings() && document->settings()-> viewportMetaZeroValuesQuirk(); 695 viewportMetaZeroValuesQuirk = document->settings() && document->settings()-> viewportMetaZeroValuesQuirk();
696 viewportMetaEnabled = document->settings() && document->settings()->viewport MetaEnabled(); 696 viewportMetaEnabled = document->settings() && document->settings()->viewport MetaEnabled();
697 referrerPolicy = ReferrerPolicyDefault; 697 referrerPolicy = ReferrerPolicyDefault;
698 } 698 }
699 699
700 } // namespace blink 700 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698