| 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 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 if (m_widget) | 298 if (m_widget) |
| 299 paintContents(paintInfo, paintOffset); | 299 paintContents(paintInfo, paintOffset); |
| 300 | 300 |
| 301 if (style()->hasBorderRadius()) | 301 if (style()->hasBorderRadius()) |
| 302 paintInfo.context->restore(); | 302 paintInfo.context->restore(); |
| 303 | 303 |
| 304 // Paint a partially transparent wash over selected widgets. | 304 // Paint a partially transparent wash over selected widgets. |
| 305 if (isSelected() && !document()->printing()) { | 305 if (isSelected() && !document()->printing()) { |
| 306 // FIXME: selectionRect() is in absolute, not painting coordinates. | 306 // FIXME: selectionRect() is in absolute, not painting coordinates. |
| 307 paintInfo.context->fillRect(pixelSnappedIntRect(selectionRect()), select
ionBackgroundColor(), style()->colorSpace()); | 307 paintInfo.context->fillRect(pixelSnappedIntRect(selectionRect()), select
ionBackgroundColor()); |
| 308 } | 308 } |
| 309 | 309 |
| 310 if (hasLayer() && layer()->canResize()) | 310 if (hasLayer() && layer()->canResize()) |
| 311 layer()->paintResizer(paintInfo.context, roundedIntPoint(adjustedPaintOf
fset), paintInfo.rect); | 311 layer()->paintResizer(paintInfo.context, roundedIntPoint(adjustedPaintOf
fset), paintInfo.rect); |
| 312 } | 312 } |
| 313 | 313 |
| 314 void RenderWidget::setOverlapTestResult(bool isOverlapped) | 314 void RenderWidget::setOverlapTestResult(bool isOverlapped) |
| 315 { | 315 { |
| 316 ASSERT(m_widget); | 316 ASSERT(m_widget); |
| 317 ASSERT(m_widget->isFrameView()); | 317 ASSERT(m_widget->isFrameView()); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const | 380 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const |
| 381 { | 381 { |
| 382 if (widget() && widget()->isPluginView()) { | 382 if (widget() && widget()->isPluginView()) { |
| 383 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. | 383 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. |
| 384 return DoNotSetCursor; | 384 return DoNotSetCursor; |
| 385 } | 385 } |
| 386 return RenderReplaced::getCursor(point, cursor); | 386 return RenderReplaced::getCursor(point, cursor); |
| 387 } | 387 } |
| 388 | 388 |
| 389 } // namespace WebCore | 389 } // namespace WebCore |
| OLD | NEW |