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

Side by Side Diff: Source/core/html/HTMLTableRowElement.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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserv ed.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 19 matching lines...) Expand all
30 #include "core/dom/ExceptionCode.h" 30 #include "core/dom/ExceptionCode.h"
31 #include "core/html/HTMLCollection.h" 31 #include "core/html/HTMLCollection.h"
32 #include "core/html/HTMLTableCellElement.h" 32 #include "core/html/HTMLTableCellElement.h"
33 #include "core/html/HTMLTableElement.h" 33 #include "core/html/HTMLTableElement.h"
34 #include "core/html/HTMLTableSectionElement.h" 34 #include "core/html/HTMLTableSectionElement.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 using namespace HTMLNames; 38 using namespace HTMLNames;
39 39
40 HTMLTableRowElement::HTMLTableRowElement(const QualifiedName& tagName, Document& document) 40 HTMLTableRowElement::HTMLTableRowElement(Document& document)
41 : HTMLTablePartElement(tagName, document) 41 : HTMLTablePartElement(trTag, document)
42 { 42 {
43 ASSERT(hasTagName(trTag));
44 ScriptWrappable::init(this); 43 ScriptWrappable::init(this);
45 } 44 }
46 45
47 PassRefPtr<HTMLTableRowElement> HTMLTableRowElement::create(Document& document) 46 PassRefPtr<HTMLTableRowElement> HTMLTableRowElement::create(Document& document)
48 { 47 {
49 return adoptRef(new HTMLTableRowElement(trTag, document)); 48 return adoptRef(new HTMLTableRowElement(document));
50 }
51
52 PassRefPtr<HTMLTableRowElement> HTMLTableRowElement::create(const QualifiedName& tagName, Document& document)
53 {
54 return adoptRef(new HTMLTableRowElement(tagName, document));
55 } 49 }
56 50
57 int HTMLTableRowElement::rowIndex() const 51 int HTMLTableRowElement::rowIndex() const
58 { 52 {
59 ContainerNode* table = parentNode(); 53 ContainerNode* table = parentNode();
60 if (!table) 54 if (!table)
61 return -1; 55 return -1;
62 table = table->parentNode(); 56 table = table->parentNode();
63 if (!table || !isHTMLTableElement(table)) 57 if (!table || !isHTMLTableElement(table))
64 return -1; 58 return -1;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 { 153 {
160 return ensureCachedHTMLCollection(TRCells); 154 return ensureCachedHTMLCollection(TRCells);
161 } 155 }
162 156
163 void HTMLTableRowElement::setCells(HTMLCollection*, ExceptionState& es) 157 void HTMLTableRowElement::setCells(HTMLCollection*, ExceptionState& es)
164 { 158 {
165 es.throwUninformativeAndGenericDOMException(NoModificationAllowedError); 159 es.throwUninformativeAndGenericDOMException(NoModificationAllowedError);
166 } 160 }
167 161
168 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698