| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
| 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 213 } |
| 214 | 214 |
| 215 void LayoutPart::paintContents(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) | 215 void LayoutPart::paintContents(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) |
| 216 { | 216 { |
| 217 PartPainter(*this).paintContents(paintInfo, paintOffset); | 217 PartPainter(*this).paintContents(paintInfo, paintOffset); |
| 218 } | 218 } |
| 219 | 219 |
| 220 CursorDirective LayoutPart::getCursor(const LayoutPoint& point, Cursor& cursor)
const | 220 CursorDirective LayoutPart::getCursor(const LayoutPoint& point, Cursor& cursor)
const |
| 221 { | 221 { |
| 222 if (widget() && widget()->isPluginView()) { | 222 if (widget() && widget()->isPluginView()) { |
| 223 // A plug-in is responsible for setting the cursor when the pointer is o
ver it. | 223 // A plugin is responsible for setting the cursor when the pointer is ov
er it. |
| 224 return DoNotSetCursor; | 224 return DoNotSetCursor; |
| 225 } | 225 } |
| 226 return LayoutReplaced::getCursor(point, cursor); | 226 return LayoutReplaced::getCursor(point, cursor); |
| 227 } | 227 } |
| 228 | 228 |
| 229 void LayoutPart::updateOnWidgetChange() | 229 void LayoutPart::updateOnWidgetChange() |
| 230 { | 230 { |
| 231 Widget* widget = this->widget(); | 231 Widget* widget = this->widget(); |
| 232 if (!widget) | 232 if (!widget) |
| 233 return; | 233 return; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 if (widget->frameRect() == newFrame) | 309 if (widget->frameRect() == newFrame) |
| 310 return false; | 310 return false; |
| 311 | 311 |
| 312 RefPtrWillBeRawPtr<LayoutPart> protector(this); | 312 RefPtrWillBeRawPtr<LayoutPart> protector(this); |
| 313 RefPtrWillBeRawPtr<Node> protectedNode(node()); | 313 RefPtrWillBeRawPtr<Node> protectedNode(node()); |
| 314 widget->setFrameRect(newFrame); | 314 widget->setFrameRect(newFrame); |
| 315 return widget->frameRect().size() != newFrame.size(); | 315 return widget->frameRect().size() != newFrame.size(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 } | 318 } |
| OLD | NEW |