| 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 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2401 bool Internals::isInCanvasFontCache(Document* document, const String& fontString
) | 2401 bool Internals::isInCanvasFontCache(Document* document, const String& fontString
) |
| 2402 { | 2402 { |
| 2403 return document->canvasFontCache()->isInCache(fontString); | 2403 return document->canvasFontCache()->isInCache(fontString); |
| 2404 } | 2404 } |
| 2405 | 2405 |
| 2406 unsigned Internals::canvasFontCacheMaxFonts() | 2406 unsigned Internals::canvasFontCacheMaxFonts() |
| 2407 { | 2407 { |
| 2408 return CanvasFontCache::maxFonts(); | 2408 return CanvasFontCache::maxFonts(); |
| 2409 } | 2409 } |
| 2410 | 2410 |
| 2411 ClientRect* Internals::boundsInViewportSpace(Element* element) | |
| 2412 { | |
| 2413 ASSERT(element); | |
| 2414 return ClientRect::create(element->boundsInViewportSpace()); | |
| 2415 } | |
| 2416 | |
| 2417 void Internals::setScrollChain( | 2411 void Internals::setScrollChain( |
| 2418 ScrollState* scrollState, const WillBeHeapVector<RefPtrWillBeMember<Element>
>& elements, ExceptionState&) | 2412 ScrollState* scrollState, const WillBeHeapVector<RefPtrWillBeMember<Element>
>& elements, ExceptionState&) |
| 2419 { | 2413 { |
| 2420 WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain; | 2414 WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain; |
| 2421 for (size_t i = 0; i < elements.size(); ++i) | 2415 for (size_t i = 0; i < elements.size(); ++i) |
| 2422 scrollChain.append(elements[i]); | 2416 scrollChain.append(elements[i]); |
| 2423 scrollState->setScrollChain(scrollChain); | 2417 scrollState->setScrollChain(scrollChain); |
| 2424 } | 2418 } |
| 2425 | 2419 |
| 2426 void Internals::forceBlinkGCWithoutV8GC() | 2420 void Internals::forceBlinkGCWithoutV8GC() |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2554 mediaElement->setNetworkState(static_cast<WebMediaPlayer::NetworkState>(stat
e)); | 2548 mediaElement->setNetworkState(static_cast<WebMediaPlayer::NetworkState>(stat
e)); |
| 2555 } | 2549 } |
| 2556 | 2550 |
| 2557 // TODO(liberato): remove once autoplay gesture override experiment concludes. | 2551 // TODO(liberato): remove once autoplay gesture override experiment concludes. |
| 2558 void Internals::triggerAutoplayViewportCheck(HTMLMediaElement* element) | 2552 void Internals::triggerAutoplayViewportCheck(HTMLMediaElement* element) |
| 2559 { | 2553 { |
| 2560 element->triggerAutoplayViewportCheckForTesting(); | 2554 element->triggerAutoplayViewportCheckForTesting(); |
| 2561 } | 2555 } |
| 2562 | 2556 |
| 2563 } // namespace blink | 2557 } // namespace blink |
| OLD | NEW |