OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 ty -= extraOffset; | 924 ty -= extraOffset; |
925 extraOffset = 0; | 925 extraOffset = 0; |
926 } | 926 } |
927 context->setShadow(IntSize(shadow->x, shadow->y - extraOffset),
shadow->blur, shadow->color); | 927 context->setShadow(IntSize(shadow->x, shadow->y - extraOffset),
shadow->blur, shadow->color); |
928 setShadow = true; | 928 setShadow = true; |
929 shadow = shadow->next; | 929 shadow = shadow->next; |
930 } | 930 } |
931 | 931 |
932 if (paintUnderline) { | 932 if (paintUnderline) { |
933 context->setStrokeColor(underline); | 933 context->setStrokeColor(underline); |
| 934 context->setStrokeStyle(SolidStroke); |
934 // Leave one pixel of white between the baseline and the underli
ne. | 935 // Leave one pixel of white between the baseline and the underli
ne. |
935 context->drawLineForText(IntPoint(tx, ty + baselinePos + 1), w,
isPrinting); | 936 context->drawLineForText(IntPoint(tx, ty + baselinePos + 1), w,
isPrinting); |
936 } | 937 } |
937 if (paintOverline) { | 938 if (paintOverline) { |
938 context->setStrokeColor(overline); | 939 context->setStrokeColor(overline); |
| 940 context->setStrokeStyle(SolidStroke); |
939 context->drawLineForText(IntPoint(tx, ty), w, isPrinting); | 941 context->drawLineForText(IntPoint(tx, ty), w, isPrinting); |
940 } | 942 } |
941 if (paintLineThrough) { | 943 if (paintLineThrough) { |
942 context->setStrokeColor(linethrough); | 944 context->setStrokeColor(linethrough); |
| 945 context->setStrokeStyle(SolidStroke); |
943 context->drawLineForText(IntPoint(tx, ty + 2 * baselinePos / 3),
w, isPrinting); | 946 context->drawLineForText(IntPoint(tx, ty + 2 * baselinePos / 3),
w, isPrinting); |
944 } | 947 } |
945 } while (shadow); | 948 } while (shadow); |
946 | 949 |
947 if (setClip) | 950 if (setClip) |
948 context->restore(); | 951 context->restore(); |
949 else if (setShadow) | 952 else if (setShadow) |
950 context->clearShadow(); | 953 context->clearShadow(); |
951 } | 954 } |
952 } | 955 } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 ASSERT(child->prevOnLine() == prev); | 1027 ASSERT(child->prevOnLine() == prev); |
1025 prev = child; | 1028 prev = child; |
1026 } | 1029 } |
1027 ASSERT(prev == m_lastChild); | 1030 ASSERT(prev == m_lastChild); |
1028 #endif | 1031 #endif |
1029 } | 1032 } |
1030 | 1033 |
1031 #endif | 1034 #endif |
1032 | 1035 |
1033 } // namespace WebCore | 1036 } // namespace WebCore |
OLD | NEW |