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

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

Issue 126443005: Use TreeScope::completeURL and baseURL instead of the Document versions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased again, passes tests Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLScriptElement.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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 else if (name == borderAttr) 311 else if (name == borderAttr)
312 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderWidth, p arseBorderWidthAttribute(value), CSSPrimitiveValue::CSS_PX); 312 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderWidth, p arseBorderWidthAttribute(value), CSSPrimitiveValue::CSS_PX);
313 else if (name == bordercolorAttr) { 313 else if (name == bordercolorAttr) {
314 if (!value.isEmpty()) 314 if (!value.isEmpty())
315 addHTMLColorToStyle(style, CSSPropertyBorderColor, value); 315 addHTMLColorToStyle(style, CSSPropertyBorderColor, value);
316 } else if (name == bgcolorAttr) 316 } else if (name == bgcolorAttr)
317 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); 317 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value);
318 else if (name == backgroundAttr) { 318 else if (name == backgroundAttr) {
319 String url = stripLeadingAndTrailingHTMLSpaces(value); 319 String url = stripLeadingAndTrailingHTMLSpaces(value);
320 if (!url.isEmpty()) 320 if (!url.isEmpty())
321 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, CSSImageV alue::create(document().completeURL(url)))); 321 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, CSSImageV alue::create(treeScope().completeURL(url))));
322 } else if (name == valignAttr) { 322 } else if (name == valignAttr) {
323 if (!value.isEmpty()) 323 if (!value.isEmpty())
324 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl ign, value); 324 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl ign, value);
325 } else if (name == cellspacingAttr) { 325 } else if (name == cellspacingAttr) {
326 if (!value.isEmpty()) 326 if (!value.isEmpty())
327 addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value); 327 addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value);
328 } else if (name == vspaceAttr) { 328 } else if (name == vspaceAttr) {
329 addHTMLLengthToStyle(style, CSSPropertyMarginTop, value); 329 addHTMLLengthToStyle(style, CSSPropertyMarginTop, value);
330 addHTMLLengthToStyle(style, CSSPropertyMarginBottom, value); 330 addHTMLLengthToStyle(style, CSSPropertyMarginBottom, value);
331 } else if (name == hspaceAttr) { 331 } else if (name == hspaceAttr) {
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 { 567 {
568 return getAttribute(rulesAttr); 568 return getAttribute(rulesAttr);
569 } 569 }
570 570
571 const AtomicString& HTMLTableElement::summary() const 571 const AtomicString& HTMLTableElement::summary() const
572 { 572 {
573 return getAttribute(summaryAttr); 573 return getAttribute(summaryAttr);
574 } 574 }
575 575
576 } 576 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLScriptElement.cpp ('k') | Source/core/html/HTMLTablePartElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698