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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLTableElement.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 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 Apple Inc. All rights 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 Apple Inc. All rights
8 * reserved. 8 * reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 addHTMLColorToStyle(style, CSSPropertyBorderColor, value); 314 addHTMLColorToStyle(style, CSSPropertyBorderColor, value);
315 } else if (name == bgcolorAttr) { 315 } else if (name == bgcolorAttr) {
316 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); 316 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value);
317 } else if (name == backgroundAttr) { 317 } else if (name == backgroundAttr) {
318 String url = stripLeadingAndTrailingHTMLSpaces(value); 318 String url = stripLeadingAndTrailingHTMLSpaces(value);
319 if (!url.isEmpty()) { 319 if (!url.isEmpty()) {
320 UseCounter::count( 320 UseCounter::count(
321 document(), 321 document(),
322 UseCounter::HTMLTableElementPresentationAttributeBackground); 322 UseCounter::HTMLTableElementPresentationAttributeBackground);
323 CSSImageValue* imageValue = 323 CSSImageValue* imageValue =
324 CSSImageValue::create(url, document().completeURL(url)); 324 CSSImageValue::create(url, document().completeURL(url),
325 imageValue->setReferrer(Referrer(document().outgoingReferrer(), 325 Referrer(document().outgoingReferrer(),
326 document().getReferrerPolicy())); 326 document().getReferrerPolicy()));
327 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, *imageValue)); 327 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, *imageValue));
328 } 328 }
329 } else if (name == valignAttr) { 329 } else if (name == valignAttr) {
330 if (!value.isEmpty()) 330 if (!value.isEmpty())
331 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, 331 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign,
332 value); 332 value);
333 } else if (name == cellspacingAttr) { 333 } else if (name == cellspacingAttr) {
334 if (!value.isEmpty()) { 334 if (!value.isEmpty()) {
335 addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value, 335 addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value,
336 DontAllowPercentageValues); 336 DontAllowPercentageValues);
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 const AtomicString& HTMLTableElement::summary() const { 610 const AtomicString& HTMLTableElement::summary() const {
611 return getAttribute(summaryAttr); 611 return getAttribute(summaryAttr);
612 } 612 }
613 613
614 DEFINE_TRACE(HTMLTableElement) { 614 DEFINE_TRACE(HTMLTableElement) {
615 visitor->trace(m_sharedCellStyle); 615 visitor->trace(m_sharedCellStyle);
616 HTMLElement::trace(visitor); 616 HTMLElement::trace(visitor);
617 } 617 }
618 618
619 } // namespace blink 619 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLBodyElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLTablePartElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698