OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 if (ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordinator(
)) | 231 if (ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordinator(
)) |
232 scrollingCoordinator->reset(); | 232 scrollingCoordinator->reset(); |
233 | 233 |
234 page->deprecatedLocalMainFrame()->view()->clear(); | 234 page->deprecatedLocalMainFrame()->view()->clear(); |
235 } | 235 } |
236 | 236 |
237 Internals::Internals(Document* document) | 237 Internals::Internals(Document* document) |
238 : ContextLifecycleObserver(document) | 238 : ContextLifecycleObserver(document) |
239 , m_runtimeFlags(InternalRuntimeFlags::create()) | 239 , m_runtimeFlags(InternalRuntimeFlags::create()) |
240 { | 240 { |
241 ScriptWrappable::init(this); | |
242 } | 241 } |
243 | 242 |
244 Document* Internals::contextDocument() const | 243 Document* Internals::contextDocument() const |
245 { | 244 { |
246 return toDocument(executionContext()); | 245 return toDocument(executionContext()); |
247 } | 246 } |
248 | 247 |
249 LocalFrame* Internals::frame() const | 248 LocalFrame* Internals::frame() const |
250 { | 249 { |
251 if (!contextDocument()) | 250 if (!contextDocument()) |
(...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2259 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState
); | 2258 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState
); |
2260 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); | 2259 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); |
2261 } | 2260 } |
2262 | 2261 |
2263 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2262 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
2264 { | 2263 { |
2265 return new InternalsIterator; | 2264 return new InternalsIterator; |
2266 } | 2265 } |
2267 | 2266 |
2268 } // namespace blink | 2267 } // namespace blink |
OLD | NEW |