Changeset 205246 in webkit
- Timestamp:
- Aug 31, 2016 2:12:25 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r205224 r205246 1 2016-08-31 Antti Koivisto <antti@apple.com> 2 3 REGRESSION (r201701): Unable to copy from CodeMirror editor version used in Jenkins install website 4 https://bugs.webkit.org/show_bug.cgi?id=161386 5 <rdar://problem/27590077> 6 7 Reviewed by Dan Bernstein. 8 9 * editing/text-iterator/hidden-textarea-selection-quirk-expected.txt: Added. 10 * editing/text-iterator/hidden-textarea-selection-quirk.html: Added. 11 * platform/ios-simulator/editing/text-iterator/hidden-textarea-selection-quirk-expected.txt: Added. 12 13 textarea.select() doesn't select the text content on iOS. 14 1 15 2016-08-30 Jiewen Tan <jiewen_tan@apple.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r205244 r205246 1 2016-08-31 Antti Koivisto <antti@apple.com> 2 3 REGRESSION (r201701): Unable to copy from CodeMirror editor version used in Jenkins install website 4 https://bugs.webkit.org/show_bug.cgi?id=161386 5 <rdar://problem/27590077> 6 7 Reviewed by Dan Bernstein. 8 9 This CodeMirror version uses a hidden <textarea> to implement copy/paste. The textarea has width:1px; border-width:1px. 10 Jenkins page has also has a stylesheet that contains * { box-sizing:border-box } and as a result the textarea content 11 width gets computed as 0. With r201701 we use content size instead of box size for clipping and the textarea content is 12 (correctly) considered invisible. 13 14 Add a quirk that allows this to continue working. 15 16 Test: editing/text-iterator/hidden-textarea-selection-quirk.html 17 18 * editing/TextIterator.cpp: 19 (WebCore::fullyClipsContents): 20 1 21 2016-08-31 Joseph Pecoraro <pecoraro@apple.com> 2 22 -
trunk/Source/WebCore/editing/TextIterator.cpp
r205011 r205246 41 41 #include "HTMLParagraphElement.h" 42 42 #include "HTMLProgressElement.h" 43 #include "HTMLTextAreaElement.h" 43 44 #include "HTMLTextFormControlElement.h" 44 45 #include "InlineTextBox.h" … … 214 215 if (!box.hasOverflowClip()) 215 216 return false; 217 218 // Quirk to keep copy/paste in the CodeMirror editor version used in Jenkins working. 219 if (is<HTMLTextAreaElement>(node)) 220 return box.size().isEmpty(); 221 216 222 return box.contentSize().isEmpty(); 217 223 }
Note: See TracChangeset
for help on using the changeset viewer.