| 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 "core/layout/LayoutPart.h" | 25 #include "core/layout/LayoutPart.h" |
| 26 | 26 |
| 27 #include "core/dom/AXObjectCache.h" | 27 #include "core/dom/AXObjectCache.h" |
| 28 #include "core/frame/FrameView.h" | 28 #include "core/frame/FrameView.h" |
| 29 #include "core/frame/LocalFrame.h" | 29 #include "core/frame/LocalFrame.h" |
| 30 #include "core/html/HTMLFrameElementBase.h" | 30 #include "core/html/HTMLFrameElementBase.h" |
| 31 #include "core/layout/HitTestResult.h" | 31 #include "core/layout/HitTestResult.h" |
| 32 #include "core/layout/LayoutAnalyzer.h" | 32 #include "core/layout/LayoutAnalyzer.h" |
| 33 #include "core/layout/LayoutView.h" | 33 #include "core/layout/LayoutView.h" |
| 34 #include "core/layout/svg/LayoutSVGRoot.h" | |
| 35 #include "core/paint/BoxPainter.h" | |
| 36 #include "core/paint/PaintLayer.h" | |
| 37 #include "core/paint/PartPainter.h" | 34 #include "core/paint/PartPainter.h" |
| 38 #include "core/plugins/PluginView.h" | 35 #include "core/plugins/PluginView.h" |
| 39 | 36 |
| 40 namespace blink { | 37 namespace blink { |
| 41 | 38 |
| 42 LayoutPart::LayoutPart(Element* element) | 39 LayoutPart::LayoutPart(Element* element) |
| 43 : LayoutReplaced(element) | 40 : LayoutReplaced(element) |
| 44 // Reference counting is used to prevent the part from being destroyed | 41 // 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. | 42 // while inside the Widget code, which might not be able to handle that. |
| 46 , m_refCount(1) | 43 , m_refCount(1) |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 368 |
| 372 bool LayoutPart::isThrottledFrameView() const | 369 bool LayoutPart::isThrottledFrameView() const |
| 373 { | 370 { |
| 374 if (!widget() || !widget()->isFrameView()) | 371 if (!widget() || !widget()->isFrameView()) |
| 375 return false; | 372 return false; |
| 376 const FrameView* frameView = toFrameView(widget()); | 373 const FrameView* frameView = toFrameView(widget()); |
| 377 return frameView->shouldThrottleRendering(); | 374 return frameView->shouldThrottleRendering(); |
| 378 } | 375 } |
| 379 | 376 |
| 380 } // namespace blink | 377 } // namespace blink |
| OLD | NEW |