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

Side by Side Diff: Source/core/html/HTMLTableElement.cpp

Issue 304603006: Revert of Set proper referrer for css resource fetching (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/html/HTMLBodyElement.cpp ('k') | Source/core/html/HTMLTablePartElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 Apple Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 addHTMLLengthToStyle(style, CSSPropertyHeight, value); 297 addHTMLLengthToStyle(style, CSSPropertyHeight, value);
298 else if (name == borderAttr) 298 else if (name == borderAttr)
299 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderWidth, p arseBorderWidthAttribute(value), CSSPrimitiveValue::CSS_PX); 299 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderWidth, p arseBorderWidthAttribute(value), CSSPrimitiveValue::CSS_PX);
300 else if (name == bordercolorAttr) { 300 else if (name == bordercolorAttr) {
301 if (!value.isEmpty()) 301 if (!value.isEmpty())
302 addHTMLColorToStyle(style, CSSPropertyBorderColor, value); 302 addHTMLColorToStyle(style, CSSPropertyBorderColor, value);
303 } else if (name == bgcolorAttr) 303 } else if (name == bgcolorAttr)
304 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); 304 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value);
305 else if (name == backgroundAttr) { 305 else if (name == backgroundAttr) {
306 String url = stripLeadingAndTrailingHTMLSpaces(value); 306 String url = stripLeadingAndTrailingHTMLSpaces(value);
307 if (!url.isEmpty()) { 307 if (!url.isEmpty())
308 RefPtrWillBeRawPtr<CSSImageValue> imageValue = CSSImageValue::create (url, document().completeURL(url)); 308 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, CSSImageV alue::create(url, document().completeURL(url))));
309 imageValue->setReferrer(document().outgoingReferrer());
310 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, imageValu e.release()));
311 }
312 } else if (name == valignAttr) { 309 } else if (name == valignAttr) {
313 if (!value.isEmpty()) 310 if (!value.isEmpty())
314 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl ign, value); 311 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl ign, value);
315 } else if (name == cellspacingAttr) { 312 } else if (name == cellspacingAttr) {
316 if (!value.isEmpty()) 313 if (!value.isEmpty())
317 addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value); 314 addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value);
318 } else if (name == vspaceAttr) { 315 } else if (name == vspaceAttr) {
319 addHTMLLengthToStyle(style, CSSPropertyMarginTop, value); 316 addHTMLLengthToStyle(style, CSSPropertyMarginTop, value);
320 addHTMLLengthToStyle(style, CSSPropertyMarginBottom, value); 317 addHTMLLengthToStyle(style, CSSPropertyMarginBottom, value);
321 } else if (name == hspaceAttr) { 318 } else if (name == hspaceAttr) {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 { 560 {
564 return getAttribute(rulesAttr); 561 return getAttribute(rulesAttr);
565 } 562 }
566 563
567 const AtomicString& HTMLTableElement::summary() const 564 const AtomicString& HTMLTableElement::summary() const
568 { 565 {
569 return getAttribute(summaryAttr); 566 return getAttribute(summaryAttr);
570 } 567 }
571 568
572 } 569 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLBodyElement.cpp ('k') | Source/core/html/HTMLTablePartElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698