| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 | 504 |
| 505 MutableStylePropertySet& ensureMutableInlineStyle(); | 505 MutableStylePropertySet& ensureMutableInlineStyle(); |
| 506 void clearMutableInlineStyleIfEmpty(); | 506 void clearMutableInlineStyleIfEmpty(); |
| 507 | 507 |
| 508 void setTabIndex(int); | 508 void setTabIndex(int); |
| 509 virtual short tabIndex() const OVERRIDE; | 509 virtual short tabIndex() const OVERRIDE; |
| 510 | 510 |
| 511 virtual void trace(Visitor*) OVERRIDE; | 511 virtual void trace(Visitor*) OVERRIDE; |
| 512 | 512 |
| 513 protected: | 513 protected: |
| 514 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) | 514 Element(const QualifiedName& tagName, Document*, ConstructionType); |
| 515 : ContainerNode(document, type) | |
| 516 , m_tagName(tagName) | |
| 517 { | |
| 518 ScriptWrappable::init(this); | |
| 519 } | |
| 520 | 515 |
| 521 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); | 516 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); |
| 522 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitType); | 517 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitType); |
| 523 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); | 518 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); |
| 524 | 519 |
| 525 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 520 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 526 virtual void removedFrom(ContainerNode*) OVERRIDE; | 521 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 527 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; | 522 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
| 528 | 523 |
| 529 virtual void willRecalcStyle(StyleRecalcChange); | 524 virtual void willRecalcStyle(StyleRecalcChange); |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ | 873 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ |
| 879 DEFINE_NODE_TYPE_CASTS(thisType, predicate) | 874 DEFINE_NODE_TYPE_CASTS(thisType, predicate) |
| 880 | 875 |
| 881 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ | 876 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ |
| 882 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ | 877 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ |
| 883 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) | 878 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 884 | 879 |
| 885 } // namespace | 880 } // namespace |
| 886 | 881 |
| 887 #endif | 882 #endif |
| OLD | NEW |