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

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

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLHRElement.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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } else if (name == borderAttr) { 291 } else if (name == borderAttr) {
292 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderWidth, p arseBorderWidthAttribute(value), CSSPrimitiveValue::UnitType::Pixels); 292 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderWidth, p arseBorderWidthAttribute(value), CSSPrimitiveValue::UnitType::Pixels);
293 } else if (name == bordercolorAttr) { 293 } else if (name == bordercolorAttr) {
294 if (!value.isEmpty()) 294 if (!value.isEmpty())
295 addHTMLColorToStyle(style, CSSPropertyBorderColor, value); 295 addHTMLColorToStyle(style, CSSPropertyBorderColor, value);
296 } else if (name == bgcolorAttr) { 296 } else if (name == bgcolorAttr) {
297 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); 297 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value);
298 } else if (name == backgroundAttr) { 298 } else if (name == backgroundAttr) {
299 String url = stripLeadingAndTrailingHTMLSpaces(value); 299 String url = stripLeadingAndTrailingHTMLSpaces(value);
300 if (!url.isEmpty()) { 300 if (!url.isEmpty()) {
301 RefPtrWillBeRawPtr<CSSImageValue> imageValue = CSSImageValue::create (url, document().completeURL(url)); 301 RefPtr<CSSImageValue> imageValue = CSSImageValue::create(url, docume nt().completeURL(url));
302 imageValue->setReferrer(Referrer(document().outgoingReferrer(), docu ment().referrerPolicy())); 302 imageValue->setReferrer(Referrer(document().outgoingReferrer(), docu ment().referrerPolicy()));
303 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, imageValu e.release())); 303 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, imageValu e.release()));
304 } 304 }
305 } else if (name == valignAttr) { 305 } else if (name == valignAttr) {
306 if (!value.isEmpty()) 306 if (!value.isEmpty())
307 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl ign, value); 307 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl ign, value);
308 } else if (name == cellspacingAttr) { 308 } else if (name == cellspacingAttr) {
309 if (!value.isEmpty()) 309 if (!value.isEmpty())
310 addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value); 310 addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value);
311 } else if (name == alignAttr) { 311 } else if (name == alignAttr) {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 return getAttribute(summaryAttr); 559 return getAttribute(summaryAttr);
560 } 560 }
561 561
562 DEFINE_TRACE(HTMLTableElement) 562 DEFINE_TRACE(HTMLTableElement)
563 { 563 {
564 visitor->trace(m_sharedCellStyle); 564 visitor->trace(m_sharedCellStyle);
565 HTMLElement::trace(visitor); 565 HTMLElement::trace(visitor);
566 } 566 }
567 567
568 } 568 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLHRElement.cpp ('k') | Source/core/html/HTMLTablePartElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698