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

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

Issue 1236183003: Add 'printing' flag to PaintInfo (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: PrintAdaption -> Printing; printing -> isPrinting; Comment fixups. Created 5 years, 5 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/paint/ObjectPainter.cpp ('k') | Source/core/paint/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 bool shouldPaintWithinRoot(const LayoutObject* layoutObject) const 72 bool shouldPaintWithinRoot(const LayoutObject* layoutObject) const
73 { 73 {
74 return !paintingRoot || paintingRoot == layoutObject; 74 return !paintingRoot || paintingRoot == layoutObject;
75 } 75 }
76 76
77 bool isRenderingClipPathAsMaskImage() const { return paintBehavior & PaintBe haviorRenderingClipPathAsMask; } 77 bool isRenderingClipPathAsMaskImage() const { return paintBehavior & PaintBe haviorRenderingClipPathAsMask; }
78 78
79 bool skipRootBackground() const { return paintBehavior & PaintBehaviorSkipRo otBackground; } 79 bool skipRootBackground() const { return paintBehavior & PaintBehaviorSkipRo otBackground; }
80 bool paintRootBackgroundOnly() const { return paintBehavior & PaintBehaviorR ootBackgroundOnly; } 80 bool paintRootBackgroundOnly() const { return paintBehavior & PaintBehaviorR ootBackgroundOnly; }
81 bool isPrinting() const { return paintBehavior & PaintBehaviorPrinting; }
81 82
82 DisplayItem::Type displayItemTypeForClipping() const { return DisplayItem::p aintPhaseToClipBoxType(phase); } 83 DisplayItem::Type displayItemTypeForClipping() const { return DisplayItem::p aintPhaseToClipBoxType(phase); }
83 84
84 const LayoutBoxModelObject* paintContainer() const { return m_paintContainer ; } 85 const LayoutBoxModelObject* paintContainer() const { return m_paintContainer ; }
85 86
86 ListHashSet<LayoutInline*>* outlineObjects() const { return m_outlineObjects ; } 87 ListHashSet<LayoutInline*>* outlineObjects() const { return m_outlineObjects ; }
87 void setOutlineObjects(ListHashSet<LayoutInline*>* objects) { m_outlineObjec ts = objects; } 88 void setOutlineObjects(ListHashSet<LayoutInline*>* objects) { m_outlineObjec ts = objects; }
88 89
89 // TODO(jchaffraix): Split the GlobalPaintFlags out of paintBehavior into it s own field. 90 // TODO(jchaffraix): Split the GlobalPaintFlags out of paintBehavior into it s own field.
90 GlobalPaintFlags globalPaintFlags() const { return toGlobalPaintFlags(paintB ehavior); } 91 GlobalPaintFlags globalPaintFlags() const { return toGlobalPaintFlags(paintB ehavior); }
(...skipping 17 matching lines...) Expand all
108 LayoutObject* paintingRoot; // used to draw just one element and its visual kids 109 LayoutObject* paintingRoot; // used to draw just one element and its visual kids
109 110
110 private: 111 private:
111 const LayoutBoxModelObject* m_paintContainer; // the box model object that o riginates the current painting 112 const LayoutBoxModelObject* m_paintContainer; // the box model object that o riginates the current painting
112 ListHashSet<LayoutInline*>* m_outlineObjects; // used to list outlines that should be painted by a block with inline children 113 ListHashSet<LayoutInline*>* m_outlineObjects; // used to list outlines that should be painted by a block with inline children
113 }; 114 };
114 115
115 } // namespace blink 116 } // namespace blink
116 117
117 #endif // PaintInfo_h 118 #endif // PaintInfo_h
OLDNEW
« no previous file with comments | « Source/core/paint/ObjectPainter.cpp ('k') | Source/core/paint/PaintPhase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698