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-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class DOMTokenList; | 46 class DOMTokenList; |
47 class Document; | 47 class Document; |
48 class ElementRareData; | 48 class ElementRareData; |
49 class ElementShadow; | 49 class ElementShadow; |
50 class ExceptionState; | 50 class ExceptionState; |
51 class Image; | 51 class Image; |
52 class IntSize; | 52 class IntSize; |
53 class LayoutCallback; | 53 class LayoutCallback; |
54 class MutableStylePropertySet; | 54 class MutableStylePropertySet; |
55 class PaintingCallback; | 55 class PaintingCallback; |
| 56 class PictureRecorder; |
56 class PropertySetCSSStyleDeclaration; | 57 class PropertySetCSSStyleDeclaration; |
57 class PseudoElement; | 58 class PseudoElement; |
58 class ShadowRoot; | 59 class ShadowRoot; |
59 class StylePropertySet; | 60 class StylePropertySet; |
60 | 61 |
61 enum SpellcheckAttributeState { | 62 enum SpellcheckAttributeState { |
62 SpellcheckAttributeTrue, | 63 SpellcheckAttributeTrue, |
63 SpellcheckAttributeFalse, | 64 SpellcheckAttributeFalse, |
64 SpellcheckAttributeDefault | 65 SpellcheckAttributeDefault |
65 }; | 66 }; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 292 |
292 String contentEditable() const; | 293 String contentEditable() const; |
293 void setContentEditable(const String&, ExceptionState&); | 294 void setContentEditable(const String&, ExceptionState&); |
294 | 295 |
295 bool spellcheck() const; | 296 bool spellcheck() const; |
296 void setSpellcheck(bool); | 297 void setSpellcheck(bool); |
297 | 298 |
298 const AtomicString& dir(); | 299 const AtomicString& dir(); |
299 void setDir(const AtomicString&); | 300 void setDir(const AtomicString&); |
300 | 301 |
| 302 // Dart exposed: |
| 303 void paint(PictureRecorder*); |
| 304 |
301 protected: | 305 protected: |
302 Element(const QualifiedName& tagName, Document*, ConstructionType); | 306 Element(const QualifiedName& tagName, Document*, ConstructionType); |
303 | 307 |
304 const ElementData* elementData() const { return m_elementData.get(); } | 308 const ElementData* elementData() const { return m_elementData.get(); } |
305 UniqueElementData& ensureUniqueElementData(); | 309 UniqueElementData& ensureUniqueElementData(); |
306 | 310 |
307 virtual void insertedInto(ContainerNode*) override; | 311 virtual void insertedInto(ContainerNode*) override; |
308 virtual void removedFrom(ContainerNode*) override; | 312 virtual void removedFrom(ContainerNode*) override; |
309 virtual void childrenChanged(const ChildrenChange&) override; | 313 virtual void childrenChanged(const ChildrenChange&) override; |
310 | 314 |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 static PassRefPtr<T> create(const QualifiedName&, Document&) | 588 static PassRefPtr<T> create(const QualifiedName&, Document&) |
585 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 589 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
586 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 590 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
587 { \ | 591 { \ |
588 return adoptRef(new T(tagName, document)); \ | 592 return adoptRef(new T(tagName, document)); \ |
589 } | 593 } |
590 | 594 |
591 } // namespace | 595 } // namespace |
592 | 596 |
593 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ | 597 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ |
OLD | NEW |