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

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

Issue 1218013003: Keep a cache of caret painters to avoid recomputing all the time. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: a shade of deduplication blue Created 5 years, 6 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/BlockPainter.h
diff --git a/Source/core/paint/BlockPainter.h b/Source/core/paint/BlockPainter.h
index b319a660b2a300e1a00fb10e5912437cf354f5cf..6e099ecc33e1bd070b0bc13a465c52594dba070c 100644
--- a/Source/core/paint/BlockPainter.h
+++ b/Source/core/paint/BlockPainter.h
@@ -15,6 +15,8 @@ class LayoutFlexibleBox;
class LayoutObject;
class LayoutPoint;
class LayoutRect;
+class LocalFrame;
+class PaintDataCache;
class BlockPainter {
public:
@@ -36,7 +38,7 @@ public:
private:
LayoutRect overflowRectForPaintRejection() const;
- bool hasCaret() const;
+ bool hasCaret(PaintDataCache* = nullptr) const;
void paintCarets(const PaintInfo&, const LayoutPoint&);
void paintContents(const PaintInfo&, const LayoutPoint&);
void paintSelection(const PaintInfo&, const LayoutPoint&);
« no previous file with comments | « Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp ('k') | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698