Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 Document* m_document; | 132 Document* m_document; |
| 133 | 133 |
| 134 HashMap<const RenderObject*, unsigned> m_hashCache; | 134 HashMap<const RenderObject*, unsigned> m_hashCache; |
| 135 | 135 |
| 136 // Mapping from all autosized (i.e. multiplier > 1) cluster hashes to their respective multipliers. | 136 // Mapping from all autosized (i.e. multiplier > 1) cluster hashes to their respective multipliers. |
| 137 HashMap<unsigned, float> m_hashToMultiplier; | 137 HashMap<unsigned, float> m_hashToMultiplier; |
| 138 Vector<unsigned> m_hashesToAutosizeSecondPass; | 138 Vector<unsigned> m_hashesToAutosizeSecondPass; |
| 139 | 139 |
| 140 // Mapping from a cluster hash to the corresponding cluster infos which have not been autosized yet. | 140 // Mapping from a cluster hash to the corresponding cluster infos which have not been autosized yet. |
| 141 HashMap<unsigned, OwnPtr<Vector<TextAutosizingClusterInfo> > > m_nonAutosize dClusters; | 141 HashMap<unsigned, OwnPtr<Vector<TextAutosizingClusterInfo> > > m_nonAutosize dClusters; |
| 142 | |
| 143 bool m_previouslyAutosized; | |
|
esprehn
2014/03/27 23:10:16
You don't initialize this in the constructor.
pdr.
2014/03/27 23:12:04
Do we need to initialize this?
skobes
2014/03/27 23:17:24
Done.
skobes
2014/03/27 23:17:24
Done.
| |
| 142 }; | 144 }; |
| 143 | 145 |
| 144 } // namespace WebCore | 146 } // namespace WebCore |
| 145 | 147 |
| 146 #endif // TextAutosizer_h | 148 #endif // TextAutosizer_h |
| OLD | NEW |