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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 case SettingsDelegate::FontFamilyChange: | 542 case SettingsDelegate::FontFamilyChange: |
543 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { | 543 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { |
544 if (frame->isLocalFrame()) | 544 if (frame->isLocalFrame()) |
545 toLocalFrame(frame)->document()->styleEngine()->updateGenericFon
tFamilySettings(); | 545 toLocalFrame(frame)->document()->styleEngine()->updateGenericFon
tFamilySettings(); |
546 } | 546 } |
547 setNeedsRecalcStyleInAllFrames(); | 547 setNeedsRecalcStyleInAllFrames(); |
548 break; | 548 break; |
549 case SettingsDelegate::AcceleratedCompositingChange: | 549 case SettingsDelegate::AcceleratedCompositingChange: |
550 updateAcceleratedCompositingSettings(); | 550 updateAcceleratedCompositingSettings(); |
551 break; | 551 break; |
| 552 case SettingsDelegate::UniversalAccessFromFileURLsChange: |
| 553 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { |
| 554 if (frame->isLocalFrame()) |
| 555 toLocalFrame(frame)->document()->securityOrigin()->setUniversalA
ccess(settings().allowUniversalAccessFromFileURLs()); |
| 556 } |
| 557 break; |
552 } | 558 } |
553 } | 559 } |
554 | 560 |
555 void Page::updateAcceleratedCompositingSettings() | 561 void Page::updateAcceleratedCompositingSettings() |
556 { | 562 { |
557 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 563 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
558 if (!frame->isLocalFrame()) | 564 if (!frame->isLocalFrame()) |
559 continue; | 565 continue; |
560 if (FrameView* view = toLocalFrame(frame)->view()) | 566 if (FrameView* view = toLocalFrame(frame)->view()) |
561 view->updateAcceleratedCompositingSettings(); | 567 view->updateAcceleratedCompositingSettings(); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 , spellCheckerClient(0) | 662 , spellCheckerClient(0) |
657 , storageClient(0) | 663 , storageClient(0) |
658 { | 664 { |
659 } | 665 } |
660 | 666 |
661 Page::PageClients::~PageClients() | 667 Page::PageClients::~PageClients() |
662 { | 668 { |
663 } | 669 } |
664 | 670 |
665 } // namespace blink | 671 } // namespace blink |
OLD | NEW |