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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSImageValue.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 m_initiatorName.isEmpty() 57 m_initiatorName.isEmpty()
58 ? FetchInitiatorTypeNames::css 58 ? FetchInitiatorTypeNames::css
59 : m_initiatorName); 59 : m_initiatorName);
60 request.mutableResourceRequest().setHTTPReferrer( 60 request.mutableResourceRequest().setHTTPReferrer(
61 SecurityPolicy::generateReferrer(m_referrer.referrerPolicy, 61 SecurityPolicy::generateReferrer(m_referrer.referrerPolicy,
62 request.url(), m_referrer.referrer)); 62 request.url(), m_referrer.referrer));
63 63
64 if (crossOrigin != CrossOriginAttributeNotSet) 64 if (crossOrigin != CrossOriginAttributeNotSet)
65 request.setCrossOriginAccessControl(document.getSecurityOrigin(), 65 request.setCrossOriginAccessControl(document.getSecurityOrigin(),
66 crossOrigin); 66 crossOrigin);
67 if (document.settings() && document.settings()->fetchImagePlaceholders()) 67 if (document.settings() && document.settings()->getFetchImagePlaceholders())
68 request.setAllowImagePlaceholder(); 68 request.setAllowImagePlaceholder();
69 69
70 if (ImageResourceContent* cachedImage = 70 if (ImageResourceContent* cachedImage =
71 ImageResourceContent::fetch(request, document.fetcher())) 71 ImageResourceContent::fetch(request, document.fetcher()))
72 m_cachedImage = 72 m_cachedImage =
73 StyleFetchedImage::create(cachedImage, document, request.url()); 73 StyleFetchedImage::create(cachedImage, document, request.url());
74 else 74 else
75 m_cachedImage = StyleInvalidImage::create(url()); 75 m_cachedImage = StyleInvalidImage::create(url());
76 } 76 }
77 77
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void CSSImageValue::reResolveURL(const Document& document) const { 121 void CSSImageValue::reResolveURL(const Document& document) const {
122 KURL url = document.completeURL(m_relativeURL); 122 KURL url = document.completeURL(m_relativeURL);
123 AtomicString urlString(url.getString()); 123 AtomicString urlString(url.getString());
124 if (urlString == m_absoluteURL) 124 if (urlString == m_absoluteURL)
125 return; 125 return;
126 m_absoluteURL = urlString; 126 m_absoluteURL = urlString;
127 m_cachedImage.clear(); 127 m_cachedImage.clear();
128 } 128 }
129 129
130 } // namespace blink 130 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageSetValue.cpp ('k') | third_party/WebKit/Source/core/css/FontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698