Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Side by Side Diff: Source/core/layout/PaintInfo.h

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutTableCol.cpp ('k') | Source/core/layout/PaintInvalidationState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 #include "platform/graphics/paint/DisplayItem.h" 34 #include "platform/graphics/paint/DisplayItem.h"
35 #include "platform/transforms/AffineTransform.h" 35 #include "platform/transforms/AffineTransform.h"
36 #include "wtf/HashMap.h" 36 #include "wtf/HashMap.h"
37 #include "wtf/ListHashSet.h" 37 #include "wtf/ListHashSet.h"
38 38
39 #include <limits> 39 #include <limits>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class RenderInline; 43 class RenderInline;
44 class LayoutLayerModelObject; 44 class LayoutBoxModelObject;
45 class LayoutObject; 45 class LayoutObject;
46 46
47 struct PaintInfo { 47 struct PaintInfo {
48 PaintInfo(GraphicsContext* newContext, const IntRect& newRect, PaintPhase ne wPhase, PaintBehavior newPaintBehavior, 48 PaintInfo(GraphicsContext* newContext, const IntRect& newRect, PaintPhase ne wPhase, PaintBehavior newPaintBehavior,
49 LayoutObject* newPaintingRoot = 0, ListHashSet<RenderInline*>* newOutlin eObjects = 0, 49 LayoutObject* newPaintingRoot = 0, ListHashSet<RenderInline*>* newOutlin eObjects = 0,
50 const LayoutLayerModelObject* newPaintContainer = 0) 50 const LayoutBoxModelObject* newPaintContainer = 0)
51 : context(newContext) 51 : context(newContext)
52 , rect(newRect) 52 , rect(newRect)
53 , phase(newPhase) 53 , phase(newPhase)
54 , paintBehavior(newPaintBehavior) 54 , paintBehavior(newPaintBehavior)
55 , paintingRoot(newPaintingRoot) 55 , paintingRoot(newPaintingRoot)
56 , m_paintContainer(newPaintContainer) 56 , m_paintContainer(newPaintContainer)
57 , m_outlineObjects(newOutlineObjects) 57 , m_outlineObjects(newOutlineObjects)
58 { 58 {
59 } 59 }
60 60
(...skipping 15 matching lines...) Expand all
76 } 76 }
77 77
78 bool forceBlackText() const { return paintBehavior & PaintBehaviorForceBlack Text; } 78 bool forceBlackText() const { return paintBehavior & PaintBehaviorForceBlack Text; }
79 bool isRenderingClipPathAsMaskImage() const { return paintBehavior & PaintBe haviorRenderingClipPathAsMask; } 79 bool isRenderingClipPathAsMaskImage() const { return paintBehavior & PaintBe haviorRenderingClipPathAsMask; }
80 80
81 bool skipRootBackground() const { return paintBehavior & PaintBehaviorSkipRo otBackground; } 81 bool skipRootBackground() const { return paintBehavior & PaintBehaviorSkipRo otBackground; }
82 bool paintRootBackgroundOnly() const { return paintBehavior & PaintBehaviorR ootBackgroundOnly; } 82 bool paintRootBackgroundOnly() const { return paintBehavior & PaintBehaviorR ootBackgroundOnly; }
83 83
84 DisplayItem::Type displayItemTypeForClipping() const { return DisplayItem::p aintPhaseToClipBoxType(phase); } 84 DisplayItem::Type displayItemTypeForClipping() const { return DisplayItem::p aintPhaseToClipBoxType(phase); }
85 85
86 const LayoutLayerModelObject* paintContainer() const { return m_paintContain er; } 86 const LayoutBoxModelObject* paintContainer() const { return m_paintContainer ; }
87 87
88 ListHashSet<RenderInline*>* outlineObjects() const { return m_outlineObjects ; } 88 ListHashSet<RenderInline*>* outlineObjects() const { return m_outlineObjects ; }
89 void setOutlineObjects(ListHashSet<RenderInline*>* objects) { m_outlineObjec ts = objects; } 89 void setOutlineObjects(ListHashSet<RenderInline*>* objects) { m_outlineObjec ts = objects; }
90 90
91 // FIXME: Introduce setters/getters at some point. Requires a lot of changes throughout rendering/. 91 // FIXME: Introduce setters/getters at some point. Requires a lot of changes throughout rendering/.
92 GraphicsContext* context; 92 GraphicsContext* context;
93 IntRect rect; // dirty rect used for culling non-intersecting renderers 93 IntRect rect; // dirty rect used for culling non-intersecting renderers
94 PaintPhase phase; 94 PaintPhase phase;
95 PaintBehavior paintBehavior; 95 PaintBehavior paintBehavior;
96 LayoutObject* paintingRoot; // used to draw just one element and its visual kids 96 LayoutObject* paintingRoot; // used to draw just one element and its visual kids
97 97
98 private: 98 private:
99 const LayoutLayerModelObject* m_paintContainer; // the layer object that ori ginates the current painting 99 const LayoutBoxModelObject* m_paintContainer; // the box model object that o riginates the current painting
100 ListHashSet<RenderInline*>* m_outlineObjects; // used to list outlines that should be painted by a block with inline children 100 ListHashSet<RenderInline*>* m_outlineObjects; // used to list outlines that should be painted by a block with inline children
101 }; 101 };
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // PaintInfo_h 105 #endif // PaintInfo_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTableCol.cpp ('k') | Source/core/layout/PaintInvalidationState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698