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

Side by Side Diff: Source/core/html/HTMLTitleElement.cpp

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix 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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 17 matching lines...) Expand all
28 #include "core/dom/Document.h" 28 #include "core/dom/Document.h"
29 #include "core/dom/Text.h" 29 #include "core/dom/Text.h"
30 #include "core/rendering/style/RenderStyle.h" 30 #include "core/rendering/style/RenderStyle.h"
31 #include "core/rendering/style/StyleInheritedData.h" 31 #include "core/rendering/style/StyleInheritedData.h"
32 #include "wtf/text/StringBuilder.h" 32 #include "wtf/text/StringBuilder.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 using namespace HTMLNames; 36 using namespace HTMLNames;
37 37
38 inline HTMLTitleElement::HTMLTitleElement(const QualifiedName& tagName, Document & document) 38 inline HTMLTitleElement::HTMLTitleElement(Document& document)
39 : HTMLElement(tagName, document) 39 : HTMLElement(titleTag, document)
40 { 40 {
41 ASSERT(hasTagName(titleTag));
42 setHasCustomStyleCallbacks(); 41 setHasCustomStyleCallbacks();
43 ScriptWrappable::init(this); 42 ScriptWrappable::init(this);
44 } 43 }
45 44
46 PassRefPtr<HTMLTitleElement> HTMLTitleElement::create(const QualifiedName& tagNa me, Document& document) 45 PassRefPtr<HTMLTitleElement> HTMLTitleElement::create(Document& document)
47 { 46 {
48 return adoptRef(new HTMLTitleElement(tagName, document)); 47 return adoptRef(new HTMLTitleElement(document));
49 } 48 }
50 49
51 Node::InsertionNotificationRequest HTMLTitleElement::insertedInto(ContainerNode* insertionPoint) 50 Node::InsertionNotificationRequest HTMLTitleElement::insertedInto(ContainerNode* insertionPoint)
52 { 51 {
53 HTMLElement::insertedInto(insertionPoint); 52 HTMLElement::insertedInto(insertionPoint);
54 if (inDocument() && !isInShadowTree()) 53 if (inDocument() && !isInShadowTree())
55 document().setTitleElement(text(), this); 54 document().setTitleElement(text(), this);
56 return InsertionDone; 55 return InsertionDone;
57 } 56 }
58 57
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 String valueCopy(value); 96 String valueCopy(value);
98 97
99 if (numChildren > 0) 98 if (numChildren > 0)
100 removeChildren(); 99 removeChildren();
101 100
102 appendChild(document().createTextNode(valueCopy.impl()), IGNORE_EXCEPTIO N); 101 appendChild(document().createTextNode(valueCopy.impl()), IGNORE_EXCEPTIO N);
103 } 102 }
104 } 103 }
105 104
106 } 105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698