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

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

Issue 550363004: Factor painting code out of RenderBox into a new class called BoxPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix debug build. Created 6 years, 3 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/rendering/RenderBoxModelObject.h
diff --git a/Source/core/rendering/RenderBoxModelObject.h b/Source/core/rendering/RenderBoxModelObject.h
index 9bd701a61fb85b6e052b849acdb4d495d63b2660..9aeae662ca420a99e7dbf382d27b3b9a93753fe9 100644
--- a/Source/core/rendering/RenderBoxModelObject.h
+++ b/Source/core/rendering/RenderBoxModelObject.h
@@ -245,9 +245,6 @@ protected:
bool calculateHasBoxDecorations() const;
void calculateBackgroundImageGeometry(const RenderLayerModelObject* paintContainer, const FillLayer&, const LayoutRect& paintRect, BackgroundImageGeometry&, RenderObject* = 0) const;
- void getBorderEdgeInfo(class BorderEdge[], const RenderStyle*, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;
- bool borderObscuresBackgroundEdge(const FloatSize& contextScale) const;
- bool borderObscuresBackground() const;
RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const;
LayoutRect borderInnerRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance) const;
@@ -262,11 +259,12 @@ protected:
bool hasAutoHeightOrContainingBlockWithAutoHeight() const;
- bool isDocumentElementWithOpaqueBackground() const;
-
+public:
void paintRootBackgroundColor(const PaintInfo&, const LayoutRect&, const Color&);
-public:
+ // FIXME: Slimming Paint: make this private again after moving paint code in this class to paint/
+ bool isDocumentElementWithOpaqueBackground() const;
Stephen Chennney 2014/09/09 19:16:48 I would move these methods up to the existing publ
chrishtr 2014/09/09 19:50:35 Done.
+
static bool shouldAntialiasLines(GraphicsContext*);
// For RenderBlocks and RenderInlines with m_style->styleType() == FIRST_LETTER, this tracks their remaining text fragments

Powered by Google App Engine
This is Rietveld 408576698