| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // Use to traverse the tree of descendants, excluding descendants of contain
ers (but returning the containers themselves). | 85 // Use to traverse the tree of descendants, excluding descendants of contain
ers (but returning the containers themselves). |
| 86 static RenderObject* nextInPreOrderSkippingDescendantsOfContainers(const Ren
derObject*, const RenderObject* stayWithin); | 86 static RenderObject* nextInPreOrderSkippingDescendantsOfContainers(const Ren
derObject*, const RenderObject* stayWithin); |
| 87 | 87 |
| 88 static const RenderBlock* findDeepestBlockContainingAllText(const RenderBloc
k* cluster); | 88 static const RenderBlock* findDeepestBlockContainingAllText(const RenderBloc
k* cluster); |
| 89 | 89 |
| 90 // Depending on the traversal direction specified, finds the first or the la
st leaf text node child that doesn't | 90 // Depending on the traversal direction specified, finds the first or the la
st leaf text node child that doesn't |
| 91 // belong to any cluster. | 91 // belong to any cluster. |
| 92 static const RenderObject* findFirstTextLeafNotInCluster(const RenderObject*
, size_t& depth, TraversalDirection); | 92 static const RenderObject* findFirstTextLeafNotInCluster(const RenderObject*
, size_t& depth, TraversalDirection); |
| 93 | 93 |
| 94 // Returns groups of narrow descendants of a given autosizing cluster. The g
roups are combined |
| 95 // by the difference between the width of the descendant and the width of th
e parent cluster's |
| 96 // |blockContainingAllText|. |
| 97 static void getNarrowDescendantsGroupedByWidth(const TextAutosizingClusterIn
fo& parentClusterInfo, Vector<Vector<TextAutosizingClusterInfo> >&); |
| 98 |
| 94 Document* m_document; | 99 Document* m_document; |
| 95 }; | 100 }; |
| 96 | 101 |
| 97 } // namespace WebCore | 102 } // namespace WebCore |
| 98 | 103 |
| 99 #endif // ENABLE(TEXT_AUTOSIZING) | 104 #endif // ENABLE(TEXT_AUTOSIZING) |
| 100 | 105 |
| 101 #endif // TextAutosizer_h | 106 #endif // TextAutosizer_h |
| OLD | NEW |