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

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

Issue 147993006: Move insertAdjacentElement/insertAdjacentText to Element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: olc chunk mismatch Created 6 years, 10 months 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 virtual void dispatchBlurEvent(Element* newFocusedElement); 396 virtual void dispatchBlurEvent(Element* newFocusedElement);
397 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element); 397 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element);
398 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement); 398 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement);
399 399
400 String innerText(); 400 String innerText();
401 String outerText(); 401 String outerText();
402 String innerHTML() const; 402 String innerHTML() const;
403 String outerHTML() const; 403 String outerHTML() const;
404 void setInnerHTML(const String&, ExceptionState&); 404 void setInnerHTML(const String&, ExceptionState&);
405 void setOuterHTML(const String&, ExceptionState&); 405 void setOuterHTML(const String&, ExceptionState&);
406
407 Element* insertAdjacentElement(const String& where, Element* newChild, Excep tionState&);
408 void insertAdjacentText(const String& where, const String& text, ExceptionSt ate&);
406 void insertAdjacentHTML(const String& where, const String& html, ExceptionSt ate&); 409 void insertAdjacentHTML(const String& where, const String& html, ExceptionSt ate&);
407 410
408 String textFromChildren(); 411 String textFromChildren();
409 412
410 virtual String title() const { return String(); } 413 virtual String title() const { return String(); }
411 414
412 virtual const AtomicString& shadowPseudoId() const; 415 virtual const AtomicString& shadowPseudoId() const;
413 void setShadowPseudoId(const AtomicString&); 416 void setShadowPseudoId(const AtomicString&);
414 417
415 LayoutSize minimumSizeForResizing() const; 418 LayoutSize minimumSizeForResizing() const;
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 } 887 }
885 888
886 inline bool isShadowHost(const Element* element) 889 inline bool isShadowHost(const Element* element)
887 { 890 {
888 return element && element->shadow(); 891 return element && element->shadow();
889 } 892 }
890 893
891 } // namespace 894 } // namespace
892 895
893 #endif 896 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/loader/delete-inside-cancelTimer-expected.txt ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698