OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "core/frame/Settings.h" | 27 #include "core/frame/Settings.h" |
28 #include "core/frame/UseCounter.h" | 28 #include "core/frame/UseCounter.h" |
29 #include "core/html/HTMLElement.h" | 29 #include "core/html/HTMLElement.h" |
30 #include "core/inspector/InspectorInstrumentation.h" | 30 #include "core/inspector/InspectorInstrumentation.h" |
31 #include "core/rendering/RenderListItem.h" | 31 #include "core/rendering/RenderListItem.h" |
32 #include "core/rendering/RenderObject.h" | 32 #include "core/rendering/RenderObject.h" |
33 #include "core/rendering/RenderText.h" | 33 #include "core/rendering/RenderText.h" |
34 #include "core/rendering/RenderView.h" | 34 #include "core/rendering/RenderView.h" |
35 #include "core/rendering/style/RenderStyle.h" | 35 #include "core/rendering/style/RenderStyle.h" |
36 #include "core/rendering/style/StyleInheritedData.h" | 36 #include "core/rendering/style/StyleInheritedData.h" |
37 #include "platform/TraceEvent.h" | |
38 #include "platform/geometry/IntSize.h" | 37 #include "platform/geometry/IntSize.h" |
39 #include "wtf/StdLibExtras.h" | 38 #include "wtf/StdLibExtras.h" |
| 39 #include "wtf/TraceEvent.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 #define AUTOSIZING_CLUSTER_HASH | 43 #define AUTOSIZING_CLUSTER_HASH |
44 | 44 |
45 using namespace HTMLNames; | 45 using namespace HTMLNames; |
46 | 46 |
47 struct TextAutosizingWindowInfo { | 47 struct TextAutosizingWindowInfo { |
48 IntSize windowSize; | 48 IntSize windowSize; |
49 IntSize minLayoutSize; | 49 IntSize minLayoutSize; |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 if (i + 1 < clusterInfos.size()) { | 844 if (i + 1 < clusterInfos.size()) { |
845 LayoutUnit currentWidth = clusterInfos[i].root->contentLogicalWidth(
); | 845 LayoutUnit currentWidth = clusterInfos[i].root->contentLogicalWidth(
); |
846 LayoutUnit nextWidth = clusterInfos[i + 1].root->contentLogicalWidth
(); | 846 LayoutUnit nextWidth = clusterInfos[i + 1].root->contentLogicalWidth
(); |
847 if (currentWidth - nextWidth > maxWidthDifferenceWithinGroup) | 847 if (currentWidth - nextWidth > maxWidthDifferenceWithinGroup) |
848 groups.grow(groups.size() + 1); | 848 groups.grow(groups.size() + 1); |
849 } | 849 } |
850 } | 850 } |
851 } | 851 } |
852 | 852 |
853 } // namespace WebCore | 853 } // namespace WebCore |
OLD | NEW |