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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 bool boundsChanged = m_widget->frameRect() != frame; | 147 bool boundsChanged = m_widget->frameRect() != frame; |
148 | 148 |
149 if (!boundsChanged && !clipChanged) | 149 if (!boundsChanged && !clipChanged) |
150 return false; | 150 return false; |
151 | 151 |
152 m_clipRect = clipRect; | 152 m_clipRect = clipRect; |
153 | 153 |
154 RenderWidgetProtector protector(this); | 154 RenderWidgetProtector protector(this); |
155 RefPtr<Node> protectedNode(node()); | 155 RefPtr<Node> protectedNode(node()); |
156 m_widget->setFrameRect(roundedIntRect(frame)); | 156 m_widget->setFrameRect(roundedIntRect(frame)); |
| 157 |
| 158 if (clipChanged && !boundsChanged) |
| 159 m_widget->clipRectChanged(); |
157 | 160 |
158 #if USE(ACCELERATED_COMPOSITING) | 161 #if USE(ACCELERATED_COMPOSITING) |
159 if (hasLayer() && layer()->isComposited()) | 162 if (hasLayer() && layer()->isComposited()) |
160 layer()->backing()->updateAfterWidgetResize(); | 163 layer()->backing()->updateAfterWidgetResize(); |
161 #endif | 164 #endif |
162 | 165 |
163 return boundsChanged; | 166 return boundsChanged; |
164 } | 167 } |
165 | 168 |
166 bool RenderWidget::updateWidgetGeometry() | 169 bool RenderWidget::updateWidgetGeometry() |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const | 394 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const |
392 { | 395 { |
393 if (widget() && widget()->isPluginViewBase()) { | 396 if (widget() && widget()->isPluginViewBase()) { |
394 // 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. |
395 return DoNotSetCursor; | 398 return DoNotSetCursor; |
396 } | 399 } |
397 return RenderReplaced::getCursor(point, cursor); | 400 return RenderReplaced::getCursor(point, cursor); |
398 } | 401 } |
399 | 402 |
400 } // namespace WebCore | 403 } // namespace WebCore |
OLD | NEW |