Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/testing/InternalSettings.cpp ('k') | Source/core/testing/LayerRect.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/testing/InternalSettings.cpp ('k') | Source/core/testing/LayerRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698