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