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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 SpellcheckAttributeTrue, | 75 SpellcheckAttributeTrue, |
76 SpellcheckAttributeFalse, | 76 SpellcheckAttributeFalse, |
77 SpellcheckAttributeDefault | 77 SpellcheckAttributeDefault |
78 }; | 78 }; |
79 | 79 |
80 class Element : public ContainerNode { | 80 class Element : public ContainerNode { |
81 public: | 81 public: |
82 static PassRefPtr<Element> create(const QualifiedName&, Document*); | 82 static PassRefPtr<Element> create(const QualifiedName&, Document*); |
83 virtual ~Element(); | 83 virtual ~Element(); |
84 | 84 |
85 String innerHTML() const; | |
86 String outerHTML() const; | |
87 void setInnerHTML(const String&, ExceptionState&); | |
88 void setOuterHTML(const String&, ExceptionState&); | |
89 | |
90 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); | 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); |
91 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); | 86 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); |
92 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); | 87 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); |
93 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); | 88 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); |
94 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); | 89 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); |
95 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); | 90 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); |
96 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); | 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); |
97 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart); | 92 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart); |
98 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); | 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); |
99 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); | 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 bool isFocusable() const; | 386 bool isFocusable() const; |
392 virtual bool isKeyboardFocusable() const; | 387 virtual bool isKeyboardFocusable() const; |
393 virtual bool isMouseFocusable() const; | 388 virtual bool isMouseFocusable() const; |
394 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusDirection); | 389 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusDirection); |
395 virtual void dispatchBlurEvent(Element* newFocusedElement); | 390 virtual void dispatchBlurEvent(Element* newFocusedElement); |
396 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused
Element); | 391 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused
Element); |
397 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse
dElement); | 392 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse
dElement); |
398 | 393 |
399 String innerText(); | 394 String innerText(); |
400 String outerText(); | 395 String outerText(); |
| 396 String innerHTML() const; |
| 397 String outerHTML() const; |
| 398 void setInnerHTML(const String&, ExceptionState&); |
| 399 void setOuterHTML(const String&, ExceptionState&); |
| 400 void insertAdjacentHTML(const String& where, const String& html, ExceptionSt
ate&); |
401 | 401 |
402 String textFromChildren(); | 402 String textFromChildren(); |
403 | 403 |
404 virtual String title() const { return String(); } | 404 virtual String title() const { return String(); } |
405 | 405 |
406 virtual const AtomicString& pseudo() const; | 406 virtual const AtomicString& pseudo() const; |
407 void setPseudo(const AtomicString&); | 407 void setPseudo(const AtomicString&); |
408 | 408 |
409 LayoutSize minimumSizeForResizing() const; | 409 LayoutSize minimumSizeForResizing() const; |
410 void setMinimumSizeForResizing(const LayoutSize&); | 410 void setMinimumSizeForResizing(const LayoutSize&); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 PassRefPtr<HTMLCollection> ensureCachedHTMLCollection(CollectionType); | 556 PassRefPtr<HTMLCollection> ensureCachedHTMLCollection(CollectionType); |
557 HTMLCollection* cachedHTMLCollection(CollectionType); | 557 HTMLCollection* cachedHTMLCollection(CollectionType); |
558 | 558 |
559 // classAttributeChanged() exists to share code between | 559 // classAttributeChanged() exists to share code between |
560 // parseAttribute (called via setAttribute()) and | 560 // parseAttribute (called via setAttribute()) and |
561 // svgAttributeChanged (called when element.className.baseValue is set) | 561 // svgAttributeChanged (called when element.className.baseValue is set) |
562 void classAttributeChanged(const AtomicString& newClassString); | 562 void classAttributeChanged(const AtomicString& newClassString); |
563 | 563 |
564 PassRefPtr<RenderStyle> originalStyleForRenderer(); | 564 PassRefPtr<RenderStyle> originalStyleForRenderer(); |
565 | 565 |
| 566 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); |
| 567 |
566 private: | 568 private: |
567 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi
ficationReason); | 569 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi
ficationReason); |
568 | 570 |
569 void updatePresentationAttributeStyle(); | 571 void updatePresentationAttributeStyle(); |
570 | 572 |
571 void inlineStyleChanged(); | 573 void inlineStyleChanged(); |
572 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); | 574 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); |
573 void setInlineStyleFromString(const AtomicString&); | 575 void setInlineStyleFromString(const AtomicString&); |
574 MutableStylePropertySet* ensureMutableInlineStyle(); | 576 MutableStylePropertySet* ensureMutableInlineStyle(); |
575 | 577 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 } | 887 } |
886 | 888 |
887 inline bool isShadowHost(const Element* element) | 889 inline bool isShadowHost(const Element* element) |
888 { | 890 { |
889 return element && element->shadow(); | 891 return element && element->shadow(); |
890 } | 892 } |
891 | 893 |
892 } // namespace | 894 } // namespace |
893 | 895 |
894 #endif | 896 #endif |
OLD | NEW |