| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All |
| 3 * Rights Reserved. | 3 * Rights Reserved. |
| 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
| 5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 } | 151 } |
| 152 | 152 |
| 153 ViewportDescription Page::viewportDescription() const { | 153 ViewportDescription Page::viewportDescription() const { |
| 154 return mainFrame() && mainFrame()->isLocalFrame() && | 154 return mainFrame() && mainFrame()->isLocalFrame() && |
| 155 deprecatedLocalMainFrame()->document() | 155 deprecatedLocalMainFrame()->document() |
| 156 ? deprecatedLocalMainFrame()->document()->viewportDescription() | 156 ? deprecatedLocalMainFrame()->document()->viewportDescription() |
| 157 : ViewportDescription(); | 157 : ViewportDescription(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 ScrollingCoordinator* Page::scrollingCoordinator() { | 160 ScrollingCoordinator* Page::scrollingCoordinator() { |
| 161 if (!m_scrollingCoordinator && m_settings->acceleratedCompositingEnabled()) | 161 if (!m_scrollingCoordinator && m_settings->GetAcceleratedCompositingEnabled()) |
| 162 m_scrollingCoordinator = ScrollingCoordinator::create(this); | 162 m_scrollingCoordinator = ScrollingCoordinator::create(this); |
| 163 | 163 |
| 164 return m_scrollingCoordinator.get(); | 164 return m_scrollingCoordinator.get(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { | 167 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { |
| 168 if (ScrollingCoordinator* scrollingCoordinator = | 168 if (ScrollingCoordinator* scrollingCoordinator = |
| 169 this->scrollingCoordinator()) { | 169 this->scrollingCoordinator()) { |
| 170 // Hits in compositing/iframes/iframe-composited-scrolling.html | 170 // Hits in compositing/iframes/iframe-composited-scrolling.html |
| 171 DisableCompositingQueryAsserts disabler; | 171 DisableCompositingQueryAsserts disabler; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 frame = frame->tree().traverseNext()) { | 350 frame = frame->tree().traverseNext()) { |
| 351 if (frame->isLocalFrame()) | 351 if (frame->isLocalFrame()) |
| 352 toLocalFrame(frame)->document()->initDNSPrefetch(); | 352 toLocalFrame(frame)->document()->initDNSPrefetch(); |
| 353 } | 353 } |
| 354 break; | 354 break; |
| 355 case SettingsDelegate::ImageLoadingChange: | 355 case SettingsDelegate::ImageLoadingChange: |
| 356 for (Frame* frame = mainFrame(); frame; | 356 for (Frame* frame = mainFrame(); frame; |
| 357 frame = frame->tree().traverseNext()) { | 357 frame = frame->tree().traverseNext()) { |
| 358 if (frame->isLocalFrame()) { | 358 if (frame->isLocalFrame()) { |
| 359 toLocalFrame(frame)->document()->fetcher()->setImagesEnabled( | 359 toLocalFrame(frame)->document()->fetcher()->setImagesEnabled( |
| 360 settings().imagesEnabled()); | 360 settings().GetImagesEnabled()); |
| 361 toLocalFrame(frame)->document()->fetcher()->setAutoLoadImages( | 361 toLocalFrame(frame)->document()->fetcher()->setAutoLoadImages( |
| 362 settings().loadsImagesAutomatically()); | 362 settings().GetLoadsImagesAutomatically()); |
| 363 } | 363 } |
| 364 } | 364 } |
| 365 break; | 365 break; |
| 366 case SettingsDelegate::TextAutosizingChange: | 366 case SettingsDelegate::TextAutosizingChange: |
| 367 if (!mainFrame() || !mainFrame()->isLocalFrame()) | 367 if (!mainFrame() || !mainFrame()->isLocalFrame()) |
| 368 break; | 368 break; |
| 369 if (TextAutosizer* textAutosizer = | 369 if (TextAutosizer* textAutosizer = |
| 370 deprecatedLocalMainFrame()->document()->textAutosizer()) | 370 deprecatedLocalMainFrame()->document()->textAutosizer()) |
| 371 textAutosizer->updatePageInfoInAllFrames(); | 371 textAutosizer->updatePageInfoInAllFrames(); |
| 372 break; | 372 break; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 frame = frame->tree().traverseNext()) { | 409 frame = frame->tree().traverseNext()) { |
| 410 if (frame->isLocalFrame()) { | 410 if (frame->isLocalFrame()) { |
| 411 Document* doc = toLocalFrame(frame)->document(); | 411 Document* doc = toLocalFrame(frame)->document(); |
| 412 if (doc) | 412 if (doc) |
| 413 HTMLMediaElement::setTextTrackKindUserPreferenceForAllMediaElements( | 413 HTMLMediaElement::setTextTrackKindUserPreferenceForAllMediaElements( |
| 414 doc); | 414 doc); |
| 415 } | 415 } |
| 416 } | 416 } |
| 417 break; | 417 break; |
| 418 case SettingsDelegate::DOMWorldsChange: { | 418 case SettingsDelegate::DOMWorldsChange: { |
| 419 if (!settings().forceMainWorldInitialization()) | 419 if (!settings().GetForceMainWorldInitialization()) |
| 420 break; | 420 break; |
| 421 for (Frame* frame = mainFrame(); frame; | 421 for (Frame* frame = mainFrame(); frame; |
| 422 frame = frame->tree().traverseNext()) { | 422 frame = frame->tree().traverseNext()) { |
| 423 if (!frame->isLocalFrame()) | 423 if (!frame->isLocalFrame()) |
| 424 continue; | 424 continue; |
| 425 LocalFrame* localFrame = toLocalFrame(frame); | 425 LocalFrame* localFrame = toLocalFrame(frame); |
| 426 if (localFrame->loader() | 426 if (localFrame->loader() |
| 427 .stateMachine() | 427 .stateMachine() |
| 428 ->committedFirstRealDocumentLoad()) { | 428 ->committedFirstRealDocumentLoad()) { |
| 429 localFrame->script().initializeMainWorld(); | 429 localFrame->script().initializeMainWorld(); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 : chromeClient(nullptr), | 532 : chromeClient(nullptr), |
| 533 contextMenuClient(nullptr), | 533 contextMenuClient(nullptr), |
| 534 editorClient(nullptr), | 534 editorClient(nullptr), |
| 535 spellCheckerClient(nullptr) {} | 535 spellCheckerClient(nullptr) {} |
| 536 | 536 |
| 537 Page::PageClients::~PageClients() {} | 537 Page::PageClients::~PageClients() {} |
| 538 | 538 |
| 539 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 539 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
| 540 | 540 |
| 541 } // namespace blink | 541 } // namespace blink |
| OLD | NEW |