| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 AtomicString target(m_svgTarget->currentValue()->value()); | 156 AtomicString target(m_svgTarget->currentValue()->value()); |
| 157 if (target.isEmpty() && fastGetAttribute(XLinkNames::showAttr) == "n
ew") | 157 if (target.isEmpty() && fastGetAttribute(XLinkNames::showAttr) == "n
ew") |
| 158 target = AtomicString("_blank", AtomicString::ConstructFromLiter
al); | 158 target = AtomicString("_blank", AtomicString::ConstructFromLiter
al); |
| 159 event->setDefaultHandled(); | 159 event->setDefaultHandled(); |
| 160 | 160 |
| 161 LocalFrame* frame = document().frame(); | 161 LocalFrame* frame = document().frame(); |
| 162 if (!frame) | 162 if (!frame) |
| 163 return; | 163 return; |
| 164 FrameLoadRequest frameRequest(&document(), ResourceRequest(document(
).completeURL(url)), target); | 164 ResourceRequest request = ResourceRequest::createMainResourceRequest
( |
| 165 document().completeURL(url), frame->isMainFrame()); |
| 166 FrameLoadRequest frameRequest(&document(), request, target); |
| 165 frameRequest.setTriggeringEvent(event); | 167 frameRequest.setTriggeringEvent(event); |
| 166 frame->loader().load(frameRequest); | 168 frame->loader().load(frameRequest); |
| 167 return; | 169 return; |
| 168 } | 170 } |
| 169 } | 171 } |
| 170 | 172 |
| 171 SVGGraphicsElement::defaultEventHandler(event); | 173 SVGGraphicsElement::defaultEventHandler(event); |
| 172 } | 174 } |
| 173 | 175 |
| 174 short SVGAElement::tabIndex() const | 176 short SVGAElement::tabIndex() const |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 return SVGElement::canStartSelection(); | 218 return SVGElement::canStartSelection(); |
| 217 return rendererIsEditable(); | 219 return rendererIsEditable(); |
| 218 } | 220 } |
| 219 | 221 |
| 220 bool SVGAElement::willRespondToMouseClickEvents() | 222 bool SVGAElement::willRespondToMouseClickEvents() |
| 221 { | 223 { |
| 222 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); | 224 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); |
| 223 } | 225 } |
| 224 | 226 |
| 225 } // namespace WebCore | 227 } // namespace WebCore |
| OLD | NEW |