OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * (C) 2000 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) | 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1881 // for every inline box. This won't cause more rasterization invalidations b
ecause the whole LayoutText is being invalidated. | 1881 // for every inline box. This won't cause more rasterization invalidations b
ecause the whole LayoutText is being invalidated. |
1882 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { | 1882 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { |
1883 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box, in
validationReason, paintInvalidationRect); | 1883 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box, in
validationReason, paintInvalidationRect); |
1884 if (box->truncation() != cNoTruncation) { | 1884 if (box->truncation() != cNoTruncation) { |
1885 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) | 1885 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) |
1886 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(
*ellipsisBox, invalidationReason, paintInvalidationRect); | 1886 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(
*ellipsisBox, invalidationReason, paintInvalidationRect); |
1887 } | 1887 } |
1888 } | 1888 } |
1889 } | 1889 } |
1890 | 1890 |
| 1891 void LayoutText::invalidateDisplayItemClientsOfFirstLine() |
| 1892 { |
| 1893 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { |
| 1894 if (!box->isFirstLineStyle()) |
| 1895 break; |
| 1896 invalidateDisplayItemClient(*box); |
| 1897 if (box->truncation() != cNoTruncation) { |
| 1898 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) |
| 1899 invalidateDisplayItemClient(*ellipsisBox); |
| 1900 } |
| 1901 } |
| 1902 } |
| 1903 |
1891 } // namespace blink | 1904 } // namespace blink |
OLD | NEW |