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

Side by Side Diff: sky/engine/core/rendering/PaintInfo.h

Issue 766303002: Remove some dead paint flags. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « sky/engine/core/rendering/LayerPaintingInfo.h ('k') | sky/engine/core/rendering/PaintPhase.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 } 72 }
73 73
74 bool shouldPaintWithinRoot(const RenderObject* renderer) const 74 bool shouldPaintWithinRoot(const RenderObject* renderer) const
75 { 75 {
76 return !paintingRoot || paintingRoot == renderer; 76 return !paintingRoot || paintingRoot == renderer;
77 } 77 }
78 78
79 bool forceBlackText() const { return paintBehavior & PaintBehaviorForceBlack Text; } 79 bool forceBlackText() const { return paintBehavior & PaintBehaviorForceBlack Text; }
80 80
81 bool skipRootBackground() const { return paintBehavior & PaintBehaviorSkipRo otBackground; }
82 bool paintRootBackgroundOnly() const { return paintBehavior & PaintBehaviorR ootBackgroundOnly; }
83
84 void applyTransform(const AffineTransform& localToAncestorTransform, bool id entityStatusUnknown = true) 81 void applyTransform(const AffineTransform& localToAncestorTransform, bool id entityStatusUnknown = true)
85 { 82 {
86 if (identityStatusUnknown && localToAncestorTransform.isIdentity()) 83 if (identityStatusUnknown && localToAncestorTransform.isIdentity())
87 return; 84 return;
88 85
89 context->concatCTM(localToAncestorTransform); 86 context->concatCTM(localToAncestorTransform);
90 87
91 if (rect == infiniteRect()) 88 if (rect == infiniteRect())
92 return; 89 return;
93 90
(...skipping 17 matching lines...) Expand all
111 RenderObject* paintingRoot; // used to draw just one element and its visual kids 108 RenderObject* paintingRoot; // used to draw just one element and its visual kids
112 109
113 private: 110 private:
114 const RenderLayerModelObject* m_paintContainer; // the layer object that ori ginates the current painting 111 const RenderLayerModelObject* m_paintContainer; // the layer object that ori ginates the current painting
115 ListHashSet<RenderInline*>* m_outlineObjects; // used to list outlines that should be painted by a block with inline children 112 ListHashSet<RenderInline*>* m_outlineObjects; // used to list outlines that should be painted by a block with inline children
116 }; 113 };
117 114
118 } // namespace blink 115 } // namespace blink
119 116
120 #endif // SKY_ENGINE_CORE_RENDERING_PAINTINFO_H_ 117 #endif // SKY_ENGINE_CORE_RENDERING_PAINTINFO_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/LayerPaintingInfo.h ('k') | sky/engine/core/rendering/PaintPhase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698