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

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

Issue 1177043016: [SP] Add a drawing recorder before painting caps lock indicator in password fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Need to rebaseline new tests under virtual/antialiasedtext as well. Created 5 years, 6 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 | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 #include "core/testing/InternalSettings.h" 123 #include "core/testing/InternalSettings.h"
124 #include "core/testing/LayerRect.h" 124 #include "core/testing/LayerRect.h"
125 #include "core/testing/LayerRectList.h" 125 #include "core/testing/LayerRectList.h"
126 #include "core/testing/PluginPlaceholderOptions.h" 126 #include "core/testing/PluginPlaceholderOptions.h"
127 #include "core/testing/PrivateScriptTest.h" 127 #include "core/testing/PrivateScriptTest.h"
128 #include "core/testing/TypeConversions.h" 128 #include "core/testing/TypeConversions.h"
129 #include "core/testing/UnionTypesTest.h" 129 #include "core/testing/UnionTypesTest.h"
130 #include "core/workers/WorkerThread.h" 130 #include "core/workers/WorkerThread.h"
131 #include "platform/Cursor.h" 131 #include "platform/Cursor.h"
132 #include "platform/Language.h" 132 #include "platform/Language.h"
133 #include "platform/PlatformKeyboardEvent.h"
133 #include "platform/RuntimeEnabledFeatures.h" 134 #include "platform/RuntimeEnabledFeatures.h"
134 #include "platform/TraceEvent.h" 135 #include "platform/TraceEvent.h"
135 #include "platform/geometry/IntRect.h" 136 #include "platform/geometry/IntRect.h"
136 #include "platform/geometry/LayoutRect.h" 137 #include "platform/geometry/LayoutRect.h"
137 #include "platform/graphics/GraphicsLayer.h" 138 #include "platform/graphics/GraphicsLayer.h"
138 #include "platform/graphics/filters/FilterOperation.h" 139 #include "platform/graphics/filters/FilterOperation.h"
139 #include "platform/graphics/filters/FilterOperations.h" 140 #include "platform/graphics/filters/FilterOperations.h"
140 #include "platform/heap/Handle.h" 141 #include "platform/heap/Handle.h"
141 #include "platform/weborigin/SchemeRegistry.h" 142 #include "platform/weborigin/SchemeRegistry.h"
142 #include "public/platform/Platform.h" 143 #include "public/platform/Platform.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 overrideUserPreferredLanguages(Vector<AtomicString>()); 212 overrideUserPreferredLanguages(Vector<AtomicString>());
212 if (!page->deprecatedLocalMainFrame()->spellChecker().isContinuousSpellCheck ingEnabled()) 213 if (!page->deprecatedLocalMainFrame()->spellChecker().isContinuousSpellCheck ingEnabled())
213 page->deprecatedLocalMainFrame()->spellChecker().toggleContinuousSpellCh ecking(); 214 page->deprecatedLocalMainFrame()->spellChecker().toggleContinuousSpellCh ecking();
214 if (page->deprecatedLocalMainFrame()->editor().isOverwriteModeEnabled()) 215 if (page->deprecatedLocalMainFrame()->editor().isOverwriteModeEnabled())
215 page->deprecatedLocalMainFrame()->editor().toggleOverwriteModeEnabled(); 216 page->deprecatedLocalMainFrame()->editor().toggleOverwriteModeEnabled();
216 217
217 if (ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordinator( )) 218 if (ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordinator( ))
218 scrollingCoordinator->reset(); 219 scrollingCoordinator->reset();
219 220
220 page->deprecatedLocalMainFrame()->view()->clear(); 221 page->deprecatedLocalMainFrame()->view()->clear();
222 PlatformKeyboardEvent::setCurrentCapsLockState(PlatformKeyboardEvent::Overri deCapsLockState::Default);
221 } 223 }
222 224
223 Internals::Internals(Document* document) 225 Internals::Internals(Document* document)
224 : ContextLifecycleObserver(document) 226 : ContextLifecycleObserver(document)
225 , m_runtimeFlags(InternalRuntimeFlags::create()) 227 , m_runtimeFlags(InternalRuntimeFlags::create())
226 { 228 {
227 } 229 }
228 230
229 Document* Internals::contextDocument() const 231 Document* Internals::contextDocument() const
230 { 232 {
(...skipping 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 } 2431 }
2430 2432
2431 ClientRectList* Internals::focusRingRects(Element* element) 2433 ClientRectList* Internals::focusRingRects(Element* element)
2432 { 2434 {
2433 Vector<LayoutRect> rects; 2435 Vector<LayoutRect> rects;
2434 if (element && element->layoutObject()) 2436 if (element && element->layoutObject())
2435 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); 2437 element->layoutObject()->addFocusRingRects(rects, LayoutPoint());
2436 return ClientRectList::create(rects); 2438 return ClientRectList::create(rects);
2437 } 2439 }
2438 2440
2441 void Internals::setCapsLockState(bool enabled)
2442 {
2443 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ?
2444 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent ::OverrideCapsLockState::Off);
2445 }
2446
2439 } // namespace blink 2447 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698