| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 if (scrollbar->orientation() == HorizontalScrollbar) { | 104 if (scrollbar->orientation() == HorizontalScrollbar) { |
| 105 result.setX(backRect.x()); | 105 result.setX(backRect.x()); |
| 106 result.setWidth(forwardRect.maxX() - backRect.x()); | 106 result.setWidth(forwardRect.maxX() - backRect.x()); |
| 107 } else { | 107 } else { |
| 108 result.setY(backRect.y()); | 108 result.setY(backRect.y()); |
| 109 result.setHeight(forwardRect.maxY() - backRect.y()); | 109 result.setHeight(forwardRect.maxY() - backRect.y()); |
| 110 } | 110 } |
| 111 return result; | 111 return result; |
| 112 } | 112 } |
| 113 | 113 |
| 114 void LayoutScrollbarTheme::paintScrollCorner(GraphicsContext* context, const Dis
playItemClientWrapper& displayItemClient, const IntRect& cornerRect) | 114 void LayoutScrollbarTheme::paintScrollCorner(GraphicsContext* context, const Dis
playItemClient& displayItemClient, const IntRect& cornerRect) |
| 115 { | 115 { |
| 116 if (DrawingRecorder::useCachedDrawingIfPossible(*context, displayItemClient,
DisplayItem::ScrollbarCorner)) | 116 if (DrawingRecorder::useCachedDrawingIfPossible(*context, displayItemClient,
DisplayItem::ScrollbarCorner)) |
| 117 return; | 117 return; |
| 118 | 118 |
| 119 DrawingRecorder recorder(*context, displayItemClient, DisplayItem::Scrollbar
Corner, cornerRect); | 119 DrawingRecorder recorder(*context, displayItemClient, DisplayItem::Scrollbar
Corner, cornerRect); |
| 120 // FIXME: Implement. | 120 // FIXME: Implement. |
| 121 context->fillRect(cornerRect, Color::white); | 121 context->fillRect(cornerRect, Color::white); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void LayoutScrollbarTheme::paintScrollbarBackground(GraphicsContext* context, co
nst ScrollbarThemeClient* scrollbar) | 124 void LayoutScrollbarTheme::paintScrollbarBackground(GraphicsContext* context, co
nst ScrollbarThemeClient* scrollbar) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 145 { | 145 { |
| 146 ScrollbarPainter(*toLayoutScrollbar(scrollbar)).paintPart(context, ThumbPart
, rect); | 146 ScrollbarPainter(*toLayoutScrollbar(scrollbar)).paintPart(context, ThumbPart
, rect); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void LayoutScrollbarTheme::paintTickmarks(GraphicsContext* context, const Scroll
barThemeClient* scrollbar, const IntRect& rect) | 149 void LayoutScrollbarTheme::paintTickmarks(GraphicsContext* context, const Scroll
barThemeClient* scrollbar, const IntRect& rect) |
| 150 { | 150 { |
| 151 ScrollbarTheme::theme()->paintTickmarks(context, scrollbar, rect); | 151 ScrollbarTheme::theme()->paintTickmarks(context, scrollbar, rect); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } | 154 } |
| OLD | NEW |