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

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

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 4 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/rendering/RenderView.h ('k') | Source/core/rendering/RenderWidget.h » ('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) 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 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 } 886 }
887 887
888 return size; 888 return size;
889 } 889 }
890 890
891 void RenderView::releaseWidgets(Vector<RenderWidget*>& renderWidgets) 891 void RenderView::releaseWidgets(Vector<RenderWidget*>& renderWidgets)
892 { 892 {
893 size_t size = renderWidgets.size(); 893 size_t size = renderWidgets.size();
894 894
895 for (size_t i = 0; i < size; ++i) 895 for (size_t i = 0; i < size; ++i)
896 renderWidgets[i]->deref(renderArena()); 896 renderWidgets[i]->deref();
897 } 897 }
898 898
899 void RenderView::updateWidgetPositions() 899 void RenderView::updateWidgetPositions()
900 { 900 {
901 // updateWidgetPosition() can possibly cause layout to be re-entered (via pl ug-ins running 901 // updateWidgetPosition() can possibly cause layout to be re-entered (via pl ug-ins running
902 // scripts in response to NPP_SetWindow, for example), so we need to keep th e Widgets 902 // scripts in response to NPP_SetWindow, for example), so we need to keep th e Widgets
903 // alive during enumeration. 903 // alive during enumeration.
904 904
905 Vector<RenderWidget*> renderWidgets; 905 Vector<RenderWidget*> renderWidgets;
906 size_t size = getRetainedWidgets(renderWidgets); 906 size_t size = getRetainedWidgets(renderWidgets);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 { 1008 {
1009 Frame* frame = m_frameView->frame(); 1009 Frame* frame = m_frameView->frame();
1010 return frame ? frame->pageZoomFactor() : 1; 1010 return frame ? frame->pageZoomFactor() : 1;
1011 } 1011 }
1012 1012
1013 void RenderView::pushLayoutState(RenderObject* root) 1013 void RenderView::pushLayoutState(RenderObject* root)
1014 { 1014 {
1015 ASSERT(m_layoutStateDisableCount == 0); 1015 ASSERT(m_layoutStateDisableCount == 0);
1016 ASSERT(m_layoutState == 0); 1016 ASSERT(m_layoutState == 0);
1017 1017
1018 m_layoutState = new (renderArena()) LayoutState(root); 1018 m_layoutState = new LayoutState(root);
1019 } 1019 }
1020 1020
1021 bool RenderView::shouldDisableLayoutStateForSubtree(RenderObject* renderer) cons t 1021 bool RenderView::shouldDisableLayoutStateForSubtree(RenderObject* renderer) cons t
1022 { 1022 {
1023 RenderObject* o = renderer; 1023 RenderObject* o = renderer;
1024 while (o) { 1024 while (o) {
1025 if (o->hasColumns() || o->hasTransform() || o->hasReflection()) 1025 if (o->hasColumns() || o->hasTransform() || o->hasReflection())
1026 return true; 1026 return true;
1027 o = o->container(); 1027 o = o->container();
1028 } 1028 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 #endif 1148 #endif
1149 1149
1150 if (layoutState) 1150 if (layoutState)
1151 layoutState->m_isPaginated = m_fragmenting; 1151 layoutState->m_isPaginated = m_fragmenting;
1152 1152
1153 if (m_flowThreadState != RenderObject::NotInsideFlowThread) 1153 if (m_flowThreadState != RenderObject::NotInsideFlowThread)
1154 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); 1154 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState);
1155 } 1155 }
1156 1156
1157 } // namespace WebCore 1157 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderView.h ('k') | Source/core/rendering/RenderWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698