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

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

Issue 1642223002: Delete selection gap code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Integrate feedback. Created 4 years, 10 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
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 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2515 element->layoutObject()->addOutlineRects(rects, LayoutPoint(), LayoutObj ect::DontIncludeBlockVisualOverflow); 2515 element->layoutObject()->addOutlineRects(rects, LayoutPoint(), LayoutObj ect::DontIncludeBlockVisualOverflow);
2516 return ClientRectList::create(rects); 2516 return ClientRectList::create(rects);
2517 } 2517 }
2518 2518
2519 void Internals::setCapsLockState(bool enabled) 2519 void Internals::setCapsLockState(bool enabled)
2520 { 2520 {
2521 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? 2521 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ?
2522 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent ::OverrideCapsLockState::Off); 2522 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent ::OverrideCapsLockState::Off);
2523 } 2523 }
2524 2524
2525 void Internals::setSelectionPaintingWithoutSelectionGapsEnabled(bool enabled)
2526 {
2527 RuntimeEnabledFeatures::setSelectionPaintingWithoutSelectionGapsEnabled(enab led);
2528 }
2529
2530 bool Internals::setScrollbarVisibilityInScrollableArea(Node* node, bool visible) 2525 bool Internals::setScrollbarVisibilityInScrollableArea(Node* node, bool visible)
2531 { 2526 {
2532 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) 2527 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node))
2533 return scrollableArea->scrollAnimator().setScrollbarsVisibleForTesting(v isible); 2528 return scrollableArea->scrollAnimator().setScrollbarsVisibleForTesting(v isible);
2534 return false; 2529 return false;
2535 } 2530 }
2536 2531
2537 void Internals::forceRestrictIFramePermissions() 2532 void Internals::forceRestrictIFramePermissions()
2538 { 2533 {
2539 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); 2534 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true);
(...skipping 25 matching lines...) Expand all
2565 } 2560 }
2566 2561
2567 int Internals::getScrollAnimationState(Node* node) const 2562 int Internals::getScrollAnimationState(Node* node) const
2568 { 2563 {
2569 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) 2564 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node))
2570 return static_cast<int>(scrollableArea->scrollAnimator().m_runState); 2565 return static_cast<int>(scrollableArea->scrollAnimator().m_runState);
2571 return -1; 2566 return -1;
2572 } 2567 }
2573 2568
2574 } // namespace blink 2569 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698