| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 IntRect RenderWidget::windowClipRect() const | 352 IntRect RenderWidget::windowClipRect() const |
| 353 { | 353 { |
| 354 if (!m_frameView) | 354 if (!m_frameView) |
| 355 return IntRect(); | 355 return IntRect(); |
| 356 | 356 |
| 357 return intersection(m_frameView->contentsToWindow(m_clipRect), m_frameView->
windowClipRect()); | 357 return intersection(m_frameView->contentsToWindow(m_clipRect), m_frameView->
windowClipRect()); |
| 358 } | 358 } |
| 359 | 359 |
| 360 void RenderWidget::setSelectionState(SelectionState state) | 360 void RenderWidget::setSelectionState(SelectionState state) |
| 361 { | 361 { |
| 362 if (selectionState() != state) { | 362 // The selection state for our containing block hierarchy is updated by the
base class call. |
| 363 RenderReplaced::setSelectionState(state); | 363 RenderReplaced::setSelectionState(state); |
| 364 if (m_widget) | 364 |
| 365 m_widget->setIsSelected(isSelected()); | 365 if (m_widget) |
| 366 } | 366 m_widget->setIsSelected(isSelected()); |
| 367 } | 367 } |
| 368 | 368 |
| 369 void RenderWidget::clearWidget() | 369 void RenderWidget::clearWidget() |
| 370 { | 370 { |
| 371 m_widget = 0; | 371 m_widget = 0; |
| 372 } | 372 } |
| 373 | 373 |
| 374 RenderWidget* RenderWidget::find(const Widget* widget) | 374 RenderWidget* RenderWidget::find(const Widget* widget) |
| 375 { | 375 { |
| 376 return widgetRendererMap().get(widget); | 376 return widgetRendererMap().get(widget); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 390 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const | 390 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const |
| 391 { | 391 { |
| 392 if (widget() && widget()->isPluginViewBase()) { | 392 if (widget() && widget()->isPluginViewBase()) { |
| 393 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. | 393 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. |
| 394 return DoNotSetCursor; | 394 return DoNotSetCursor; |
| 395 } | 395 } |
| 396 return RenderReplaced::getCursor(point, cursor); | 396 return RenderReplaced::getCursor(point, cursor); |
| 397 } | 397 } |
| 398 | 398 |
| 399 } // namespace WebCore | 399 } // namespace WebCore |
| OLD | NEW |