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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLBaseElement.cpp

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 years, 11 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
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, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2008, 2009, 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 19 matching lines...) Expand all
30 30
31 namespace blink { 31 namespace blink {
32 32
33 using namespace HTMLNames; 33 using namespace HTMLNames;
34 34
35 inline HTMLBaseElement::HTMLBaseElement(Document& document) 35 inline HTMLBaseElement::HTMLBaseElement(Document& document)
36 : HTMLElement(baseTag, document) {} 36 : HTMLElement(baseTag, document) {}
37 37
38 DEFINE_NODE_FACTORY(HTMLBaseElement) 38 DEFINE_NODE_FACTORY(HTMLBaseElement)
39 39
40 void HTMLBaseElement::parseAttribute(const QualifiedName& name, 40 void HTMLBaseElement::parseAttribute(
41 const AtomicString& oldValue, 41 const AttributeModificationParams& params) {
42 const AtomicString& value) { 42 if (params.name == hrefAttr || params.name == targetAttr)
43 if (name == hrefAttr || name == targetAttr)
44 document().processBaseElement(); 43 document().processBaseElement();
45 else 44 else
46 HTMLElement::parseAttribute(name, oldValue, value); 45 HTMLElement::parseAttribute(params);
47 } 46 }
48 47
49 Node::InsertionNotificationRequest HTMLBaseElement::insertedInto( 48 Node::InsertionNotificationRequest HTMLBaseElement::insertedInto(
50 ContainerNode* insertionPoint) { 49 ContainerNode* insertionPoint) {
51 HTMLElement::insertedInto(insertionPoint); 50 HTMLElement::insertedInto(insertionPoint);
52 if (insertionPoint->isConnected()) 51 if (insertionPoint->isConnected())
53 document().processBaseElement(); 52 document().processBaseElement();
54 return InsertionDone; 53 return InsertionDone;
55 } 54 }
56 55
(...skipping 29 matching lines...) Expand all
86 return KURL(); 85 return KURL();
87 86
88 return url; 87 return url;
89 } 88 }
90 89
91 void HTMLBaseElement::setHref(const AtomicString& value) { 90 void HTMLBaseElement::setHref(const AtomicString& value) {
92 setAttribute(hrefAttr, value); 91 setAttribute(hrefAttr, value);
93 } 92 }
94 93
95 } // namespace blink 94 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLBaseElement.h ('k') | third_party/WebKit/Source/core/html/HTMLBodyElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698