| 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 11 matching lines...) Expand all Loading... |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "core/html/HTMLTableElement.h" | 25 #include "core/html/HTMLTableElement.h" |
| 26 | 26 |
| 27 #include "bindings/core/v8/ExceptionState.h" | 27 #include "bindings/core/v8/ExceptionState.h" |
| 28 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 28 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 29 #include "core/CSSPropertyNames.h" | 29 #include "core/CSSPropertyNames.h" |
| 30 #include "core/CSSValueKeywords.h" | 30 #include "core/CSSValueKeywords.h" |
| 31 #include "core/HTMLNames.h" | 31 #include "core/HTMLNames.h" |
| 32 #include "core/css/CSSIdentifierValue.h" |
| 32 #include "core/css/CSSImageValue.h" | 33 #include "core/css/CSSImageValue.h" |
| 33 #include "core/css/CSSInheritedValue.h" | 34 #include "core/css/CSSInheritedValue.h" |
| 34 #include "core/css/CSSPrimitiveValue.h" | |
| 35 #include "core/css/StylePropertySet.h" | 35 #include "core/css/StylePropertySet.h" |
| 36 #include "core/dom/Attribute.h" | 36 #include "core/dom/Attribute.h" |
| 37 #include "core/dom/ElementTraversal.h" | 37 #include "core/dom/ElementTraversal.h" |
| 38 #include "core/dom/ExceptionCode.h" | 38 #include "core/dom/ExceptionCode.h" |
| 39 #include "core/dom/NodeListsNodeData.h" | 39 #include "core/dom/NodeListsNodeData.h" |
| 40 #include "core/dom/StyleChangeReason.h" | 40 #include "core/dom/StyleChangeReason.h" |
| 41 #include "core/html/HTMLTableCaptionElement.h" | 41 #include "core/html/HTMLTableCaptionElement.h" |
| 42 #include "core/html/HTMLTableCellElement.h" | 42 #include "core/html/HTMLTableCellElement.h" |
| 43 #include "core/html/HTMLTableRowElement.h" | 43 #include "core/html/HTMLTableRowElement.h" |
| 44 #include "core/html/HTMLTableRowsCollection.h" | 44 #include "core/html/HTMLTableRowsCollection.h" |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 style->setProperty(CSSPropertyBorderBottomWidth, CSSValueThin); | 504 style->setProperty(CSSPropertyBorderBottomWidth, CSSValueThin); |
| 505 style->setProperty(CSSPropertyBorderTopStyle, CSSValueSolid); | 505 style->setProperty(CSSPropertyBorderTopStyle, CSSValueSolid); |
| 506 style->setProperty(CSSPropertyBorderBottomStyle, CSSValueSolid); | 506 style->setProperty(CSSPropertyBorderBottomStyle, CSSValueSolid); |
| 507 style->setProperty(CSSPropertyBorderColor, *CSSInheritedValue::create()); | 507 style->setProperty(CSSPropertyBorderColor, *CSSInheritedValue::create()); |
| 508 break; | 508 break; |
| 509 case SolidBorders: | 509 case SolidBorders: |
| 510 style->setProperty( | 510 style->setProperty( |
| 511 CSSPropertyBorderWidth, | 511 CSSPropertyBorderWidth, |
| 512 *CSSPrimitiveValue::create(1, CSSPrimitiveValue::UnitType::Pixels)); | 512 *CSSPrimitiveValue::create(1, CSSPrimitiveValue::UnitType::Pixels)); |
| 513 style->setProperty(CSSPropertyBorderStyle, | 513 style->setProperty(CSSPropertyBorderStyle, |
| 514 *CSSPrimitiveValue::createIdentifier(CSSValueSolid)); | 514 *CSSIdentifierValue::create(CSSValueSolid)); |
| 515 style->setProperty(CSSPropertyBorderColor, *CSSInheritedValue::create()); | 515 style->setProperty(CSSPropertyBorderColor, *CSSInheritedValue::create()); |
| 516 break; | 516 break; |
| 517 case InsetBorders: | 517 case InsetBorders: |
| 518 style->setProperty( | 518 style->setProperty( |
| 519 CSSPropertyBorderWidth, | 519 CSSPropertyBorderWidth, |
| 520 *CSSPrimitiveValue::create(1, CSSPrimitiveValue::UnitType::Pixels)); | 520 *CSSPrimitiveValue::create(1, CSSPrimitiveValue::UnitType::Pixels)); |
| 521 style->setProperty(CSSPropertyBorderStyle, | 521 style->setProperty(CSSPropertyBorderStyle, |
| 522 *CSSPrimitiveValue::createIdentifier(CSSValueInset)); | 522 *CSSIdentifierValue::create(CSSValueInset)); |
| 523 style->setProperty(CSSPropertyBorderColor, *CSSInheritedValue::create()); | 523 style->setProperty(CSSPropertyBorderColor, *CSSInheritedValue::create()); |
| 524 break; | 524 break; |
| 525 case NoBorders: | 525 case NoBorders: |
| 526 // If 'rules=none' then allow any borders set at cell level to take effect
. | 526 // If 'rules=none' then allow any borders set at cell level to take effect
. |
| 527 break; | 527 break; |
| 528 } | 528 } |
| 529 | 529 |
| 530 if (m_padding) | 530 if (m_padding) |
| 531 style->setProperty(CSSPropertyPadding, | 531 style->setProperty(CSSPropertyPadding, |
| 532 *CSSPrimitiveValue::create( | 532 *CSSPrimitiveValue::create( |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 const AtomicString& HTMLTableElement::summary() const { | 600 const AtomicString& HTMLTableElement::summary() const { |
| 601 return getAttribute(summaryAttr); | 601 return getAttribute(summaryAttr); |
| 602 } | 602 } |
| 603 | 603 |
| 604 DEFINE_TRACE(HTMLTableElement) { | 604 DEFINE_TRACE(HTMLTableElement) { |
| 605 visitor->trace(m_sharedCellStyle); | 605 visitor->trace(m_sharedCellStyle); |
| 606 HTMLElement::trace(visitor); | 606 HTMLElement::trace(visitor); |
| 607 } | 607 } |
| 608 | 608 |
| 609 } // namespace blink | 609 } // namespace blink |
| OLD | NEW |