| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 305 |
| 306 if (style()->hasBorderRadius()) | 306 if (style()->hasBorderRadius()) |
| 307 paintInfo.context->restore(); | 307 paintInfo.context->restore(); |
| 308 | 308 |
| 309 // Paint a partially transparent wash over selected widgets. | 309 // Paint a partially transparent wash over selected widgets. |
| 310 if (isSelected() && !document()->printing()) { | 310 if (isSelected() && !document()->printing()) { |
| 311 // FIXME: selectionRect() is in absolute, not painting coordinates. | 311 // FIXME: selectionRect() is in absolute, not painting coordinates. |
| 312 paintInfo.context->fillRect(pixelSnappedIntRect(selectionRect()), select
ionBackgroundColor(), style()->colorSpace()); | 312 paintInfo.context->fillRect(pixelSnappedIntRect(selectionRect()), select
ionBackgroundColor(), style()->colorSpace()); |
| 313 } | 313 } |
| 314 | 314 |
| 315 if (style()->resize() != RESIZE_NONE) | 315 if (hasLayer() && layer()->canResize()) |
| 316 layer()->paintResizer(paintInfo.context, roundedIntPoint(adjustedPaintOf
fset), paintInfo.rect); | 316 layer()->paintResizer(paintInfo.context, roundedIntPoint(adjustedPaintOf
fset), paintInfo.rect); |
| 317 } | 317 } |
| 318 | 318 |
| 319 void RenderWidget::setOverlapTestResult(bool isOverlapped) | 319 void RenderWidget::setOverlapTestResult(bool isOverlapped) |
| 320 { | 320 { |
| 321 ASSERT(m_widget); | 321 ASSERT(m_widget); |
| 322 ASSERT(m_widget->isFrameView()); | 322 ASSERT(m_widget->isFrameView()); |
| 323 static_cast<FrameView*>(m_widget.get())->setIsOverlapped(isOverlapped); | 323 static_cast<FrameView*>(m_widget.get())->setIsOverlapped(isOverlapped); |
| 324 } | 324 } |
| 325 | 325 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const | 394 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const |
| 395 { | 395 { |
| 396 if (widget() && widget()->isPluginViewBase()) { | 396 if (widget() && widget()->isPluginViewBase()) { |
| 397 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. | 397 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. |
| 398 return DoNotSetCursor; | 398 return DoNotSetCursor; |
| 399 } | 399 } |
| 400 return RenderReplaced::getCursor(point, cursor); | 400 return RenderReplaced::getCursor(point, cursor); |
| 401 } | 401 } |
| 402 | 402 |
| 403 } // namespace WebCore | 403 } // namespace WebCore |
| OLD | NEW |