OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 return String(); | 1507 return String(); |
1508 } | 1508 } |
1509 | 1509 |
1510 Page* page = document->page(); | 1510 Page* page = document->page(); |
1511 if (!page) | 1511 if (!page) |
1512 return String(); | 1512 return String(); |
1513 | 1513 |
1514 return page->mainThreadScrollingReasonsAsText(); | 1514 return page->mainThreadScrollingReasonsAsText(); |
1515 } | 1515 } |
1516 | 1516 |
| 1517 PassRefPtr<ClientRectList> Internals::nonFastScrollableRects(Document* document,
ExceptionCode& ec) const |
| 1518 { |
| 1519 if (!document || !document->frame()) { |
| 1520 ec = INVALID_ACCESS_ERR; |
| 1521 return 0; |
| 1522 } |
| 1523 |
| 1524 Page* page = document->page(); |
| 1525 if (!page) |
| 1526 return 0; |
| 1527 |
| 1528 return page->nonFastScrollableRects(document->frame()); |
| 1529 } |
| 1530 |
1517 void Internals::garbageCollectDocumentResources(Document* document, ExceptionCod
e& ec) const | 1531 void Internals::garbageCollectDocumentResources(Document* document, ExceptionCod
e& ec) const |
1518 { | 1532 { |
1519 if (!document) { | 1533 if (!document) { |
1520 ec = INVALID_ACCESS_ERR; | 1534 ec = INVALID_ACCESS_ERR; |
1521 return; | 1535 return; |
1522 } | 1536 } |
1523 | 1537 |
1524 CachedResourceLoader* cachedResourceLoader = document->cachedResourceLoader(
); | 1538 CachedResourceLoader* cachedResourceLoader = document->cachedResourceLoader(
); |
1525 if (!cachedResourceLoader) | 1539 if (!cachedResourceLoader) |
1526 return; | 1540 return; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1806 return SerializedScriptValue::adopt(bytes); | 1820 return SerializedScriptValue::adopt(bytes); |
1807 #endif | 1821 #endif |
1808 } | 1822 } |
1809 | 1823 |
1810 void Internals::setUsesOverlayScrollbars(bool enabled) | 1824 void Internals::setUsesOverlayScrollbars(bool enabled) |
1811 { | 1825 { |
1812 WebCore::Settings::setUsesOverlayScrollbars(enabled); | 1826 WebCore::Settings::setUsesOverlayScrollbars(enabled); |
1813 } | 1827 } |
1814 | 1828 |
1815 } | 1829 } |
OLD | NEW |