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

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

Issue 2862293002: Finish removing FrameLoader::Clear() (Closed)
Patch Set: Rebase Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 page->DeprecatedLocalMainFrame() 252 page->DeprecatedLocalMainFrame()
253 ->GetSpellChecker() 253 ->GetSpellChecker()
254 .ToggleSpellCheckingEnabled(); 254 .ToggleSpellCheckingEnabled();
255 if (page->DeprecatedLocalMainFrame()->GetEditor().IsOverwriteModeEnabled()) 255 if (page->DeprecatedLocalMainFrame()->GetEditor().IsOverwriteModeEnabled())
256 page->DeprecatedLocalMainFrame()->GetEditor().ToggleOverwriteModeEnabled(); 256 page->DeprecatedLocalMainFrame()->GetEditor().ToggleOverwriteModeEnabled();
257 257
258 if (ScrollingCoordinator* scrolling_coordinator = 258 if (ScrollingCoordinator* scrolling_coordinator =
259 page->GetScrollingCoordinator()) 259 page->GetScrollingCoordinator())
260 scrolling_coordinator->Reset(); 260 scrolling_coordinator->Reset();
261 261
262 page->DeprecatedLocalMainFrame()->View()->Clear();
263 KeyboardEventManager::SetCurrentCapsLockState( 262 KeyboardEventManager::SetCurrentCapsLockState(
264 OverrideCapsLockState::kDefault); 263 OverrideCapsLockState::kDefault);
265 } 264 }
266 265
267 Internals::Internals(ExecutionContext* context) 266 Internals::Internals(ExecutionContext* context)
268 : runtime_flags_(InternalRuntimeFlags::create()), 267 : runtime_flags_(InternalRuntimeFlags::create()),
269 document_(ToDocument(context)) { 268 document_(ToDocument(context)) {
270 document_->Fetcher()->EnableIsPreloadedForTest(); 269 document_->Fetcher()->EnableIsPreloadedForTest();
271 } 270 }
272 271
(...skipping 3008 matching lines...) Expand 10 before | Expand all | Expand 10 after
3281 3280
3282 void Internals::crash() { 3281 void Internals::crash() {
3283 CHECK(false) << "Intentional crash"; 3282 CHECK(false) << "Intentional crash";
3284 } 3283 }
3285 3284
3286 void Internals::setIsLowEndDevice(bool is_low_end_device) { 3285 void Internals::setIsLowEndDevice(bool is_low_end_device) {
3287 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); 3286 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device);
3288 } 3287 }
3289 3288
3290 } // namespace blink 3289 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698