| 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 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. | 5 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ContainerNode* node() const { return toContainerNode(RenderObject::node());
} | 66 ContainerNode* node() const { return toContainerNode(RenderObject::node());
} |
| 67 | 67 |
| 68 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE; | 68 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE; |
| 69 protected: | 69 protected: |
| 70 void createLayer(LayerType); | 70 void createLayer(LayerType); |
| 71 | 71 |
| 72 virtual void willBeDestroyed() OVERRIDE; | 72 virtual void willBeDestroyed() OVERRIDE; |
| 73 | 73 |
| 74 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer*, co
nst LayoutPoint&, const LayoutRect&) const OVERRIDE; | 74 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer*, co
nst LayoutPoint&, const LayoutRect&) const OVERRIDE; |
| 75 | 75 |
| 76 virtual InvalidationReason invalidatePaintIfNeeded(const PaintInvalidationSt
ate&, const RenderLayerModelObject& newPaintInvalidationContainer); | |
| 77 private: | 76 private: |
| 78 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; } | 77 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; } |
| 79 | 78 |
| 80 OwnPtr<RenderLayer> m_layer; | 79 OwnPtr<RenderLayer> m_layer; |
| 81 | 80 |
| 82 // Used to store state between styleWillChange and styleDidChange | 81 // Used to store state between styleWillChange and styleDidChange |
| 83 static bool s_wasFloating; | 82 static bool s_wasFloating; |
| 84 }; | 83 }; |
| 85 | 84 |
| 86 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderLayerModelObject, isLayerModelObject()); | 85 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderLayerModelObject, isLayerModelObject()); |
| 87 | 86 |
| 88 } // namespace blink | 87 } // namespace blink |
| 89 | 88 |
| 90 #endif // RenderLayerModelObject_h | 89 #endif // RenderLayerModelObject_h |
| OLD | NEW |