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

Side by Side Diff: Source/WebCore/testing/Internals.cpp

Issue 11875020: Merge 138991 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « Source/WebCore/testing/Internals.h ('k') | Source/WebCore/testing/Internals.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/WebCore/testing/Internals.h ('k') | Source/WebCore/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698