| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 m_clipRect = clipRect; | 144 m_clipRect = clipRect; |
| 145 | 145 |
| 146 RefPtr<RenderWidget> protector(this); | 146 RefPtr<RenderWidget> protector(this); |
| 147 RefPtr<Node> protectedNode(node()); | 147 RefPtr<Node> protectedNode(node()); |
| 148 m_widget->setFrameRect(newFrame); | 148 m_widget->setFrameRect(newFrame); |
| 149 | 149 |
| 150 if (clipChanged && !boundsChanged) | 150 if (clipChanged && !boundsChanged) |
| 151 m_widget->clipRectChanged(); | 151 m_widget->clipRectChanged(); |
| 152 | 152 |
| 153 if (hasLayer() && layer()->isComposited()) | 153 if (hasLayer() && layer()->compositingState() == PaintsIntoOwnBacking) |
| 154 layer()->backing()->updateAfterWidgetResize(); | 154 layer()->backing()->updateAfterWidgetResize(); |
| 155 | 155 |
| 156 return boundsChanged; | 156 return boundsChanged; |
| 157 } | 157 } |
| 158 | 158 |
| 159 bool RenderWidget::updateWidgetGeometry() | 159 bool RenderWidget::updateWidgetGeometry() |
| 160 { | 160 { |
| 161 LayoutRect contentBox = contentBoxRect(); | 161 LayoutRect contentBox = contentBoxRect(); |
| 162 LayoutRect absoluteContentBox(localToAbsoluteQuad(FloatQuad(contentBox)).bou
ndingBox()); | 162 LayoutRect absoluteContentBox(localToAbsoluteQuad(FloatQuad(contentBox)).bou
ndingBox()); |
| 163 if (m_widget->isFrameView()) { | 163 if (m_widget->isFrameView()) { |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const | 374 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor
) const |
| 375 { | 375 { |
| 376 if (widget() && widget()->isPluginView()) { | 376 if (widget() && widget()->isPluginView()) { |
| 377 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. | 377 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. |
| 378 return DoNotSetCursor; | 378 return DoNotSetCursor; |
| 379 } | 379 } |
| 380 return RenderReplaced::getCursor(point, cursor); | 380 return RenderReplaced::getCursor(point, cursor); |
| 381 } | 381 } |
| 382 | 382 |
| 383 } // namespace WebCore | 383 } // namespace WebCore |
| OLD | NEW |