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

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

Issue 1224933002: Combine outline and focus ring code paths (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 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
Index: Source/core/paint/PaintInfo.h
diff --git a/Source/core/paint/PaintInfo.h b/Source/core/paint/PaintInfo.h
index fc3efaaa9f2cdf1f5b234fc66870fb66d4c1e41f..961baf81061bf2f7b4d283dd73fdfe55b78b5729 100644
--- a/Source/core/paint/PaintInfo.h
+++ b/Source/core/paint/PaintInfo.h
@@ -48,14 +48,12 @@ class LayoutObject;
struct PaintInfo {
PaintInfo(GraphicsContext* newContext, const IntRect& newRect, PaintPhase newPhase, GlobalPaintFlags globalPaintFlags, PaintLayerFlags paintFlags,
- LayoutObject* newPaintingRoot = 0, ListHashSet<LayoutInline*>* newOutlineObjects = 0,
- const LayoutBoxModelObject* newPaintContainer = 0)
+ LayoutObject* newPaintingRoot = 0, const LayoutBoxModelObject* newPaintContainer = 0)
: context(newContext)
, rect(newRect)
, phase(newPhase)
, paintingRoot(newPaintingRoot)
, m_paintContainer(newPaintContainer)
- , m_outlineObjects(newOutlineObjects)
, m_paintFlags(paintFlags)
, m_globalPaintFlags(globalPaintFlags)
{
@@ -89,9 +87,6 @@ struct PaintInfo {
const LayoutBoxModelObject* paintContainer() const { return m_paintContainer; }
- ListHashSet<LayoutInline*>* outlineObjects() const { return m_outlineObjects; }
- void setOutlineObjects(ListHashSet<LayoutInline*>* objects) { m_outlineObjects = objects; }
-
GlobalPaintFlags globalPaintFlags() const { return m_globalPaintFlags; }
PaintLayerFlags paintFlags() const { return m_paintFlags; }
@@ -115,7 +110,6 @@ struct PaintInfo {
private:
const LayoutBoxModelObject* m_paintContainer; // the box model object that originates the current painting
- ListHashSet<LayoutInline*>* m_outlineObjects; // used to list outlines that should be painted by a block with inline children
const PaintLayerFlags m_paintFlags;
const GlobalPaintFlags m_globalPaintFlags;

Powered by Google App Engine
This is Rietveld 408576698