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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 { | 58 { |
59 return adoptPtrWillBeNoop(new TextAutosizer(document)); | 59 return adoptPtrWillBeNoop(new TextAutosizer(document)); |
60 } | 60 } |
61 static float computeAutosizedFontSize(float specifiedSize, float multiplier)
; | 61 static float computeAutosizedFontSize(float specifiedSize, float multiplier)
; |
62 | 62 |
63 void updatePageInfoInAllFrames(); | 63 void updatePageInfoInAllFrames(); |
64 void updatePageInfo(); | 64 void updatePageInfo(); |
65 void record(const LayoutBlock*); | 65 void record(const LayoutBlock*); |
66 void destroy(const LayoutBlock*); | 66 void destroy(const LayoutBlock*); |
67 | 67 |
| 68 bool pageNeedsAutosizing() const; |
| 69 |
68 DECLARE_TRACE(); | 70 DECLARE_TRACE(); |
69 | 71 |
70 class LayoutScope { | 72 class LayoutScope { |
71 public: | 73 public: |
72 explicit LayoutScope(LayoutBlock*); | 74 explicit LayoutScope(LayoutBlock*); |
73 ~LayoutScope(); | 75 ~LayoutScope(); |
74 protected: | 76 protected: |
75 TextAutosizer* m_textAutosizer; | 77 TextAutosizer* m_textAutosizer; |
76 LayoutBlock* m_block; | 78 LayoutBlock* m_block; |
77 }; | 79 }; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 FingerprintMapper m_fingerprintMapper; | 308 FingerprintMapper m_fingerprintMapper; |
307 Vector<RefPtr<ComputedStyle>> m_stylesRetainedDuringLayout; | 309 Vector<RefPtr<ComputedStyle>> m_stylesRetainedDuringLayout; |
308 // FIXME: All frames should share the same m_pageInfo instance. | 310 // FIXME: All frames should share the same m_pageInfo instance. |
309 PageInfo m_pageInfo; | 311 PageInfo m_pageInfo; |
310 bool m_updatePageInfoDeferred; | 312 bool m_updatePageInfoDeferred; |
311 }; | 313 }; |
312 | 314 |
313 } // namespace blink | 315 } // namespace blink |
314 | 316 |
315 #endif // TextAutosizer_h | 317 #endif // TextAutosizer_h |
OLD | NEW |