| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 bool LayoutBoxModelObject::hasAcceleratedCompositing() const | 111 bool LayoutBoxModelObject::hasAcceleratedCompositing() const |
| 112 { | 112 { |
| 113 return view()->compositor()->hasAcceleratedCompositing(); | 113 return view()->compositor()->hasAcceleratedCompositing(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 LayoutBoxModelObject::LayoutBoxModelObject(ContainerNode* node) | 116 LayoutBoxModelObject::LayoutBoxModelObject(ContainerNode* node) |
| 117 : LayoutObject(node) | 117 : LayoutObject(node) |
| 118 { | 118 { |
| 119 } | 119 } |
| 120 | 120 |
| 121 bool LayoutBoxModelObject::usesCompositedScrolling() const |
| 122 { |
| 123 return hasOverflowClip() && hasLayer() && layer()->scrollableArea()->usesCom
positedScrolling(); |
| 124 } |
| 125 |
| 121 LayoutBoxModelObject::~LayoutBoxModelObject() | 126 LayoutBoxModelObject::~LayoutBoxModelObject() |
| 122 { | 127 { |
| 123 // Our layer should have been destroyed and cleared by now | 128 // Our layer should have been destroyed and cleared by now |
| 124 ASSERT(!hasLayer()); | 129 ASSERT(!hasLayer()); |
| 125 ASSERT(!m_layer); | 130 ASSERT(!m_layer); |
| 126 } | 131 } |
| 127 | 132 |
| 128 void LayoutBoxModelObject::willBeDestroyed() | 133 void LayoutBoxModelObject::willBeDestroyed() |
| 129 { | 134 { |
| 130 ImageQualityController::remove(this); | 135 ImageQualityController::remove(this); |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 if (rootElementStyle->hasBackground()) | 1017 if (rootElementStyle->hasBackground()) |
| 1013 return false; | 1018 return false; |
| 1014 | 1019 |
| 1015 if (node() != document().firstBodyElement()) | 1020 if (node() != document().firstBodyElement()) |
| 1016 return false; | 1021 return false; |
| 1017 | 1022 |
| 1018 return true; | 1023 return true; |
| 1019 } | 1024 } |
| 1020 | 1025 |
| 1021 } // namespace blink | 1026 } // namespace blink |
| OLD | NEW |