| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { | 509 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { |
| 509 if (frame->isLocalFrame()) | 510 if (frame->isLocalFrame()) |
| 510 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged
(); | 511 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged
(); |
| 511 } | 512 } |
| 512 setNeedsRecalcStyleInAllFrames(); | 513 setNeedsRecalcStyleInAllFrames(); |
| 513 break; | 514 break; |
| 514 case SettingsDelegate::AccessibilityStateChange: | 515 case SettingsDelegate::AccessibilityStateChange: |
| 515 if (!mainFrame() || !mainFrame()->isLocalFrame()) | 516 if (!mainFrame() || !mainFrame()->isLocalFrame()) |
| 516 break; | 517 break; |
| 517 deprecatedLocalMainFrame()->document()->axObjectCacheOwner().clearAXObje
ctCache(); | 518 deprecatedLocalMainFrame()->document()->axObjectCacheOwner().clearAXObje
ctCache(); |
| 519 break; |
| 520 case SettingsDelegate::ViewportRuleChange: |
| 521 { |
| 522 if (!mainFrame() || !mainFrame()->isLocalFrame()) |
| 523 break; |
| 524 Document* doc = toLocalFrame(mainFrame())->document(); |
| 525 if (!doc || !doc->styleResolver()) |
| 526 break; |
| 527 doc->styleResolver()->viewportStyleResolver()->collectViewportRules(
); |
| 528 } |
| 529 break; |
| 518 } | 530 } |
| 519 } | 531 } |
| 520 | 532 |
| 521 void Page::updateAcceleratedCompositingSettings() | 533 void Page::updateAcceleratedCompositingSettings() |
| 522 { | 534 { |
| 523 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 535 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
| 524 if (!frame->isLocalFrame()) | 536 if (!frame->isLocalFrame()) |
| 525 continue; | 537 continue; |
| 526 if (FrameView* view = toLocalFrame(frame)->view()) | 538 if (FrameView* view = toLocalFrame(frame)->view()) |
| 527 view->updateAcceleratedCompositingSettings(); | 539 view->updateAcceleratedCompositingSettings(); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 , dragClient(nullptr) | 626 , dragClient(nullptr) |
| 615 , spellCheckerClient(nullptr) | 627 , spellCheckerClient(nullptr) |
| 616 { | 628 { |
| 617 } | 629 } |
| 618 | 630 |
| 619 Page::PageClients::~PageClients() | 631 Page::PageClients::~PageClients() |
| 620 { | 632 { |
| 621 } | 633 } |
| 622 | 634 |
| 623 } // namespace blink | 635 } // namespace blink |
| OLD | NEW |