| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include <algorithm> | 24 #include <algorithm> |
| 25 | 25 |
| 26 #include "core/dom/Document.h" | 26 #include "core/dom/Document.h" |
| 27 #include "core/html/HTMLDivElement.h" | 27 #include "core/html/HTMLDivElement.h" |
| 28 #include "core/html/HTMLElement.h" | 28 #include "core/html/HTMLElement.h" |
| 29 #include "core/html/HTMLMetaElement.h" | 29 #include "core/html/HTMLMetaElement.h" |
| 30 #include "core/inspector/InspectorInstrumentation.h" | 30 #include "core/inspector/InspectorInstrumentation.h" |
| 31 #include "core/page/Settings.h" | 31 #include "core/page/Settings.h" |
| 32 #include "core/platform/chromium/TraceEvent.h" | 32 #include "core/platform/chromium/TraceEvent.h" |
| 33 #include "core/platform/graphics/IntSize.h" | |
| 34 #include "core/rendering/RenderListItem.h" | 33 #include "core/rendering/RenderListItem.h" |
| 35 #include "core/rendering/RenderObject.h" | 34 #include "core/rendering/RenderObject.h" |
| 36 #include "core/rendering/RenderText.h" | 35 #include "core/rendering/RenderText.h" |
| 37 #include "core/rendering/RenderView.h" | 36 #include "core/rendering/RenderView.h" |
| 38 #include "core/rendering/style/RenderStyle.h" | 37 #include "core/rendering/style/RenderStyle.h" |
| 39 #include "core/rendering/style/StyleInheritedData.h" | 38 #include "core/rendering/style/StyleInheritedData.h" |
| 39 #include "platform/geometry/IntSize.h" |
| 40 #include "wtf/StdLibExtras.h" | 40 #include "wtf/StdLibExtras.h" |
| 41 #include "wtf/Vector.h" | 41 #include "wtf/Vector.h" |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 if (i + 1 < clusterInfos.size()) { | 730 if (i + 1 < clusterInfos.size()) { |
| 731 float currentWidth = clusterInfos[i].root->contentLogicalWidth(); | 731 float currentWidth = clusterInfos[i].root->contentLogicalWidth(); |
| 732 float nextWidth = clusterInfos[i + 1].root->contentLogicalWidth(); | 732 float nextWidth = clusterInfos[i + 1].root->contentLogicalWidth(); |
| 733 if (currentWidth - nextWidth > maxWidthDifferenceWithinGroup) | 733 if (currentWidth - nextWidth > maxWidthDifferenceWithinGroup) |
| 734 groups.grow(groups.size() + 1); | 734 groups.grow(groups.size() + 1); |
| 735 } | 735 } |
| 736 } | 736 } |
| 737 } | 737 } |
| 738 | 738 |
| 739 } // namespace WebCore | 739 } // namespace WebCore |
| OLD | NEW |