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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 return; | 264 return; |
265 | 265 |
266 if (!needsLayout()) | 266 if (!needsLayout()) |
267 updateWidgetGeometry(); | 267 updateWidgetGeometry(); |
268 | 268 |
269 if (style()->visibility() != VISIBLE) { | 269 if (style()->visibility() != VISIBLE) { |
270 widget->hide(); | 270 widget->hide(); |
271 } else { | 271 } else { |
272 widget->show(); | 272 widget->show(); |
273 // FIXME: Why do we repaint in this case, but not the other? | 273 // FIXME: Why do we repaint in this case, but not the other? |
274 repaint(); | 274 paintInvalidationForWholeRenderer(); |
275 } | 275 } |
276 } | 276 } |
277 | 277 |
278 void RenderWidget::updateWidgetPosition() | 278 void RenderWidget::updateWidgetPosition() |
279 { | 279 { |
280 Widget* widget = this->widget(); | 280 Widget* widget = this->widget(); |
281 if (!widget || !node()) // Check the node in case destroy() has been called. | 281 if (!widget || !node()) // Check the node in case destroy() has been called. |
282 return; | 282 return; |
283 | 283 |
284 bool boundsChanged = updateWidgetGeometry(); | 284 bool boundsChanged = updateWidgetGeometry(); |
(...skipping 30 matching lines...) Expand all Loading... |
315 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const | 315 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const |
316 { | 316 { |
317 if (widget() && widget()->isPluginView()) { | 317 if (widget() && widget()->isPluginView()) { |
318 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. | 318 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. |
319 return DoNotSetCursor; | 319 return DoNotSetCursor; |
320 } | 320 } |
321 return RenderReplaced::getCursor(point, cursor); | 321 return RenderReplaced::getCursor(point, cursor); |
322 } | 322 } |
323 | 323 |
324 } // namespace WebCore | 324 } // namespace WebCore |
OLD | NEW |