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

Unified Diff: Source/core/rendering/PaintInfo.h

Issue 23494007: Implement getter/setter in PaintInfo::rect. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: No signed off. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/InlineTextBox.cpp ('k') | Source/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/PaintInfo.h
diff --git a/Source/core/rendering/PaintInfo.h b/Source/core/rendering/PaintInfo.h
index 3f7aa80d2bf9946a7abffd7679592b070526a572..1c878394b453bc89b5b82e271feadd54a486a787 100644
--- a/Source/core/rendering/PaintInfo.h
+++ b/Source/core/rendering/PaintInfo.h
@@ -54,7 +54,6 @@ struct PaintInfo {
RenderObject* newPaintingRoot = 0, RenderRegion* region = 0, ListHashSet<RenderInline*>* newOutlineObjects = 0,
OverlapTestRequestMap* overlapTestRequests = 0, const RenderLayerModelObject* newPaintContainer = 0)
: context(newContext)
- , rect(newRect)
, phase(newPhase)
, paintBehavior(newPaintBehavior)
, paintingRoot(newPaintingRoot)
@@ -62,6 +61,7 @@ struct PaintInfo {
, overlapTestRequests(overlapTestRequests)
, m_paintContainer(newPaintContainer)
, m_outlineObjects(newOutlineObjects)
+ , m_rect(newRect)
{
}
@@ -94,10 +94,10 @@ struct PaintInfo {
context->concatCTM(localToAncestorTransform);
- if (rect == infiniteRect())
+ if (m_rect == infiniteRect())
return;
- rect = localToAncestorTransform.inverse().mapRect(rect);
+ m_rect = localToAncestorTransform.inverse().mapRect(m_rect);
}
static IntRect infiniteRect() { return IntRect(LayoutRect::infiniteRect()); }
@@ -106,9 +106,12 @@ struct PaintInfo {
ListHashSet<RenderInline*>* outlineObjects() { return m_outlineObjects; }
void setOutlineObjects(ListHashSet<RenderInline*>* objects) { m_outlineObjects = objects; }
+ const IntRect& rect() const { return m_rect; }
+ IntRect& rect() { return m_rect; }
+ void setRect(const IntRect& rect) { m_rect = rect; }
+
// FIXME: Introduce setters/getters at some point. Requires a lot of changes throughout rendering/.
GraphicsContext* context;
- IntRect rect;
PaintPhase phase;
PaintBehavior paintBehavior;
RenderObject* paintingRoot; // used to draw just one element and its visual kids
@@ -119,6 +122,7 @@ private:
const RenderLayerModelObject* m_paintContainer; // the layer object that originates the current painting
ListHashSet<RenderInline*>* m_outlineObjects; // used to list outlines that should be painted by a block with inline children
+ IntRect m_rect;
};
} // namespace WebCore
« no previous file with comments | « Source/core/rendering/InlineTextBox.cpp ('k') | Source/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698