Changeset 18457 in webkit
- Timestamp:
- Dec 28, 2006 11:53:58 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r18456 r18457 1 2006-12-28 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Darin. 4 5 - pixel test for http://bugs.webkit.org/show_bug.cgi?id=11124 6 REGRESSION (r14297): No drag image for partially-selected complex text 7 8 * fast/text/atsui-partial-selection-expected.checksum: Added. 9 * fast/text/atsui-partial-selection-expected.png: Added. 10 * fast/text/atsui-partial-selection-expected.txt: Added. 11 * fast/text/atsui-partial-selection.html: Added. 12 1 13 2006-12-28 Mitz Pettel <mitz@webkit.org> 2 14 -
trunk/WebCore/ChangeLog
r18456 r18457 1 2006-12-28 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Darin. 4 5 - fix http://bugs.webkit.org/show_bug.cgi?id=11124 6 REGRESSION (r14297): No drag image for partially-selected complex text 7 8 Test: fast/text/atsui-partial-selection.html 9 10 * platform/Font.h: Changed comment. 11 * platform/mac/FontMac.mm: 12 (WebCore::Font::drawComplexText): Corrected the run length calculation. 13 Changed the ATSUI layout parameters to know about the entire text run, rather 14 than just the range we are drawing. ATSUI measures the characters before 15 the range and positions the range accordingly. 16 1 17 2006-12-28 Mitz Pettel <mitz@webkit.org> 2 18 -
trunk/WebCore/platform/Font.h
r16594 r18457 51 51 {} 52 52 53 TextRun(const UChar* c, int len, int from, int to) // This constructor is only used in one place inMac-specific code.53 TextRun(const UChar* c, int len, int from, int to) // This constructor is only used in Mac-specific code. 54 54 :m_characters(c), m_len(len), m_from(from), m_to(to) 55 55 {} -
trunk/WebCore/platform/mac/FontMac.mm
r18360 r18457 474 474 OSStatus status; 475 475 476 int runLength = run. length();476 int runLength = run.to() - run.from(); 477 477 478 478 TextRun adjustedRun = style.directionalOverride() ? addDirectionalOverride(run, style.rtl()) : run; 479 ATSULayoutParameters params( adjustedRun, style);479 ATSULayoutParameters params(TextRun(adjustedRun.characters(), adjustedRun.length(), 0, adjustedRun.length()), style); 480 480 params.initialize(this, graphicsContext); 481 481
Note: See TracChangeset
for help on using the changeset viewer.