| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Incorporated. 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 | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void addUncommittedWidth(float delta) { m_uncommittedWidth += delta; } | 63 void addUncommittedWidth(float delta) { m_uncommittedWidth += delta; } |
| 64 void commit(); | 64 void commit(); |
| 65 void fitBelowFloats(bool isFirstLine = false); | 65 void fitBelowFloats(bool isFirstLine = false); |
| 66 void setTrailingWhitespaceWidth(float width) { m_trailingWhitespaceWidth = w
idth; } | 66 void setTrailingWhitespaceWidth(float width) { m_trailingWhitespaceWidth = w
idth; } |
| 67 | 67 |
| 68 bool shouldIndentText() const { return m_shouldIndentText == IndentText; } | 68 bool shouldIndentText() const { return m_shouldIndentText == IndentText; } |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 void computeAvailableWidthFromLeftAndRight(); | 71 void computeAvailableWidthFromLeftAndRight(); |
| 72 void updateLineDimension(LayoutUnit newLineTop, LayoutUnit newLineWidth, con
st float& newLineLeft, const float& newLineRight); | 72 void updateLineDimension(LayoutUnit newLineTop, LayoutUnit newLineWidth, con
st float& newLineLeft, const float& newLineRight); |
| 73 void wrapNextToShapeOutside(bool isFirstLine); | |
| 74 | 73 |
| 75 RenderBlockFlow& m_block; | 74 RenderBlockFlow& m_block; |
| 76 float m_uncommittedWidth; | 75 float m_uncommittedWidth; |
| 77 float m_committedWidth; | 76 float m_committedWidth; |
| 78 float m_trailingWhitespaceWidth; | 77 float m_trailingWhitespaceWidth; |
| 79 float m_left; | 78 float m_left; |
| 80 float m_right; | 79 float m_right; |
| 81 float m_availableWidth; | 80 float m_availableWidth; |
| 82 bool m_isFirstLine; | 81 bool m_isFirstLine; |
| 83 IndentTextOrNot m_shouldIndentText; | 82 IndentTextOrNot m_shouldIndentText; |
| 84 }; | 83 }; |
| 85 | 84 |
| 86 } | 85 } |
| 87 | 86 |
| 88 #endif // LineWidth_h | 87 #endif // LineWidth_h |
| OLD | NEW |