Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Side by Side Diff: Source/WebCore/rendering/TextAutosizer.h

Issue 12317102: Merge 143318 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/text-autosizing/narrow-descendants-combined-expected.html ('k') | Source/WebCore/rendering/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698