Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: Source/core/dom/Element.h

Issue 52203002: Revert "Move innerHTML and outerHTML to Element" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 } 856 }
862 857
863 inline bool isShadowHost(const Element* element) 858 inline bool isShadowHost(const Element* element)
864 { 859 {
865 return element && element->shadow(); 860 return element && element->shadow();
866 } 861 }
867 862
868 } // namespace 863 } // namespace
869 864
870 #endif 865 #endif
OLDNEW
« no previous file with comments | « LayoutTests/svg/css/script-tests/svg-attribute-length-parsing.js ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698