Changeset 94947 in webkit
- Timestamp:
- Sep 12, 2011 12:14:38 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
- Property svn:executable deleted
r94946 r94947 1 2011-09-12 Shinya Kawanaka <shinyak@google.com> 2 3 Characters beyond U+10000 should be deleted by one pressing delete key. 4 https://bugs.webkit.org/show_bug.cgi?id=40351 5 6 Reviewed by Kent Tamura. 7 8 Added deletion tests. 9 10 * editing/deleting/delete-surrogatepair-expected.txt: Added. 11 * editing/deleting/delete-surrogatepair.html: Added. 12 1 13 2011-09-11 Kentaro Hara <haraken@google.com> 2 14 -
trunk/Source/WebCore/ChangeLog
- Property svn:executable deleted
r94946 r94947 1 2011-09-12 Shinya Kawanaka <shinyak@google.com> 2 3 Characters beyond U+10000 should be deleted by one pressing delete key. 4 https://bugs.webkit.org/show_bug.cgi?id=40351 5 6 Reviewed by Kent Tamura. 7 8 If a character is the trail part of unicode surrogate pair, the lead part of it 9 should also be deleted. Also, If in MacOSX, the deletion should honor Mac's behavior. 10 11 Test: editing/deleting/delete-surrogatepair.html 12 13 * rendering/RenderText.cpp: 14 (WebCore::RenderText::previousOffsetForBackwardDeletion): 15 Added if-macro to support chromium on mac, and added trail part check for unicode character. 16 1 17 2011-09-11 Kentaro Hara <haraken@google.com> 2 18 -
trunk/Source/WebCore/rendering/RenderText.cpp
r93909 r94947 1627 1627 } 1628 1628 1629 #if PLATFORM(MAC) 1629 #if PLATFORM(MAC) || PLATFORM(CHROMIUM) && OS(MAC_OS_X) 1630 1630 1631 1631 #define HANGUL_CHOSEONG_START (0x1100) … … 1669 1669 int RenderText::previousOffsetForBackwardDeletion(int current) const 1670 1670 { 1671 #if PLATFORM(MAC) 1671 #if PLATFORM(MAC) || PLATFORM(CHROMIUM) && OS(MAC_OS_X) 1672 1672 ASSERT(m_text); 1673 1673 StringImpl& text = *m_text.impl(); … … 1757 1757 #else 1758 1758 // Platforms other than Mac delete by one code point. 1759 return current - 1; 1759 if (U16_IS_TRAIL(m_text[--current])) 1760 --current; 1761 if (current < 0) 1762 current = 0; 1763 return current; 1760 1764 #endif 1761 1765 }
Note: See TracChangeset
for help on using the changeset viewer.