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

Side by Side Diff: Source/core/rendering/FastTextAutosizer.h

Issue 221193004: Reset multipliers when FTA is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@tot
Patch Set: Created 6 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/rendering/FastTextAutosizer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 void assertMapsAreConsistent(); 191 void assertMapsAreConsistent();
192 #endif 192 #endif
193 }; 193 };
194 194
195 explicit FastTextAutosizer(const Document*); 195 explicit FastTextAutosizer(const Document*);
196 196
197 void beginLayout(RenderBlock*); 197 void beginLayout(RenderBlock*);
198 void endLayout(RenderBlock*); 198 void endLayout(RenderBlock*);
199 void inflateTable(RenderTable*); 199 void inflateTable(RenderTable*);
200 void inflate(RenderBlock*); 200 void inflate(RenderBlock*);
201 bool enabled(); 201 bool enabled() const;
202 bool shouldHandleLayout() const;
202 void setAllTextNeedsLayout(); 203 void setAllTextNeedsLayout();
203 void resetMultipliers(); 204 void resetMultipliers();
204 void prepareClusterStack(const RenderObject*); 205 void prepareClusterStack(const RenderObject*);
205 bool isFingerprintingCandidate(const RenderBlock*); 206 bool isFingerprintingCandidate(const RenderBlock*);
206 bool clusterHasEnoughTextToAutosize(Cluster*, const RenderBlock* widthProvid er = 0); 207 bool clusterHasEnoughTextToAutosize(Cluster*, const RenderBlock* widthProvid er = 0);
207 bool anyClusterHasEnoughTextToAutosize(const BlockSet* roots, const RenderBl ock* widthProvider = 0); 208 bool anyClusterHasEnoughTextToAutosize(const BlockSet* roots, const RenderBl ock* widthProvider = 0);
208 bool clusterWouldHaveEnoughTextToAutosize(const RenderBlock* root, const Ren derBlock* widthProvider = 0); 209 bool clusterWouldHaveEnoughTextToAutosize(const RenderBlock* root, const Ren derBlock* widthProvider = 0);
209 Fingerprint getFingerprint(const RenderObject*); 210 Fingerprint getFingerprint(const RenderObject*);
210 Fingerprint computeFingerprint(const RenderObject*); 211 Fingerprint computeFingerprint(const RenderObject*);
211 Cluster* maybeCreateCluster(const RenderBlock*); 212 Cluster* maybeCreateCluster(const RenderBlock*);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // cluster root. Clusters whose roots share the same fingerprint use the 253 // cluster root. Clusters whose roots share the same fingerprint use the
253 // same multiplier. 254 // same multiplier.
254 SuperclusterMap m_superclusters; 255 SuperclusterMap m_superclusters;
255 ClusterStack m_clusterStack; 256 ClusterStack m_clusterStack;
256 FingerprintMapper m_fingerprintMapper; 257 FingerprintMapper m_fingerprintMapper;
257 }; 258 };
258 259
259 } // namespace WebCore 260 } // namespace WebCore
260 261
261 #endif // FastTextAutosizer_h 262 #endif // FastTextAutosizer_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/FastTextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698