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

Side by Side Diff: Source/core/rendering/RenderView.cpp

Issue 172753003: Consistently disable the LayoutState for certain layout situations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 ASSERT(m_layoutState == 0); 902 ASSERT(m_layoutState == 0);
903 903
904 pushLayoutStateForCurrentFlowThread(root); 904 pushLayoutStateForCurrentFlowThread(root);
905 m_layoutState = new LayoutState(root); 905 m_layoutState = new LayoutState(root);
906 } 906 }
907 907
908 bool RenderView::shouldDisableLayoutStateForSubtree(RenderObject* renderer) cons t 908 bool RenderView::shouldDisableLayoutStateForSubtree(RenderObject* renderer) cons t
909 { 909 {
910 RenderObject* o = renderer; 910 RenderObject* o = renderer;
911 while (o) { 911 while (o) {
912 if (o->hasColumns() || o->hasTransform() || o->hasReflection()) 912 if (o->shouldDisableLayoutState())
913 return true; 913 return true;
914 o = o->container(); 914 o = o->container();
915 } 915 }
916 return false; 916 return false;
917 } 917 }
918 918
919 void RenderView::updateHitTestResult(HitTestResult& result, const LayoutPoint& p oint) 919 void RenderView::updateHitTestResult(HitTestResult& result, const LayoutPoint& p oint)
920 { 920 {
921 if (result.innerNode()) 921 if (result.innerNode())
922 return; 922 return;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 return viewWidth(IncludeScrollbars) / scale; 1007 return viewWidth(IncludeScrollbars) / scale;
1008 } 1008 }
1009 1009
1010 double RenderView::layoutViewportHeight() const 1010 double RenderView::layoutViewportHeight() const
1011 { 1011 {
1012 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; 1012 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1;
1013 return viewHeight(IncludeScrollbars) / scale; 1013 return viewHeight(IncludeScrollbars) / scale;
1014 } 1014 }
1015 1015
1016 } // namespace WebCore 1016 } // namespace WebCore
OLDNEW
« Source/core/rendering/RenderObject.h ('K') | « Source/core/rendering/RenderView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698