| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |