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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 bool HTMLFrameOwnerElement::isKeyboardFocusable() const | 208 bool HTMLFrameOwnerElement::isKeyboardFocusable() const |
209 { | 209 { |
210 return m_contentFrame && HTMLElement::isKeyboardFocusable(); | 210 return m_contentFrame && HTMLElement::isKeyboardFocusable(); |
211 } | 211 } |
212 | 212 |
213 void HTMLFrameOwnerElement::dispatchLoad() | 213 void HTMLFrameOwnerElement::dispatchLoad() |
214 { | 214 { |
215 dispatchScopedEvent(Event::create(EventTypeNames::load)); | 215 dispatchScopedEvent(Event::create(EventTypeNames::load)); |
216 } | 216 } |
217 | 217 |
| 218 const WebVector<WebPermissionType>& HTMLFrameOwnerElement::delegatedPermissions(
) const |
| 219 { |
| 220 DEFINE_STATIC_LOCAL(WebVector<WebPermissionType>, permissions, ()); |
| 221 return permissions; |
| 222 } |
| 223 |
218 Document* HTMLFrameOwnerElement::getSVGDocument(ExceptionState& exceptionState)
const | 224 Document* HTMLFrameOwnerElement::getSVGDocument(ExceptionState& exceptionState)
const |
219 { | 225 { |
220 Document* doc = contentDocument(); | 226 Document* doc = contentDocument(); |
221 if (doc && doc->isSVGDocument()) | 227 if (doc && doc->isSVGDocument()) |
222 return doc; | 228 return doc; |
223 return nullptr; | 229 return nullptr; |
224 } | 230 } |
225 | 231 |
226 void HTMLFrameOwnerElement::setWidget(Widget* widget) | 232 void HTMLFrameOwnerElement::setWidget(Widget* widget) |
227 { | 233 { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 DEFINE_TRACE(HTMLFrameOwnerElement) | 309 DEFINE_TRACE(HTMLFrameOwnerElement) |
304 { | 310 { |
305 visitor->trace(m_contentFrame); | 311 visitor->trace(m_contentFrame); |
306 visitor->trace(m_widget); | 312 visitor->trace(m_widget); |
307 HTMLElement::trace(visitor); | 313 HTMLElement::trace(visitor); |
308 FrameOwner::trace(visitor); | 314 FrameOwner::trace(visitor); |
309 } | 315 } |
310 | 316 |
311 | 317 |
312 } // namespace blink | 318 } // namespace blink |
OLD | NEW |