OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
3 * Copyright (C) 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Lesser General Public | 6 * modify it under the terms of the GNU Lesser General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "wtf/Vector.h" | 26 #include "wtf/Vector.h" |
27 #include "wtf/text/AtomicString.h" | 27 #include "wtf/text/AtomicString.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 DOMMimeTypeArray::DOMMimeTypeArray(LocalFrame* frame) | 31 DOMMimeTypeArray::DOMMimeTypeArray(LocalFrame* frame) |
32 : DOMWindowProperty(frame) | 32 : DOMWindowProperty(frame) |
33 { | 33 { |
34 } | 34 } |
35 | 35 |
36 DOMMimeTypeArray::~DOMMimeTypeArray() | 36 void DOMMimeTypeArray::trace(Visitor* visitor) |
37 { | 37 { |
| 38 DOMWindowProperty::trace(visitor); |
38 } | 39 } |
39 | 40 |
40 unsigned DOMMimeTypeArray::length() const | 41 unsigned DOMMimeTypeArray::length() const |
41 { | 42 { |
42 PluginData* data = getPluginData(); | 43 PluginData* data = getPluginData(); |
43 if (!data) | 44 if (!data) |
44 return 0; | 45 return 0; |
45 return data->mimes().size(); | 46 return data->mimes().size(); |
46 } | 47 } |
47 | 48 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 { | 87 { |
87 if (!m_frame) | 88 if (!m_frame) |
88 return 0; | 89 return 0; |
89 Page* p = m_frame->page(); | 90 Page* p = m_frame->page(); |
90 if (!p) | 91 if (!p) |
91 return 0; | 92 return 0; |
92 return p->pluginData(); | 93 return p->pluginData(); |
93 } | 94 } |
94 | 95 |
95 } // namespace blink | 96 } // namespace blink |
OLD | NEW |