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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 bool m_hasAutosized; | 233 bool m_hasAutosized; |
234 bool m_settingEnabled; | 234 bool m_settingEnabled; |
235 }; | 235 }; |
236 | 236 |
237 explicit FastTextAutosizer(const Document*); | 237 explicit FastTextAutosizer(const Document*); |
238 | 238 |
239 void beginLayout(RenderBlock*); | 239 void beginLayout(RenderBlock*); |
240 void endLayout(RenderBlock*); | 240 void endLayout(RenderBlock*); |
241 void inflateTable(RenderTable*); | 241 void inflateTable(RenderTable*); |
242 void inflate(RenderBlock*); | 242 void inflate(RenderBlock*); |
243 bool enabled() const; | |
244 bool shouldHandleLayout() const; | 243 bool shouldHandleLayout() const; |
245 void setAllTextNeedsLayout(); | 244 void setAllTextNeedsLayout(); |
246 void resetMultipliers(); | 245 void resetMultipliers(); |
247 BeginLayoutBehavior prepareForLayout(const RenderBlock*); | 246 BeginLayoutBehavior prepareForLayout(const RenderBlock*); |
248 void prepareClusterStack(const RenderObject*); | 247 void prepareClusterStack(const RenderObject*); |
249 bool clusterHasEnoughTextToAutosize(Cluster*, const RenderBlock* widthProvid
er = 0); | 248 bool clusterHasEnoughTextToAutosize(Cluster*, const RenderBlock* widthProvid
er = 0); |
250 bool superclusterHasEnoughTextToAutosize(Supercluster*, const RenderBlock* w
idthProvider = 0); | 249 bool superclusterHasEnoughTextToAutosize(Supercluster*, const RenderBlock* w
idthProvider = 0); |
251 bool clusterWouldHaveEnoughTextToAutosize(const RenderBlock* root, const Ren
derBlock* widthProvider = 0); | 250 bool clusterWouldHaveEnoughTextToAutosize(const RenderBlock* root, const Ren
derBlock* widthProvider = 0); |
252 Fingerprint getFingerprint(const RenderObject*); | 251 Fingerprint getFingerprint(const RenderObject*); |
253 Fingerprint computeFingerprint(const RenderObject*); | 252 Fingerprint computeFingerprint(const RenderObject*); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 FingerprintMapper m_fingerprintMapper; | 289 FingerprintMapper m_fingerprintMapper; |
291 Vector<RefPtr<RenderStyle> > m_stylesRetainedDuringLayout; | 290 Vector<RefPtr<RenderStyle> > m_stylesRetainedDuringLayout; |
292 // FIXME: All frames should share the same m_pageInfo instance. | 291 // FIXME: All frames should share the same m_pageInfo instance. |
293 PageInfo m_pageInfo; | 292 PageInfo m_pageInfo; |
294 bool m_updatePageInfoDeferred; | 293 bool m_updatePageInfoDeferred; |
295 }; | 294 }; |
296 | 295 |
297 } // namespace WebCore | 296 } // namespace WebCore |
298 | 297 |
299 #endif // FastTextAutosizer_h | 298 #endif // FastTextAutosizer_h |
OLD | NEW |