| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   95 } |   95 } | 
|   96  |   96  | 
|   97 Widget* LayoutPart::widget() const |   97 Widget* LayoutPart::widget() const | 
|   98 { |   98 { | 
|   99     // Plugin widgets are stored in their DOM node. This includes HTMLAppletElem
     ent. |   99     // Plugin widgets are stored in their DOM node. This includes HTMLAppletElem
     ent. | 
|  100     Element* element = toElement(node()); |  100     Element* element = toElement(node()); | 
|  101  |  101  | 
|  102     if (element && element->isFrameOwnerElement()) |  102     if (element && element->isFrameOwnerElement()) | 
|  103         return toHTMLFrameOwnerElement(element)->ownedWidget(); |  103         return toHTMLFrameOwnerElement(element)->ownedWidget(); | 
|  104  |  104  | 
|  105     return 0; |  105     return nullptr; | 
|  106 } |  106 } | 
|  107  |  107  | 
|  108 DeprecatedPaintLayerType LayoutPart::layerTypeRequired() const |  108 DeprecatedPaintLayerType LayoutPart::layerTypeRequired() const | 
|  109 { |  109 { | 
|  110     DeprecatedPaintLayerType type = LayoutReplaced::layerTypeRequired(); |  110     DeprecatedPaintLayerType type = LayoutReplaced::layerTypeRequired(); | 
|  111     if (type != NoDeprecatedPaintLayer) |  111     if (type != NoDeprecatedPaintLayer) | 
|  112         return type; |  112         return type; | 
|  113     return ForcedDeprecatedPaintLayer; |  113     return ForcedDeprecatedPaintLayer; | 
|  114 } |  114 } | 
|  115  |  115  | 
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  319     if (widget->frameRect() == newFrame) |  319     if (widget->frameRect() == newFrame) | 
|  320         return false; |  320         return false; | 
|  321  |  321  | 
|  322     RefPtr<LayoutPart> protector(this); |  322     RefPtr<LayoutPart> protector(this); | 
|  323     RefPtrWillBeRawPtr<Node> protectedNode(node()); |  323     RefPtrWillBeRawPtr<Node> protectedNode(node()); | 
|  324     widget->setFrameRect(newFrame); |  324     widget->setFrameRect(newFrame); | 
|  325     return widget->frameRect().size() != newFrame.size(); |  325     return widget->frameRect().size() != newFrame.size(); | 
|  326 } |  326 } | 
|  327  |  327  | 
|  328 } |  328 } | 
| OLD | NEW |