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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 #include "core/layout/LayoutPart.h" | 26 #include "core/layout/LayoutPart.h" |
27 | 27 |
28 #include "core/dom/AXObjectCache.h" | 28 #include "core/dom/AXObjectCache.h" |
29 #include "core/frame/FrameView.h" | 29 #include "core/frame/FrameView.h" |
30 #include "core/frame/LocalFrame.h" | 30 #include "core/frame/LocalFrame.h" |
31 #include "core/html/HTMLFrameElementBase.h" | 31 #include "core/html/HTMLFrameElementBase.h" |
32 #include "core/layout/HitTestResult.h" | 32 #include "core/layout/HitTestResult.h" |
33 #include "core/layout/Layer.h" | 33 #include "core/layout/Layer.h" |
| 34 #include "core/layout/svg/LayoutSVGRoot.h" |
34 #include "core/paint/BoxPainter.h" | 35 #include "core/paint/BoxPainter.h" |
35 #include "core/paint/PartPainter.h" | 36 #include "core/paint/PartPainter.h" |
36 #include "core/plugins/PluginView.h" | 37 #include "core/plugins/PluginView.h" |
37 #include "core/rendering/RenderView.h" | 38 #include "core/rendering/RenderView.h" |
38 #include "core/rendering/svg/RenderSVGRoot.h" | |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 LayoutPart::LayoutPart(Element* element) | 42 LayoutPart::LayoutPart(Element* element) |
43 : LayoutReplaced(element) | 43 : LayoutReplaced(element) |
44 // Reference counting is used to prevent the part from being destroyed | 44 // Reference counting is used to prevent the part from being destroyed |
45 // while inside the Widget code, which might not be able to handle that. | 45 // while inside the Widget code, which might not be able to handle that. |
46 , m_refCount(1) | 46 , m_refCount(1) |
47 { | 47 { |
48 ASSERT(element); | 48 ASSERT(element); |
(...skipping 260 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 |