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

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

Issue 23521004: Remove StackStats. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Windows compile. Created 7 years, 3 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/RenderSlider.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RenderScrollbarPart(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;
59 setLocation(LayoutPoint()); // We don't worry about positioning ourselves. W e're just determining our minimum width/height. 58 setLocation(LayoutPoint()); // We don't worry about positioning ourselves. W e're just determining our minimum width/height.
60 if (m_scrollbar->orientation() == HorizontalScrollbar) 59 if (m_scrollbar->orientation() == HorizontalScrollbar)
61 layoutHorizontalPart(); 60 layoutHorizontalPart();
62 else 61 else
63 layoutVerticalPart(); 62 layoutVerticalPart();
64 63
65 clearNeedsLayout(); 64 clearNeedsLayout();
66 } 65 }
67 66
68 void RenderScrollbarPart::layoutHorizontalPart() 67 void RenderScrollbarPart::layoutHorizontalPart()
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 196 }
198 197
199 RenderObject* RenderScrollbarPart::rendererOwningScrollbar() const 198 RenderObject* RenderScrollbarPart::rendererOwningScrollbar() const
200 { 199 {
201 if (!m_scrollbar) 200 if (!m_scrollbar)
202 return 0; 201 return 0;
203 return m_scrollbar->owningRenderer(); 202 return m_scrollbar->owningRenderer();
204 } 203 }
205 204
206 } 205 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderRubyRun.cpp ('k') | Source/core/rendering/RenderSlider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698