| OLD | NEW |
| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 BeginLayoutBehavior prepareForLayout(const RenderBlock*); | 210 BeginLayoutBehavior prepareForLayout(const RenderBlock*); |
| 211 void prepareClusterStack(const RenderObject*); | 211 void prepareClusterStack(const RenderObject*); |
| 212 bool isFingerprintingCandidate(const RenderBlock*); | 212 bool isFingerprintingCandidate(const RenderBlock*); |
| 213 bool clusterHasEnoughTextToAutosize(Cluster*, const RenderBlock* widthProvid
er = 0); | 213 bool clusterHasEnoughTextToAutosize(Cluster*, const RenderBlock* widthProvid
er = 0); |
| 214 bool anyClusterHasEnoughTextToAutosize(const BlockSet* roots, const RenderBl
ock* widthProvider = 0); | 214 bool anyClusterHasEnoughTextToAutosize(const BlockSet* roots, const RenderBl
ock* widthProvider = 0); |
| 215 bool clusterWouldHaveEnoughTextToAutosize(const RenderBlock* root, const Ren
derBlock* widthProvider = 0); | 215 bool clusterWouldHaveEnoughTextToAutosize(const RenderBlock* root, const Ren
derBlock* widthProvider = 0); |
| 216 Fingerprint getFingerprint(const RenderObject*); | 216 Fingerprint getFingerprint(const RenderObject*); |
| 217 Fingerprint computeFingerprint(const RenderObject*); | 217 Fingerprint computeFingerprint(const RenderObject*); |
| 218 Cluster* maybeCreateCluster(const RenderBlock*); | 218 Cluster* maybeCreateCluster(const RenderBlock*); |
| 219 Supercluster* getSupercluster(const RenderBlock*); | 219 Supercluster* getSupercluster(const RenderBlock*); |
| 220 const RenderBlock* deepestCommonAncestor(BlockSet&); |
| 220 float clusterMultiplier(Cluster*); | 221 float clusterMultiplier(Cluster*); |
| 221 float superclusterMultiplier(Cluster*); | 222 float superclusterMultiplier(Cluster*); |
| 222 // A cluster's width provider is typically the deepest block containing all
text. | 223 // A cluster's width provider is typically the deepest block containing all
text. |
| 223 // There are exceptions, such as tables and table cells which use the table
itself for width. | 224 // There are exceptions, such as tables and table cells which use the table
itself for width. |
| 224 const RenderBlock* clusterWidthProvider(const RenderBlock*); | 225 const RenderBlock* clusterWidthProvider(const RenderBlock*); |
| 225 const RenderBlock* maxClusterWidthProvider(const Supercluster*, const Render
Block* currentRoot); | |
| 226 // Typically this returns a block's computed width. In the case of tables la
yout, this | 226 // Typically this returns a block's computed width. In the case of tables la
yout, this |
| 227 // width is not yet known so the fixed width is used if it's available, or t
he containing | 227 // width is not yet known so the fixed width is used if it's available, or t
he containing |
| 228 // block's width otherwise. | 228 // block's width otherwise. |
| 229 float widthFromBlock(const RenderBlock*); | 229 float widthFromBlock(const RenderBlock*); |
| 230 float multiplierFromBlock(const RenderBlock*); | 230 float multiplierFromBlock(const RenderBlock*); |
| 231 void applyMultiplier(RenderObject*, float, RelayoutBehavior = AlreadyInLayou
t); | 231 void applyMultiplier(RenderObject*, float, RelayoutBehavior = AlreadyInLayou
t); |
| 232 bool isWiderOrNarrowerDescendant(Cluster*); | 232 bool isWiderOrNarrowerDescendant(Cluster*); |
| 233 bool isLayoutRoot(const RenderBlock*) const; | 233 bool isLayoutRoot(const RenderBlock*) const; |
| 234 | 234 |
| 235 Cluster* currentCluster() const; | 235 Cluster* currentCluster() const; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 260 // same multiplier. | 260 // same multiplier. |
| 261 SuperclusterMap m_superclusters; | 261 SuperclusterMap m_superclusters; |
| 262 ClusterStack m_clusterStack; | 262 ClusterStack m_clusterStack; |
| 263 FingerprintMapper m_fingerprintMapper; | 263 FingerprintMapper m_fingerprintMapper; |
| 264 Vector<RefPtr<RenderStyle> > m_stylesRetainedDuringLayout; | 264 Vector<RefPtr<RenderStyle> > m_stylesRetainedDuringLayout; |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 } // namespace WebCore | 267 } // namespace WebCore |
| 268 | 268 |
| 269 #endif // FastTextAutosizer_h | 269 #endif // FastTextAutosizer_h |
| OLD | NEW |