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

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

Issue 67773002: Revert "Move innerHTML and outerHTML to Element" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 } 862 }
868 863
869 inline bool isShadowHost(const Element* element) 864 inline bool isShadowHost(const Element* element)
870 { 865 {
871 return element && element->shadow(); 866 return element && element->shadow();
872 } 867 }
873 868
874 } // namespace 869 } // namespace
875 870
876 #endif 871 #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