Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 1772513003: No need to re-collect stylesheets for setting type StyleChange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleChangeReason.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "core/page/Page.h" 20 #include "core/page/Page.h"
21 21
22 #include "core/css/resolver/ViewportStyleResolver.h" 22 #include "core/css/resolver/ViewportStyleResolver.h"
23 #include "core/dom/ClientRectList.h" 23 #include "core/dom/ClientRectList.h"
24 #include "core/dom/StyleChangeReason.h"
24 #include "core/dom/VisitedLinkState.h" 25 #include "core/dom/VisitedLinkState.h"
25 #include "core/editing/DragCaretController.h" 26 #include "core/editing/DragCaretController.h"
26 #include "core/editing/commands/UndoStack.h" 27 #include "core/editing/commands/UndoStack.h"
27 #include "core/editing/markers/DocumentMarkerController.h" 28 #include "core/editing/markers/DocumentMarkerController.h"
28 #include "core/events/Event.h" 29 #include "core/events/Event.h"
29 #include "core/fetch/MemoryCache.h" 30 #include "core/fetch/MemoryCache.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/FrameConsole.h" 33 #include "core/frame/FrameConsole.h"
33 #include "core/frame/FrameHost.h" 34 #include "core/frame/FrameHost.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().trav erseNext()) { 235 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().trav erseNext()) {
235 if (frame->isLocalFrame()) 236 if (frame->isLocalFrame())
236 toLocalFrame(frame)->document()->platformColorsChanged(); 237 toLocalFrame(frame)->document()->platformColorsChanged();
237 } 238 }
238 } 239 }
239 240
240 void Page::setNeedsRecalcStyleInAllFrames() 241 void Page::setNeedsRecalcStyleInAllFrames()
241 { 242 {
242 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) { 243 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) {
243 if (frame->isLocalFrame()) 244 if (frame->isLocalFrame())
244 toLocalFrame(frame)->document()->styleEngine().resolverChanged(FullS tyleUpdate); 245 toLocalFrame(frame)->document()->setNeedsStyleRecalc(SubtreeStyleCha nge, StyleChangeReasonForTracing::create(StyleChangeReason::Settings));
245 } 246 }
246 } 247 }
247 248
248 void Page::refreshPlugins() 249 void Page::refreshPlugins()
249 { 250 {
250 if (allPages().isEmpty()) 251 if (allPages().isEmpty())
251 return; 252 return;
252 253
253 PluginData::refresh(); 254 PluginData::refresh();
254 255
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 { 608 {
608 } 609 }
609 610
610 Page::PageClients::~PageClients() 611 Page::PageClients::~PageClients()
611 { 612 {
612 } 613 }
613 614
614 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 615 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
615 616
616 } // namespace blink 617 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleChangeReason.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698