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

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

Issue 412353004: Clean up GraphicsLayerPaintInfo to remove unused or unnecessary fields. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: f 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
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderText.h
diff --git a/Source/core/rendering/RenderText.h b/Source/core/rendering/RenderText.h
index 97ab8febe31dd1530d9753d0f1a1ddb26a58c64f..8e87a85f145fda3e456842b7f55a29fa07faaab4 100644
--- a/Source/core/rendering/RenderText.h
+++ b/Source/core/rendering/RenderText.h
@@ -120,6 +120,7 @@ public:
LayoutUnit marginRight() const { return minimumValueForLength(style()->marginRight(), 0); }
virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const OVERRIDE FINAL;
+ virtual const RenderLayerModelObject* containerForPaintInvalidation() const OVERRIDE;
InlineTextBox* firstTextBox() const { return m_firstTextBox; }
InlineTextBox* lastTextBox() const { return m_lastTextBox; }
@@ -161,6 +162,10 @@ protected:
virtual InlineTextBox* createTextBox(); // Subclassed by SVG.
private:
+ // RenderText objects don't know how to invalidate paint for themselves, since they don't know how to compute their bounds. Instead, they
+ // invalidate paint for the containing block or layer, as computed by this method.
+ const RenderObject* containingObjectForPaintInvalidation() const;
+
void computePreferredLogicalWidths(float leadWidth);
void computePreferredLogicalWidths(float leadWidth, HashSet<const SimpleFontData*>& fallbackFonts, GlyphOverflow&);
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698