OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. |
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 case SettingsDelegate::ViewportRuleChange: | 493 case SettingsDelegate::ViewportRuleChange: |
494 { | 494 { |
495 if (!mainFrame() || !mainFrame()->isLocalFrame()) | 495 if (!mainFrame() || !mainFrame()->isLocalFrame()) |
496 break; | 496 break; |
497 Document* doc = toLocalFrame(mainFrame())->document(); | 497 Document* doc = toLocalFrame(mainFrame())->document(); |
498 if (!doc || !doc->styleResolver()) | 498 if (!doc || !doc->styleResolver()) |
499 break; | 499 break; |
500 doc->styleResolver()->viewportStyleResolver()->collectViewportRules(
); | 500 doc->styleResolver()->viewportStyleResolver()->collectViewportRules(
); |
501 } | 501 } |
502 break; | 502 break; |
| 503 case SettingsDelegate::TextTracksVisibilityChange: |
| 504 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { |
| 505 if (frame->isLocalFrame()) { |
| 506 toLocalFrame(frame)->document()->textTracksVisibilityChanged( |
| 507 m_settings->textTracksEnabled()); |
| 508 } |
| 509 } |
| 510 break; |
503 } | 511 } |
504 } | 512 } |
505 | 513 |
506 void Page::updateAcceleratedCompositingSettings() | 514 void Page::updateAcceleratedCompositingSettings() |
507 { | 515 { |
508 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 516 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
509 if (!frame->isLocalFrame()) | 517 if (!frame->isLocalFrame()) |
510 continue; | 518 continue; |
511 if (FrameView* view = toLocalFrame(frame)->view()) | 519 if (FrameView* view = toLocalFrame(frame)->view()) |
512 view->updateAcceleratedCompositingSettings(); | 520 view->updateAcceleratedCompositingSettings(); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 , dragClient(nullptr) | 605 , dragClient(nullptr) |
598 , spellCheckerClient(nullptr) | 606 , spellCheckerClient(nullptr) |
599 { | 607 { |
600 } | 608 } |
601 | 609 |
602 Page::PageClients::~PageClients() | 610 Page::PageClients::~PageClients() |
603 { | 611 { |
604 } | 612 } |
605 | 613 |
606 } // namespace blink | 614 } // namespace blink |
OLD | NEW |