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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 } 853 }
854 default: { return; } 854 default: { return; }
855 } 855 }
856 } 856 }
857 857
858 template <typename Token> 858 template <typename Token>
859 void TokenPreloadScanner::updatePredictedBaseURL(const Token& token) { 859 void TokenPreloadScanner::updatePredictedBaseURL(const Token& token) {
860 ASSERT(m_predictedBaseElementURL.isEmpty()); 860 ASSERT(m_predictedBaseElementURL.isEmpty());
861 if (const typename Token::Attribute* hrefAttribute = 861 if (const typename Token::Attribute* hrefAttribute =
862 token.getAttributeItem(hrefAttr)) { 862 token.getAttributeItem(hrefAttr)) {
863 KURL url(m_documentURL, stripLeadingAndTrailingHTMLSpaces( 863 KURL url(m_documentURL,
864 hrefAttribute->value8BitIfNecessary())); 864 stripLeadingAndTrailingHTMLSpaces(
865 hrefAttribute->value8BitIfNecessary()));
865 m_predictedBaseElementURL = 866 m_predictedBaseElementURL =
866 url.isValid() && !url.protocolIsData() ? url.copy() : KURL(); 867 url.isValid() && !url.protocolIsData() ? url.copy() : KURL();
867 } 868 }
868 } 869 }
869 870
870 HTMLPreloadScanner::HTMLPreloadScanner( 871 HTMLPreloadScanner::HTMLPreloadScanner(
871 const HTMLParserOptions& options, 872 const HTMLParserOptions& options,
872 const KURL& documentURL, 873 const KURL& documentURL,
873 std::unique_ptr<CachedDocumentParameters> documentParameters, 874 std::unique_ptr<CachedDocumentParameters> documentParameters,
874 const MediaValuesCached::MediaValuesCachedData& mediaValuesCachedData) 875 const MediaValuesCached::MediaValuesCachedData& mediaValuesCachedData)
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 defaultViewportMinWidth = document->viewportDefaultMinWidth(); 927 defaultViewportMinWidth = document->viewportDefaultMinWidth();
927 viewportMetaZeroValuesQuirk = 928 viewportMetaZeroValuesQuirk =
928 document->settings() && 929 document->settings() &&
929 document->settings()->getViewportMetaZeroValuesQuirk(); 930 document->settings()->getViewportMetaZeroValuesQuirk();
930 viewportMetaEnabled = 931 viewportMetaEnabled =
931 document->settings() && document->settings()->getViewportMetaEnabled(); 932 document->settings() && document->settings()->getViewportMetaEnabled();
932 referrerPolicy = document->getReferrerPolicy(); 933 referrerPolicy = document->getReferrerPolicy();
933 } 934 }
934 935
935 } // namespace blink 936 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698