| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void HTMLFrameOwnerElement::setSandboxFlags(SandboxFlags flags) | 105 void HTMLFrameOwnerElement::setSandboxFlags(SandboxFlags flags) |
| 106 { | 106 { |
| 107 m_sandboxFlags = flags; | 107 m_sandboxFlags = flags; |
| 108 } | 108 } |
| 109 | 109 |
| 110 bool HTMLFrameOwnerElement::isKeyboardFocusable() const | 110 bool HTMLFrameOwnerElement::isKeyboardFocusable() const |
| 111 { | 111 { |
| 112 return m_contentFrame && HTMLElement::isKeyboardFocusable(); | 112 return m_contentFrame && HTMLElement::isKeyboardFocusable(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 SVGDocument* HTMLFrameOwnerElement::getSVGDocument(ExceptionState& es) const | 115 SVGDocument* HTMLFrameOwnerElement::getSVGDocument(ExceptionState& exceptionStat
e) const |
| 116 { | 116 { |
| 117 Document* doc = contentDocument(); | 117 Document* doc = contentDocument(); |
| 118 if (doc && doc->isSVGDocument()) | 118 if (doc && doc->isSVGDocument()) |
| 119 return toSVGDocument(doc); | 119 return toSVGDocument(doc); |
| 120 // Spec: http://www.w3.org/TR/SVG/struct.html#InterfaceGetSVGDocument | 120 // Spec: http://www.w3.org/TR/SVG/struct.html#InterfaceGetSVGDocument |
| 121 es.throwUninformativeAndGenericDOMException(NotSupportedError); | 121 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedError); |
| 122 return 0; | 122 return 0; |
| 123 } | 123 } |
| 124 | 124 |
| 125 bool HTMLFrameOwnerElement::loadOrRedirectSubframe(const KURL& url, const Atomic
String& frameName, bool lockBackForwardList) | 125 bool HTMLFrameOwnerElement::loadOrRedirectSubframe(const KURL& url, const Atomic
String& frameName, bool lockBackForwardList) |
| 126 { | 126 { |
| 127 RefPtr<Frame> parentFrame = document().frame(); | 127 RefPtr<Frame> parentFrame = document().frame(); |
| 128 if (contentFrame()) { | 128 if (contentFrame()) { |
| 129 contentFrame()->navigationScheduler().scheduleLocationChange(document().
securityOrigin(), url.string(), parentFrame->loader().outgoingReferrer(), lockBa
ckForwardList); | 129 contentFrame()->navigationScheduler().scheduleLocationChange(document().
securityOrigin(), url.string(), parentFrame->loader().outgoingReferrer(), lockBa
ckForwardList); |
| 130 return true; | 130 return true; |
| 131 } | 131 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // FIXME: In this case the Frame will have finished loading before | 168 // FIXME: In this case the Frame will have finished loading before |
| 169 // it's being added to the child list. It would be a good idea to | 169 // it's being added to the child list. It would be a good idea to |
| 170 // create the child first, then invoke the loader separately. | 170 // create the child first, then invoke the loader separately. |
| 171 if (childFrame->loader().state() == FrameStateComplete && !childFrame->loade
r().policyDocumentLoader()) | 171 if (childFrame->loader().state() == FrameStateComplete && !childFrame->loade
r().policyDocumentLoader()) |
| 172 childFrame->loader().checkCompleted(); | 172 childFrame->loader().checkCompleted(); |
| 173 return true; | 173 return true; |
| 174 } | 174 } |
| 175 | 175 |
| 176 | 176 |
| 177 } // namespace WebCore | 177 } // namespace WebCore |
| OLD | NEW |