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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 void setPrefix(const AtomicString&, ExceptionState&); | 501 void setPrefix(const AtomicString&, ExceptionState&); |
502 | 502 |
503 void synchronizeAttribute(const AtomicString& localName) const; | 503 void synchronizeAttribute(const AtomicString& localName) const; |
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; |
| 512 |
511 protected: | 513 protected: |
512 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) | 514 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) |
513 : ContainerNode(document, type) | 515 : ContainerNode(document, type) |
514 , m_tagName(tagName) | 516 , m_tagName(tagName) |
515 { | 517 { |
516 ScriptWrappable::init(this); | 518 ScriptWrappable::init(this); |
517 } | 519 } |
518 | 520 |
519 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); | 521 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); |
520 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitTypes); | 522 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitTypes); |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ | 876 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ |
875 DEFINE_NODE_TYPE_CASTS(thisType, predicate) | 877 DEFINE_NODE_TYPE_CASTS(thisType, predicate) |
876 | 878 |
877 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ | 879 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ |
878 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ | 880 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ |
879 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) | 881 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) |
880 | 882 |
881 } // namespace | 883 } // namespace |
882 | 884 |
883 #endif | 885 #endif |
OLD | NEW |