|
Lines 305-310
void Internals::resetToConsistentState(Page* page)
a/Source/WebCore/testing/Internals.cpp_sec1
|
| 305 |
|
305 |
|
| 306 |
page->setPageScaleFactor(1, IntPoint(0, 0)); |
306 |
page->setPageScaleFactor(1, IntPoint(0, 0)); |
| 307 |
page->setPagination(Pagination()); |
307 |
page->setPagination(Pagination()); |
|
|
308 |
|
| 309 |
page->setDefersLoading(false); |
| 308 |
|
310 |
|
| 309 |
page->mainFrame().setTextZoomFactor(1.0f); |
311 |
page->mainFrame().setTextZoomFactor(1.0f); |
| 310 |
|
312 |
|
|
Lines 2931-2936
bool Internals::isPagePlayingAudio()
a/Source/WebCore/testing/Internals.cpp_sec2
|
| 2931 |
return !!(document->page()->mediaState() & MediaProducer::IsPlayingAudio); |
2933 |
return !!(document->page()->mediaState() & MediaProducer::IsPlayingAudio); |
| 2932 |
} |
2934 |
} |
| 2933 |
|
2935 |
|
|
|
2936 |
void Internals::setPageDefersLoading(bool defersLoading) |
| 2937 |
{ |
| 2938 |
Document* document = contextDocument(); |
| 2939 |
if (!document) |
| 2940 |
return; |
| 2941 |
if (Page* page = document->page()) |
| 2942 |
page->setDefersLoading(defersLoading); |
| 2943 |
} |
| 2944 |
|
| 2934 |
RefPtr<File> Internals::createFile(const String& path) |
2945 |
RefPtr<File> Internals::createFile(const String& path) |
| 2935 |
{ |
2946 |
{ |
| 2936 |
Document* document = contextDocument(); |
2947 |
Document* document = contextDocument(); |