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

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

Issue 1463723003: Return VisualViewport coords in boundsInViewportSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 2405 matching lines...) Expand 10 before | Expand all | Expand 10 after
2416 bool Internals::isInCanvasFontCache(Document* document, const String& fontString ) 2416 bool Internals::isInCanvasFontCache(Document* document, const String& fontString )
2417 { 2417 {
2418 return document->canvasFontCache()->isInCache(fontString); 2418 return document->canvasFontCache()->isInCache(fontString);
2419 } 2419 }
2420 2420
2421 unsigned Internals::canvasFontCacheMaxFonts() 2421 unsigned Internals::canvasFontCacheMaxFonts()
2422 { 2422 {
2423 return CanvasFontCache::maxFonts(); 2423 return CanvasFontCache::maxFonts();
2424 } 2424 }
2425 2425
2426 /*
bokan 2015/11/24 20:59:24 Remove rather than comment
oshima 2015/11/24 23:42:10 Sorry, my mistake. Looks like I forgot or failed t
2426 ClientRect* Internals::boundsInViewportSpace(Element* element) 2427 ClientRect* Internals::boundsInViewportSpace(Element* element)
2427 { 2428 {
2428 ASSERT(element); 2429 ASSERT(element);
2429 return ClientRect::create(element->boundsInViewportSpace()); 2430 return ClientRect::create(element->boundsInViewportSpace());
2430 } 2431 }
2432 */
2431 2433
2432 void Internals::setScrollChain( 2434 void Internals::setScrollChain(
2433 ScrollState* scrollState, const WillBeHeapVector<RefPtrWillBeMember<Element> >& elements, ExceptionState&) 2435 ScrollState* scrollState, const WillBeHeapVector<RefPtrWillBeMember<Element> >& elements, ExceptionState&)
2434 { 2436 {
2435 WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain; 2437 WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain;
2436 for (size_t i = 0; i < elements.size(); ++i) 2438 for (size_t i = 0; i < elements.size(); ++i)
2437 scrollChain.append(elements[i]); 2439 scrollChain.append(elements[i]);
2438 scrollState->setScrollChain(scrollChain); 2440 scrollState->setScrollChain(scrollChain);
2439 } 2441 }
2440 2442
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
2569 mediaElement->setNetworkState(static_cast<WebMediaPlayer::NetworkState>(stat e)); 2571 mediaElement->setNetworkState(static_cast<WebMediaPlayer::NetworkState>(stat e));
2570 } 2572 }
2571 2573
2572 // TODO(liberato): remove once autoplay gesture override experiment concludes. 2574 // TODO(liberato): remove once autoplay gesture override experiment concludes.
2573 void Internals::triggerAutoplayViewportCheck(HTMLMediaElement* element) 2575 void Internals::triggerAutoplayViewportCheck(HTMLMediaElement* element)
2574 { 2576 {
2575 element->triggerAutoplayViewportCheckForTesting(); 2577 element->triggerAutoplayViewportCheckForTesting();
2576 } 2578 }
2577 2579
2578 } // namespace blink 2580 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698