| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 { | 43 { |
| 44 if (name == hrefAttr || name == targetAttr) | 44 if (name == hrefAttr || name == targetAttr) |
| 45 document().processBaseElement(); | 45 document().processBaseElement(); |
| 46 else | 46 else |
| 47 HTMLElement::parseAttribute(name, oldValue, value); | 47 HTMLElement::parseAttribute(name, oldValue, value); |
| 48 } | 48 } |
| 49 | 49 |
| 50 Node::InsertionNotificationRequest HTMLBaseElement::insertedInto(ContainerNode*
insertionPoint) | 50 Node::InsertionNotificationRequest HTMLBaseElement::insertedInto(ContainerNode*
insertionPoint) |
| 51 { | 51 { |
| 52 HTMLElement::insertedInto(insertionPoint); | 52 HTMLElement::insertedInto(insertionPoint); |
| 53 if (insertionPoint->inShadowIncludingDocument()) | 53 if (insertionPoint->isConnected()) |
| 54 document().processBaseElement(); | 54 document().processBaseElement(); |
| 55 return InsertionDone; | 55 return InsertionDone; |
| 56 } | 56 } |
| 57 | 57 |
| 58 void HTMLBaseElement::removedFrom(ContainerNode* insertionPoint) | 58 void HTMLBaseElement::removedFrom(ContainerNode* insertionPoint) |
| 59 { | 59 { |
| 60 HTMLElement::removedFrom(insertionPoint); | 60 HTMLElement::removedFrom(insertionPoint); |
| 61 if (insertionPoint->inShadowIncludingDocument()) | 61 if (insertionPoint->isConnected()) |
| 62 document().processBaseElement(); | 62 document().processBaseElement(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool HTMLBaseElement::isURLAttribute(const Attribute& attribute) const | 65 bool HTMLBaseElement::isURLAttribute(const Attribute& attribute) const |
| 66 { | 66 { |
| 67 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu
te(attribute); | 67 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu
te(attribute); |
| 68 } | 68 } |
| 69 | 69 |
| 70 KURL HTMLBaseElement::href() const | 70 KURL HTMLBaseElement::href() const |
| 71 { | 71 { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 86 | 86 |
| 87 return url; | 87 return url; |
| 88 } | 88 } |
| 89 | 89 |
| 90 void HTMLBaseElement::setHref(const AtomicString& value) | 90 void HTMLBaseElement::setHref(const AtomicString& value) |
| 91 { | 91 { |
| 92 setAttribute(hrefAttr, value); | 92 setAttribute(hrefAttr, value); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| OLD | NEW |