| 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/layout/api/SelectionState.h" | 32 #include "core/layout/api/SelectionState.h" |
| 33 #include "core/layout/line/BreakingContextInlineHeaders.h" | 33 #include "core/layout/line/BreakingContextInlineHeaders.h" |
| 34 #include "core/layout/line/GlyphOverflow.h" | 34 #include "core/layout/line/GlyphOverflow.h" |
| 35 #include "core/layout/line/LayoutTextInfo.h" | 35 #include "core/layout/line/LayoutTextInfo.h" |
| 36 #include "core/layout/line/LineLayoutState.h" | 36 #include "core/layout/line/LineLayoutState.h" |
| 37 #include "core/layout/line/LineWidth.h" | 37 #include "core/layout/line/LineWidth.h" |
| 38 #include "core/layout/line/WordMeasurement.h" | 38 #include "core/layout/line/WordMeasurement.h" |
| 39 #include "core/layout/svg/line/SVGRootInlineBox.h" | 39 #include "core/layout/svg/line/SVGRootInlineBox.h" |
| 40 #include "platform/text/BidiResolver.h" | 40 #include "platform/text/BidiResolver.h" |
| 41 #include "platform/text/Character.h" | 41 #include "platform/text/Character.h" |
| 42 #include "wtf/StdLibExtras.h" | |
| 43 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
| 44 #include "wtf/text/CharacterNames.h" | |
| 45 | 43 |
| 46 namespace blink { | 44 namespace blink { |
| 47 | 45 |
| 48 using namespace WTF::Unicode; | |
| 49 | |
| 50 class ExpansionOpportunities { | 46 class ExpansionOpportunities { |
| 51 public: | 47 public: |
| 52 ExpansionOpportunities() : m_totalOpportunities(0) {} | 48 ExpansionOpportunities() : m_totalOpportunities(0) {} |
| 53 | 49 |
| 54 void addRunWithExpansions(BidiRun& run, | 50 void addRunWithExpansions(BidiRun& run, |
| 55 bool& isAfterExpansion, | 51 bool& isAfterExpansion, |
| 56 TextJustify textJustify) { | 52 TextJustify textJustify) { |
| 57 LineLayoutText text = LineLayoutText(run.m_lineLayoutItem); | 53 LineLayoutText text = LineLayoutText(run.m_lineLayoutItem); |
| 58 unsigned opportunitiesInRun; | 54 unsigned opportunitiesInRun; |
| 59 if (text.is8Bit()) { | 55 if (text.is8Bit()) { |
| (...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2513 | 2509 |
| 2514 bool LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const { | 2510 bool LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const { |
| 2515 // LayoutBlockFlow is in charge of paint invalidation of the first line. | 2511 // LayoutBlockFlow is in charge of paint invalidation of the first line. |
| 2516 if (firstLineBox()) | 2512 if (firstLineBox()) |
| 2517 return false; | 2513 return false; |
| 2518 | 2514 |
| 2519 return LayoutBlock::paintedOutputOfObjectHasNoEffectRegardlessOfSize(); | 2515 return LayoutBlock::paintedOutputOfObjectHasNoEffectRegardlessOfSize(); |
| 2520 } | 2516 } |
| 2521 | 2517 |
| 2522 } // namespace blink | 2518 } // namespace blink |
| OLD | NEW |