| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 setLocation(rect.location() - toSize(paintOffset)); | 179 setLocation(rect.location() - toSize(paintOffset)); |
| 180 setWidth(rect.width()); | 180 setWidth(rect.width()); |
| 181 setHeight(rect.height()); | 181 setHeight(rect.height()); |
| 182 | 182 |
| 183 if (graphicsContext->paintingDisabled()) | 183 if (graphicsContext->paintingDisabled()) |
| 184 return; | 184 return; |
| 185 | 185 |
| 186 // Now do the paint. | 186 // Now do the paint. |
| 187 PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBl
ockBackground, PaintBehaviorNormal); | 187 PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBl
ockBackground, PaintBehaviorNormal); |
| 188 paint(paintInfo, paintOffset); | 188 paint(paintInfo, paintOffset); |
| 189 paintInfo.phase = PaintPhaseChildBlockBackgrounds; | 189 paintInfo.setPhase(PaintPhaseChildBlockBackgrounds); |
| 190 paint(paintInfo, paintOffset); | 190 paint(paintInfo, paintOffset); |
| 191 paintInfo.phase = PaintPhaseFloat; | 191 paintInfo.setPhase(PaintPhaseFloat); |
| 192 paint(paintInfo, paintOffset); | 192 paint(paintInfo, paintOffset); |
| 193 paintInfo.phase = PaintPhaseForeground; | 193 paintInfo.setPhase(PaintPhaseForeground); |
| 194 paint(paintInfo, paintOffset); | 194 paint(paintInfo, paintOffset); |
| 195 paintInfo.phase = PaintPhaseOutline; | 195 paintInfo.setPhase(PaintPhaseOutline); |
| 196 paint(paintInfo, paintOffset); | 196 paint(paintInfo, paintOffset); |
| 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 |