| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 class RenderInline; | 40 class RenderInline; |
| 41 class RenderLayerModelObject; | 41 class RenderLayerModelObject; |
| 42 class RenderObject; | 42 class RenderObject; |
| 43 | 43 |
| 44 /* | 44 /* |
| 45 * Paint the object and its children, clipped by (x|y|w|h). | 45 * Paint the object and its children, clipped by (x|y|w|h). |
| 46 * (tx|ty) is the calculated position of the parent | 46 * (tx|ty) is the calculated position of the parent |
| 47 */ | 47 */ |
| 48 struct PaintInfo { | 48 struct PaintInfo { |
| 49 PaintInfo(GraphicsContext* newContext, const IntRect& newRect, PaintPhase ne
wPhase, PaintBehavior newPaintBehavior, | 49 PaintInfo(GraphicsContext* newContext, const IntRect& newRect, PaintPhase ne
wPhase, |
| 50 RenderObject* newPaintingRoot = 0, ListHashSet<RenderInline*>* newOutlin
eObjects = 0, | 50 RenderObject* newPaintingRoot = 0, ListHashSet<RenderInline*>* newOutlin
eObjects = 0, |
| 51 const RenderLayerModelObject* newPaintContainer = 0) | 51 const RenderLayerModelObject* newPaintContainer = 0) |
| 52 : context(newContext) | 52 : context(newContext) |
| 53 , rect(newRect) | 53 , rect(newRect) |
| 54 , phase(newPhase) | 54 , phase(newPhase) |
| 55 , paintBehavior(newPaintBehavior) | |
| 56 , paintingRoot(newPaintingRoot) | 55 , paintingRoot(newPaintingRoot) |
| 57 , m_paintContainer(newPaintContainer) | 56 , m_paintContainer(newPaintContainer) |
| 58 , m_outlineObjects(newOutlineObjects) | 57 , m_outlineObjects(newOutlineObjects) |
| 59 { | 58 { |
| 60 } | 59 } |
| 61 | 60 |
| 62 void updatePaintingRootForChildren(const RenderObject* renderer) | 61 void updatePaintingRootForChildren(const RenderObject* renderer) |
| 63 { | 62 { |
| 64 if (!paintingRoot) | 63 if (!paintingRoot) |
| 65 return; | 64 return; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 95 static IntRect infiniteRect() { return IntRect(LayoutRect::infiniteRect());
} | 94 static IntRect infiniteRect() { return IntRect(LayoutRect::infiniteRect());
} |
| 96 const RenderLayerModelObject* paintContainer() const { return m_paintContain
er; } | 95 const RenderLayerModelObject* paintContainer() const { return m_paintContain
er; } |
| 97 | 96 |
| 98 ListHashSet<RenderInline*>* outlineObjects() { return m_outlineObjects; } | 97 ListHashSet<RenderInline*>* outlineObjects() { return m_outlineObjects; } |
| 99 void setOutlineObjects(ListHashSet<RenderInline*>* objects) { m_outlineObjec
ts = objects; } | 98 void setOutlineObjects(ListHashSet<RenderInline*>* objects) { m_outlineObjec
ts = objects; } |
| 100 | 99 |
| 101 // FIXME: Introduce setters/getters at some point. Requires a lot of changes
throughout rendering/. | 100 // FIXME: Introduce setters/getters at some point. Requires a lot of changes
throughout rendering/. |
| 102 GraphicsContext* context; | 101 GraphicsContext* context; |
| 103 IntRect rect; | 102 IntRect rect; |
| 104 PaintPhase phase; | 103 PaintPhase phase; |
| 105 PaintBehavior paintBehavior; | |
| 106 RenderObject* paintingRoot; // used to draw just one element and its visual
kids | 104 RenderObject* paintingRoot; // used to draw just one element and its visual
kids |
| 107 | 105 |
| 108 private: | 106 private: |
| 109 const RenderLayerModelObject* m_paintContainer; // the layer object that ori
ginates the current painting | 107 const RenderLayerModelObject* m_paintContainer; // the layer object that ori
ginates the current painting |
| 110 ListHashSet<RenderInline*>* m_outlineObjects; // used to list outlines that
should be painted by a block with inline children | 108 ListHashSet<RenderInline*>* m_outlineObjects; // used to list outlines that
should be painted by a block with inline children |
| 111 }; | 109 }; |
| 112 | 110 |
| 113 } // namespace blink | 111 } // namespace blink |
| 114 | 112 |
| 115 #endif // SKY_ENGINE_CORE_RENDERING_PAINTINFO_H_ | 113 #endif // SKY_ENGINE_CORE_RENDERING_PAINTINFO_H_ |
| OLD | NEW |