| 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 #include "config.h" | 20 #include "config.h" |
| 21 #include "core/page/Page.h" | 21 #include "core/page/Page.h" |
| 22 | 22 |
| 23 #include "core/css/resolver/ViewportStyleResolver.h" |
| 23 #include "core/dom/ClientRectList.h" | 24 #include "core/dom/ClientRectList.h" |
| 24 #include "core/dom/DocumentMarkerController.h" | 25 #include "core/dom/DocumentMarkerController.h" |
| 25 #include "core/dom/StyleEngine.h" | 26 #include "core/dom/StyleEngine.h" |
| 26 #include "core/dom/VisitedLinkState.h" | 27 #include "core/dom/VisitedLinkState.h" |
| 27 #include "core/editing/Caret.h" | 28 #include "core/editing/Caret.h" |
| 28 #include "core/editing/UndoStack.h" | 29 #include "core/editing/UndoStack.h" |
| 29 #include "core/events/Event.h" | 30 #include "core/events/Event.h" |
| 30 #include "core/fetch/ResourceFetcher.h" | 31 #include "core/fetch/ResourceFetcher.h" |
| 31 #include "core/frame/DOMTimer.h" | 32 #include "core/frame/DOMTimer.h" |
| 32 #include "core/frame/DOMTimerCoordinator.h" | 33 #include "core/frame/DOMTimerCoordinator.h" |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { | 512 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { |
| 512 if (frame->isLocalFrame()) | 513 if (frame->isLocalFrame()) |
| 513 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged
(); | 514 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged
(); |
| 514 } | 515 } |
| 515 setNeedsRecalcStyleInAllFrames(); | 516 setNeedsRecalcStyleInAllFrames(); |
| 516 break; | 517 break; |
| 517 case SettingsDelegate::AccessibilityStateChange: | 518 case SettingsDelegate::AccessibilityStateChange: |
| 518 if (!mainFrame() || !mainFrame()->isLocalFrame()) | 519 if (!mainFrame() || !mainFrame()->isLocalFrame()) |
| 519 break; | 520 break; |
| 520 deprecatedLocalMainFrame()->document()->axObjectCacheOwner().clearAXObje
ctCache(); | 521 deprecatedLocalMainFrame()->document()->axObjectCacheOwner().clearAXObje
ctCache(); |
| 522 break; |
| 523 case SettingsDelegate::ViewportRuleChange: |
| 524 { |
| 525 if (!mainFrame() || !mainFrame()->isLocalFrame()) |
| 526 break; |
| 527 Document* doc = toLocalFrame(mainFrame())->document(); |
| 528 if (!doc || !doc->styleResolver()) |
| 529 break; |
| 530 doc->styleResolver()->viewportStyleResolver()->collectViewportRules(
); |
| 531 } |
| 532 break; |
| 521 } | 533 } |
| 522 } | 534 } |
| 523 | 535 |
| 524 void Page::updateAcceleratedCompositingSettings() | 536 void Page::updateAcceleratedCompositingSettings() |
| 525 { | 537 { |
| 526 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 538 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
| 527 if (!frame->isLocalFrame()) | 539 if (!frame->isLocalFrame()) |
| 528 continue; | 540 continue; |
| 529 if (FrameView* view = toLocalFrame(frame)->view()) | 541 if (FrameView* view = toLocalFrame(frame)->view()) |
| 530 view->updateAcceleratedCompositingSettings(); | 542 view->updateAcceleratedCompositingSettings(); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 , inspectorClient(nullptr) | 632 , inspectorClient(nullptr) |
| 621 , spellCheckerClient(nullptr) | 633 , spellCheckerClient(nullptr) |
| 622 { | 634 { |
| 623 } | 635 } |
| 624 | 636 |
| 625 Page::PageClients::~PageClients() | 637 Page::PageClients::~PageClients() |
| 626 { | 638 { |
| 627 } | 639 } |
| 628 | 640 |
| 629 } // namespace blink | 641 } // namespace blink |
| OLD | NEW |