| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. | 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 4 * All right reserved. | 4 * All right reserved. |
| 5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 UpdateLogicalWidthForRightAlignedBlock( | 747 UpdateLogicalWidthForRightAlignedBlock( |
| 748 Style()->IsLeftToRightDirection(), trailing_space_run, logical_left, | 748 Style()->IsLeftToRightDirection(), trailing_space_run, logical_left, |
| 749 total_logical_width, available_logical_width); | 749 total_logical_width, available_logical_width); |
| 750 else | 750 else |
| 751 UpdateLogicalWidthForLeftAlignedBlock( | 751 UpdateLogicalWidthForLeftAlignedBlock( |
| 752 Style()->IsLeftToRightDirection(), trailing_space_run, logical_left, | 752 Style()->IsLeftToRightDirection(), trailing_space_run, logical_left, |
| 753 total_logical_width, available_logical_width); | 753 total_logical_width, available_logical_width); |
| 754 break; | 754 break; |
| 755 } | 755 } |
| 756 if (ShouldPlaceBlockDirectionScrollbarOnLogicalLeft()) | 756 if (ShouldPlaceBlockDirectionScrollbarOnLogicalLeft()) |
| 757 logical_left += VerticalScrollbarWidthClampedToContentBox(); | 757 logical_left += VerticalScrollbarWidth(); |
| 758 } | 758 } |
| 759 | 759 |
| 760 static void UpdateLogicalInlinePositions(LayoutBlockFlow* block, | 760 static void UpdateLogicalInlinePositions(LayoutBlockFlow* block, |
| 761 LayoutUnit& line_logical_left, | 761 LayoutUnit& line_logical_left, |
| 762 LayoutUnit& line_logical_right, | 762 LayoutUnit& line_logical_right, |
| 763 LayoutUnit& available_logical_width, | 763 LayoutUnit& available_logical_width, |
| 764 bool first_line, | 764 bool first_line, |
| 765 IndentTextOrNot indent_text, | 765 IndentTextOrNot indent_text, |
| 766 LayoutUnit box_logical_height) { | 766 LayoutUnit box_logical_height) { |
| 767 LayoutUnit line_logical_height = | 767 LayoutUnit line_logical_height = |
| (...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2654 | 2654 |
| 2655 bool LayoutBlockFlow::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() const { | 2655 bool LayoutBlockFlow::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() const { |
| 2656 // LayoutBlockFlow is in charge of paint invalidation of the first line. | 2656 // LayoutBlockFlow is in charge of paint invalidation of the first line. |
| 2657 if (FirstLineBox()) | 2657 if (FirstLineBox()) |
| 2658 return false; | 2658 return false; |
| 2659 | 2659 |
| 2660 return LayoutBlock::PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); | 2660 return LayoutBlock::PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); |
| 2661 } | 2661 } |
| 2662 | 2662 |
| 2663 } // namespace blink | 2663 } // namespace blink |
| OLD | NEW |