| 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, 2012 Google Inc. All rights reserved. | 7 * Copyright (C) 2010, 2012 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 m_layer = adoptPtr(new RenderLayer(this, type)); | 55 m_layer = adoptPtr(new RenderLayer(this, type)); |
| 56 setHasLayer(true); | 56 setHasLayer(true); |
| 57 m_layer->insertOnlyThisLayer(); | 57 m_layer->insertOnlyThisLayer(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 bool RenderLayerModelObject::hasSelfPaintingLayer() const | 60 bool RenderLayerModelObject::hasSelfPaintingLayer() const |
| 61 { | 61 { |
| 62 return m_layer && m_layer->isSelfPaintingLayer(); | 62 return m_layer && m_layer->isSelfPaintingLayer(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 ScrollableArea* RenderLayerModelObject::scrollableArea() const | |
| 66 { | |
| 67 return m_layer ? m_layer->scrollableArea() : 0; | |
| 68 } | |
| 69 | |
| 70 void RenderLayerModelObject::willBeDestroyed() | 65 void RenderLayerModelObject::willBeDestroyed() |
| 71 { | 66 { |
| 72 RenderObject::willBeDestroyed(); | 67 RenderObject::willBeDestroyed(); |
| 73 destroyLayer(); | 68 destroyLayer(); |
| 74 } | 69 } |
| 75 | 70 |
| 76 void RenderLayerModelObject::styleWillChange(StyleDifference diff, const RenderS
tyle& newStyle) | 71 void RenderLayerModelObject::styleWillChange(StyleDifference diff, const RenderS
tyle& newStyle) |
| 77 { | 72 { |
| 78 if (RenderStyle* oldStyle = style()) { | 73 if (RenderStyle* oldStyle = style()) { |
| 79 if (parent()) { | 74 if (parent()) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 if (layer()) { | 107 if (layer()) { |
| 113 // FIXME: Ideally we shouldn't need this setter but we can't easily infe
r an overflow-only layer | 108 // FIXME: Ideally we shouldn't need this setter but we can't easily infe
r an overflow-only layer |
| 114 // from the style. | 109 // from the style. |
| 115 layer()->setLayerType(type); | 110 layer()->setLayerType(type); |
| 116 layer()->styleChanged(diff, oldStyle); | 111 layer()->styleChanged(diff, oldStyle); |
| 117 } | 112 } |
| 118 } | 113 } |
| 119 | 114 |
| 120 } // namespace blink | 115 } // namespace blink |
| 121 | 116 |
| OLD | NEW |