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 2405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |