| OLD | NEW |
| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 if (bordersBefore != cellBorders() || oldPadding != m_padding) { | 407 if (bordersBefore != cellBorders() || oldPadding != m_padding) { |
| 408 m_sharedCellStyle = 0; | 408 m_sharedCellStyle = 0; |
| 409 bool cellChanged = false; | 409 bool cellChanged = false; |
| 410 for (Node* child = firstChild(); child; child = child->nextSibling()) | 410 for (Node* child = firstChild(); child; child = child->nextSibling()) |
| 411 cellChanged |= setTableCellsChanged(child); | 411 cellChanged |= setTableCellsChanged(child); |
| 412 if (cellChanged) | 412 if (cellChanged) |
| 413 setNeedsStyleRecalc(); | 413 setNeedsStyleRecalc(); |
| 414 } | 414 } |
| 415 } | 415 } |
| 416 | 416 |
| 417 static StylePropertySet* leakBorderStyle(int value) | 417 static StylePropertySet* leakBorderStyle(CSSValueID value) |
| 418 { | 418 { |
| 419 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); | 419 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
| 420 style->setProperty(CSSPropertyBorderTopStyle, value); | 420 style->setProperty(CSSPropertyBorderTopStyle, value); |
| 421 style->setProperty(CSSPropertyBorderBottomStyle, value); | 421 style->setProperty(CSSPropertyBorderBottomStyle, value); |
| 422 style->setProperty(CSSPropertyBorderLeftStyle, value); | 422 style->setProperty(CSSPropertyBorderLeftStyle, value); |
| 423 style->setProperty(CSSPropertyBorderRightStyle, value); | 423 style->setProperty(CSSPropertyBorderRightStyle, value); |
| 424 return style.release().leakRef(); | 424 return style.release().leakRef(); |
| 425 } | 425 } |
| 426 | 426 |
| 427 const StylePropertySet* HTMLTableElement::additionalPresentationAttributeStyle() | 427 const StylePropertySet* HTMLTableElement::additionalPresentationAttributeStyle() |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 } | 573 } |
| 574 | 574 |
| 575 void HTMLTableElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons
t | 575 void HTMLTableElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons
t |
| 576 { | 576 { |
| 577 HTMLElement::addSubresourceAttributeURLs(urls); | 577 HTMLElement::addSubresourceAttributeURLs(urls); |
| 578 | 578 |
| 579 addSubresourceURL(urls, document()->completeURL(getAttribute(backgroundAttr)
)); | 579 addSubresourceURL(urls, document()->completeURL(getAttribute(backgroundAttr)
)); |
| 580 } | 580 } |
| 581 | 581 |
| 582 } | 582 } |
| OLD | NEW |