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

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

Issue 13679002: Add StyleChangeState to get rid of a bunch of static state in the render tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 1091
1092 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) 1092 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS)
1093 CustomFilterGlobalContext* RenderView::customFilterGlobalContext() 1093 CustomFilterGlobalContext* RenderView::customFilterGlobalContext()
1094 { 1094 {
1095 if (!m_customFilterGlobalContext) 1095 if (!m_customFilterGlobalContext)
1096 m_customFilterGlobalContext = adoptPtr(new CustomFilterGlobalContext()); 1096 m_customFilterGlobalContext = adoptPtr(new CustomFilterGlobalContext());
1097 return m_customFilterGlobalContext.get(); 1097 return m_customFilterGlobalContext.get();
1098 } 1098 }
1099 #endif 1099 #endif
1100 1100
1101 void RenderView::styleDidChange(StyleDifference diff, const RenderStyle* oldStyl e) 1101 void RenderView::styleDidChange(StyleDifference diff, const RenderStyle* oldStyl e, const StyleChangeState& state)
1102 { 1102 {
1103 RenderBlock::styleDidChange(diff, oldStyle); 1103 RenderBlock::styleDidChange(diff, oldStyle, state);
1104 if (hasRenderNamedFlowThreads()) 1104 if (hasRenderNamedFlowThreads())
1105 flowThreadController()->styleDidChange(); 1105 flowThreadController()->styleDidChange();
1106 } 1106 }
1107 1107
1108 bool RenderView::hasRenderNamedFlowThreads() const 1108 bool RenderView::hasRenderNamedFlowThreads() const
1109 { 1109 {
1110 return m_flowThreadController && m_flowThreadController->hasRenderNamedFlowT hreads(); 1110 return m_flowThreadController && m_flowThreadController->hasRenderNamedFlowT hreads();
1111 } 1111 }
1112 1112
1113 bool RenderView::checkTwoPassLayoutForAutoHeightRegions() const 1113 bool RenderView::checkTwoPassLayoutForAutoHeightRegions() const
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 #endif 1183 #endif
1184 1184
1185 if (layoutState) 1185 if (layoutState)
1186 layoutState->m_isPaginated = m_fragmenting; 1186 layoutState->m_isPaginated = m_fragmenting;
1187 1187
1188 if (m_flowThreadState != RenderObject::NotInsideFlowThread) 1188 if (m_flowThreadState != RenderObject::NotInsideFlowThread)
1189 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); 1189 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState);
1190 } 1190 }
1191 1191
1192 } // namespace WebCore 1192 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698