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

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

Issue 145003009: Autosize list markers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@tot
Patch Set: Address review comments. Created 6 years, 11 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/FastTextAutosizer.h
diff --git a/Source/core/rendering/FastTextAutosizer.h b/Source/core/rendering/FastTextAutosizer.h
index de1293d9fa8ad30132904d3b84710cbf17087e4d..7020cbcd0a2e3ccac494344d5cb6432e33bd04fc 100644
--- a/Source/core/rendering/FastTextAutosizer.h
+++ b/Source/core/rendering/FastTextAutosizer.h
@@ -65,6 +65,8 @@ public:
void beginLayout(RenderBlock*);
void endLayout(RenderBlock*);
+ void inflateListItem(RenderBlock*, RenderObject*);
+
private:
struct Cluster {
explicit Cluster(const RenderBlock* root, bool autosize, Cluster* parent)
@@ -126,13 +128,13 @@ private:
Cluster* maybeGetOrCreateCluster(const RenderBlock*);
Cluster* addSupercluster(AtomicString, const RenderBlock*);
const RenderBlock* deepestCommonAncestor(BlockSet&);
- float clusterMultiplier(Cluster*);
+ float clusterMultiplier(Cluster*, const RenderBlock* forceInclude = 0);
void applyMultiplier(RenderObject*, float);
Cluster* currentCluster() const;
RenderObject* nextChildSkippingChildrenOfBlocks(const RenderObject*, const RenderObject*);
- const RenderBlock* findDeepestBlockContainingAllText(const RenderBlock*);
+ const RenderBlock* findDeepestBlockContainingAllText(const RenderBlock*, const RenderBlock* forceInclude = 0);
// Returns the first text leaf that is in the current cluster and not in a descendent cluster.
// The TraversalDirection controls whether we return the first or the last text leaf.
const RenderObject* findTextLeaf(const RenderObject*, size_t&, TextLeafSearch);

Powered by Google App Engine
This is Rietveld 408576698