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

Side by Side Diff: sky/engine/core/frame/FrameView.cpp

Issue 838003008: Get rid of ensureStyleResolver(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/dom/Text.cpp ('k') | sky/engine/core/html/canvas/CanvasRenderingContext2D.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 m_inSynchronousPostLayout = true; 228 m_inSynchronousPostLayout = true;
229 performPostLayoutTasks(); 229 performPostLayoutTasks();
230 m_inSynchronousPostLayout = false; 230 m_inSynchronousPostLayout = false;
231 } 231 }
232 232
233 Document* document = m_frame->document(); 233 Document* document = m_frame->document();
234 if (wasViewportResized()) 234 if (wasViewportResized())
235 document->notifyResizeForViewportUnits(); 235 document->notifyResizeForViewportUnits();
236 236
237 // Viewport-dependent media queries may cause us to need completely differen t style information. 237 // Viewport-dependent media queries may cause us to need completely differen t style information.
238 if (!document->styleResolver() || document->styleResolver()->mediaQueryAffec tedByViewportChange()) { 238 if (document->styleResolver().mediaQueryAffectedByViewportChange()) {
239 document->styleResolverChanged(); 239 document->styleResolverChanged();
240 document->mediaQueryAffectingValueChanged(); 240 document->mediaQueryAffectingValueChanged();
241 } else { 241 } else {
242 document->evaluateMediaQueryList(); 242 document->evaluateMediaQueryList();
243 } 243 }
244 244
245 document->updateRenderTreeIfNeeded(); 245 document->updateRenderTreeIfNeeded();
246 lifecycle().advanceTo(DocumentLifecycle::StyleClean); 246 lifecycle().advanceTo(DocumentLifecycle::StyleClean);
247 } 247 }
248 248
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 totalObjects = 0; 909 totalObjects = 0;
910 910
911 for (RenderObject* o = root; o; o = o->nextInPreOrder(root)) { 911 for (RenderObject* o = root; o; o = o->nextInPreOrder(root)) {
912 ++totalObjects; 912 ++totalObjects;
913 if (o->needsLayout()) 913 if (o->needsLayout())
914 ++needsLayoutObjects; 914 ++needsLayoutObjects;
915 } 915 }
916 } 916 }
917 917
918 } // namespace blink 918 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Text.cpp ('k') | sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698