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 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 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 | 1205 |
1206 if (Element* parent = parentElement()) | 1206 if (Element* parent = parentElement()) |
1207 return parent->locateNamespacePrefix(namespaceToLocate); | 1207 return parent->locateNamespacePrefix(namespaceToLocate); |
1208 | 1208 |
1209 return nullAtom; | 1209 return nullAtom; |
1210 } | 1210 } |
1211 | 1211 |
1212 KURL Element::baseURI() const | 1212 KURL Element::baseURI() const |
1213 { | 1213 { |
1214 const AtomicString& baseAttribute = fastGetAttribute(baseAttr); | 1214 const AtomicString& baseAttribute = fastGetAttribute(baseAttr); |
| 1215 if (!baseAttribute.isEmpty()) |
| 1216 UseCounter::count(document(), UseCounter::ElementBaseURIFromXMLBase); |
| 1217 |
1215 KURL base(KURL(), baseAttribute); | 1218 KURL base(KURL(), baseAttribute); |
1216 if (!base.protocol().isEmpty()) | 1219 if (!base.protocol().isEmpty()) |
1217 return base; | 1220 return base; |
1218 | 1221 |
1219 ContainerNode* parent = parentNode(); | 1222 ContainerNode* parent = parentNode(); |
1220 if (!parent) | 1223 if (!parent) |
1221 return base; | 1224 return base; |
1222 | 1225 |
1223 const KURL& parentBase = parent->baseURI(); | 1226 const KURL& parentBase = parent->baseURI(); |
1224 if (parentBase.isNull()) | 1227 if (parentBase.isNull()) |
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3267 return wrapper; | 3270 return wrapper; |
3268 | 3271 |
3269 CustomElementBinding* binding = perContextData->customElementBinding(customE
lementDefinition()); | 3272 CustomElementBinding* binding = perContextData->customElementBinding(customE
lementDefinition()); |
3270 | 3273 |
3271 wrapper->SetPrototype(binding->prototype()); | 3274 wrapper->SetPrototype(binding->prototype()); |
3272 | 3275 |
3273 return V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType
, wrapper, isolate); | 3276 return V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType
, wrapper, isolate); |
3274 } | 3277 } |
3275 | 3278 |
3276 } // namespace blink | 3279 } // namespace blink |
OLD | NEW |