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

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

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use AtomicString Created 6 years, 2 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 | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | 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
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 { 227 {
228 m_openedByDOM = true; 228 m_openedByDOM = true;
229 } 229 }
230 230
231 void Page::scheduleForcedStyleRecalcForAllPages() 231 void Page::scheduleForcedStyleRecalcForAllPages()
232 { 232 {
233 HashSet<Page*>::iterator end = allPages().end(); 233 HashSet<Page*>::iterator end = allPages().end();
234 for (HashSet<Page*>::iterator it = allPages().begin(); it != end; ++it) 234 for (HashSet<Page*>::iterator it = allPages().begin(); it != end; ++it)
235 for (Frame* frame = (*it)->mainFrame(); frame; frame = frame->tree().tra verseNext()) { 235 for (Frame* frame = (*it)->mainFrame(); frame; frame = frame->tree().tra verseNext()) {
236 if (frame->isLocalFrame()) 236 if (frame->isLocalFrame())
237 toLocalFrame(frame)->document()->setNeedsStyleRecalc(SubtreeStyl eChange); 237 toLocalFrame(frame)->document()->setNeedsStyleRecalc(SubtreeStyl eChange, StyleChangeReasonForTracing::create(StyleChangeReason::PlatformColorCha nge));
238 } 238 }
239 } 239 }
240 240
241 void Page::setNeedsRecalcStyleInAllFrames() 241 void Page::setNeedsRecalcStyleInAllFrames()
242 { 242 {
243 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) { 243 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) {
244 if (frame->isLocalFrame()) 244 if (frame->isLocalFrame())
245 toLocalFrame(frame)->document()->styleResolverChanged(); 245 toLocalFrame(frame)->document()->styleResolverChanged();
246 } 246 }
247 } 247 }
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 , spellCheckerClient(0) 664 , spellCheckerClient(0)
665 , storageClient(0) 665 , storageClient(0)
666 { 666 {
667 } 667 }
668 668
669 Page::PageClients::~PageClients() 669 Page::PageClients::~PageClients()
670 { 670 {
671 } 671 }
672 672
673 } // namespace blink 673 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698