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

Side by Side Diff: Source/core/rendering/RenderScrollbarPart.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/RenderRubyRun.cpp ('k') | Source/core/rendering/RenderTable.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 , m_part(part) 41 , m_part(part)
42 { 42 {
43 } 43 }
44 44
45 RenderScrollbarPart::~RenderScrollbarPart() 45 RenderScrollbarPart::~RenderScrollbarPart()
46 { 46 {
47 } 47 }
48 48
49 RenderScrollbarPart* RenderScrollbarPart::createAnonymous(Document* document, Re nderScrollbar* scrollbar, ScrollbarPart part) 49 RenderScrollbarPart* RenderScrollbarPart::createAnonymous(Document* document, Re nderScrollbar* scrollbar, ScrollbarPart part)
50 { 50 {
51 RenderScrollbarPart* renderer = new (document->renderArena()) RenderScrollba rPart(scrollbar, part); 51 RenderScrollbarPart* renderer = new RenderScrollbarPart(scrollbar, part);
52 renderer->setDocumentForAnonymous(document); 52 renderer->setDocumentForAnonymous(document);
53 return renderer; 53 return renderer;
54 } 54 }
55 55
56 void RenderScrollbarPart::layout() 56 void RenderScrollbarPart::layout()
57 { 57 {
58 StackStats::LayoutCheckPoint layoutCheckPoint; 58 StackStats::LayoutCheckPoint layoutCheckPoint;
59 setLocation(LayoutPoint()); // We don't worry about positioning ourselves. W e're just determining our minimum width/height. 59 setLocation(LayoutPoint()); // We don't worry about positioning ourselves. W e're just determining our minimum width/height.
60 if (m_scrollbar->orientation() == HorizontalScrollbar) 60 if (m_scrollbar->orientation() == HorizontalScrollbar)
61 layoutHorizontalPart(); 61 layoutHorizontalPart();
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 RenderObject* RenderScrollbarPart::rendererOwningScrollbar() const 199 RenderObject* RenderScrollbarPart::rendererOwningScrollbar() const
200 { 200 {
201 if (!m_scrollbar) 201 if (!m_scrollbar)
202 return 0; 202 return 0;
203 return m_scrollbar->owningRenderer(); 203 return m_scrollbar->owningRenderer();
204 } 204 }
205 205
206 } 206 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderRubyRun.cpp ('k') | Source/core/rendering/RenderTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698