Chromium Code Reviews| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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(); | |
|
Nate Chapin
2017/05/17 18:18:59
I can't find any evidence tests need this?
| |
| 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 Loading... | |
| 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 |
| OLD | NEW |