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

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

Issue 296743003: Removed RecalcStyleTime. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/svg/SVGFontFaceElement.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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 { 222 {
223 HashSet<Page*>::iterator end = allPages().end(); 223 HashSet<Page*>::iterator end = allPages().end();
224 for (HashSet<Page*>::iterator it = allPages().begin(); it != end; ++it) 224 for (HashSet<Page*>::iterator it = allPages().begin(); it != end; ++it)
225 for (LocalFrame* frame = (*it)->mainFrame(); frame; frame = frame->tree( ).traverseNext()) 225 for (LocalFrame* frame = (*it)->mainFrame(); frame; frame = frame->tree( ).traverseNext())
226 frame->document()->setNeedsStyleRecalc(SubtreeStyleChange); 226 frame->document()->setNeedsStyleRecalc(SubtreeStyleChange);
227 } 227 }
228 228
229 void Page::setNeedsRecalcStyleInAllFrames() 229 void Page::setNeedsRecalcStyleInAllFrames()
230 { 230 {
231 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN ext()) 231 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN ext())
232 frame->document()->styleResolverChanged(RecalcStyleDeferred); 232 frame->document()->styleResolverChanged();
233 } 233 }
234 234
235 void Page::setNeedsLayoutInAllFrames() 235 void Page::setNeedsLayoutInAllFrames()
236 { 236 {
237 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN ext()) { 237 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN ext()) {
238 if (FrameView* view = frame->view()) { 238 if (FrameView* view = frame->view()) {
239 view->setNeedsLayout(); 239 view->setNeedsLayout();
240 view->scheduleRelayout(); 240 view->scheduleRelayout();
241 } 241 }
242 } 242 }
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 , spellCheckerClient(0) 586 , spellCheckerClient(0)
587 , storageClient(0) 587 , storageClient(0)
588 { 588 {
589 } 589 }
590 590
591 Page::PageClients::~PageClients() 591 Page::PageClients::~PageClients()
592 { 592 {
593 } 593 }
594 594
595 } // namespace WebCore 595 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/svg/SVGFontFaceElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698