| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 return nodeAtPointOverWidget(request, result, locationInContainer, accumulat
edOffset, action); | 175 return nodeAtPointOverWidget(request, result, locationInContainer, accumulat
edOffset, action); |
| 176 } | 176 } |
| 177 | 177 |
| 178 CompositingReasons LayoutPart::additionalCompositingReasons() const | 178 CompositingReasons LayoutPart::additionalCompositingReasons() const |
| 179 { | 179 { |
| 180 if (requiresAcceleratedCompositing()) | 180 if (requiresAcceleratedCompositing()) |
| 181 return CompositingReasonIFrame; | 181 return CompositingReasonIFrame; |
| 182 return CompositingReasonNone; | 182 return CompositingReasonNone; |
| 183 } | 183 } |
| 184 | 184 |
| 185 void LayoutPart::styleDidChange(StyleDifference diff, const LayoutStyle* oldStyl
e) | 185 void LayoutPart::styleDidChange(StyleDifference diff, const ComputedStyle* oldSt
yle) |
| 186 { | 186 { |
| 187 LayoutReplaced::styleDidChange(diff, oldStyle); | 187 LayoutReplaced::styleDidChange(diff, oldStyle); |
| 188 Widget* widget = this->widget(); | 188 Widget* widget = this->widget(); |
| 189 | 189 |
| 190 if (!widget) | 190 if (!widget) |
| 191 return; | 191 return; |
| 192 | 192 |
| 193 // If the iframe has custom scrollbars, recalculate their style. | 193 // If the iframe has custom scrollbars, recalculate their style. |
| 194 if (widget && widget->isFrameView()) | 194 if (widget && widget->isFrameView()) |
| 195 toFrameView(widget)->recalculateCustomScrollbarStyle(); | 195 toFrameView(widget)->recalculateCustomScrollbarStyle(); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 if (widget->frameRect() == newFrame) | 323 if (widget->frameRect() == newFrame) |
| 324 return false; | 324 return false; |
| 325 | 325 |
| 326 RefPtrWillBeRawPtr<LayoutPart> protector(this); | 326 RefPtrWillBeRawPtr<LayoutPart> protector(this); |
| 327 RefPtrWillBeRawPtr<Node> protectedNode(node()); | 327 RefPtrWillBeRawPtr<Node> protectedNode(node()); |
| 328 widget->setFrameRect(newFrame); | 328 widget->setFrameRect(newFrame); |
| 329 return widget->frameRect().size() != newFrame.size(); | 329 return widget->frameRect().size() != newFrame.size(); |
| 330 } | 330 } |
| 331 | 331 |
| 332 } | 332 } |
| OLD | NEW |