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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 exceptionState.throwDOMException(IndexSizeError, "The index provided ("
+ String::number(index) + ") is greater than the number of rows in the table ("
+ String::number(i) + ")."); | 236 exceptionState.throwDOMException(IndexSizeError, "The index provided ("
+ String::number(index) + ") is greater than the number of rows in the table ("
+ String::number(i) + ")."); |
237 return; | 237 return; |
238 } | 238 } |
239 row->remove(exceptionState); | 239 row->remove(exceptionState); |
240 } | 240 } |
241 | 241 |
242 void HTMLTableElement::setNeedsTableStyleRecalc() const | 242 void HTMLTableElement::setNeedsTableStyleRecalc() const |
243 { | 243 { |
244 Element* element = ElementTraversal::next(*this, this); | 244 Element* element = ElementTraversal::next(*this, this); |
245 while (element) { | 245 while (element) { |
246 element->setNeedsStyleRecalc(LocalStyleChange); | 246 element->setNeedsStyleRecalc(StyleRecalcDueToCellBorderPaddingChange, Lo
calStyleChange); |
247 if (isHTMLTableCellElement(*element)) | 247 if (isHTMLTableCellElement(*element)) |
248 element = ElementTraversal::nextSkippingChildren(*element, this); | 248 element = ElementTraversal::nextSkippingChildren(*element, this); |
249 else | 249 else |
250 element = ElementTraversal::next(*element, this); | 250 element = ElementTraversal::next(*element, this); |
251 } | 251 } |
252 } | 252 } |
253 | 253 |
254 static bool getBordersFromFrameAttributeValue(const AtomicString& value, bool& b
orderTop, bool& borderRight, bool& borderBottom, bool& borderLeft) | 254 static bool getBordersFromFrameAttributeValue(const AtomicString& value, bool& b
orderTop, bool& borderRight, bool& borderBottom, bool& borderLeft) |
255 { | 255 { |
256 borderTop = false; | 256 borderTop = false; |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 return getAttribute(summaryAttr); | 559 return getAttribute(summaryAttr); |
560 } | 560 } |
561 | 561 |
562 void HTMLTableElement::trace(Visitor* visitor) | 562 void HTMLTableElement::trace(Visitor* visitor) |
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 } |
OLD | NEW |