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

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

Issue 2769283004: Remove referrer setter from CSSImageValue (Closed)
Patch Set: Created 3 years, 9 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 19 matching lines...) Expand all
30 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" 30 #include "platform/loader/fetch/FetchInitiatorTypeNames.h"
31 #include "platform/loader/fetch/FetchRequest.h" 31 #include "platform/loader/fetch/FetchRequest.h"
32 #include "platform/loader/fetch/ResourceFetcher.h" 32 #include "platform/loader/fetch/ResourceFetcher.h"
33 #include "platform/weborigin/KURL.h" 33 #include "platform/weborigin/KURL.h"
34 #include "platform/weborigin/SecurityPolicy.h" 34 #include "platform/weborigin/SecurityPolicy.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 CSSImageValue::CSSImageValue(const AtomicString& rawValue, 38 CSSImageValue::CSSImageValue(const AtomicString& rawValue,
39 const KURL& url, 39 const KURL& url,
40 const Referrer& referrer,
40 StyleImage* image) 41 StyleImage* image)
41 : CSSValue(ImageClass), 42 : CSSValue(ImageClass),
42 m_relativeURL(rawValue), 43 m_relativeURL(rawValue),
44 m_referrer(referrer),
43 m_absoluteURL(url.getString()), 45 m_absoluteURL(url.getString()),
44 m_cachedImage(image) {} 46 m_cachedImage(image) {}
45 47
46 CSSImageValue::CSSImageValue(const AtomicString& absoluteURL) 48 CSSImageValue::CSSImageValue(const AtomicString& absoluteURL)
47 : CSSValue(ImageClass), 49 : CSSValue(ImageClass),
48 m_relativeURL(absoluteURL), 50 m_relativeURL(absoluteURL),
49 m_absoluteURL(absoluteURL) {} 51 m_absoluteURL(absoluteURL) {}
50 52
51 CSSImageValue::~CSSImageValue() {} 53 CSSImageValue::~CSSImageValue() {}
52 54
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void CSSImageValue::reResolveURL(const Document& document) const { 126 void CSSImageValue::reResolveURL(const Document& document) const {
125 KURL url = document.completeURL(m_relativeURL); 127 KURL url = document.completeURL(m_relativeURL);
126 AtomicString urlString(url.getString()); 128 AtomicString urlString(url.getString());
127 if (urlString == m_absoluteURL) 129 if (urlString == m_absoluteURL)
128 return; 130 return;
129 m_absoluteURL = urlString; 131 m_absoluteURL = urlString;
130 m_cachedImage.clear(); 132 m_cachedImage.clear();
131 } 133 }
132 134
133 } // namespace blink 135 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698