Changeset 65912 in webkit
- Timestamp:
- Aug 24, 2010 10:59:22 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r65910 r65912 1 2010-08-24 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Oliver Hunt. 4 5 Paste event fires twice for mac WebKit 6 <rdar://problem/8094611> 7 https://bugs.webkit.org/show_bug.cgi?id=44535 8 9 * editing/pasteboard/paste-event-only-once-expected.txt: Added. 10 * editing/pasteboard/paste-event-only-once.html: Added. 11 1 12 2010-08-24 Nate Chapin <japhet@chromium.org> 2 13 -
trunk/WebCore/ChangeLog
r65911 r65912 1 2010-08-24 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Oliver Hunt. 4 5 Paste event fires twice for mac WebKit 6 <rdar://problem/8094611> 7 https://bugs.webkit.org/show_bug.cgi?id=44535 8 9 The mac implementation of paste in WebKit was accidentally calling 10 Editor::tryDHTMLPaste twice, once in -[WebHTMLView paste:] and once 11 in Editor::pasteAsPlainText (which is called -[WebHTMLView paste:]). 12 Use the new pasteAsPlainTextBypassingDHTML function to bypass the 13 second call. 14 15 Test: editing/pasteboard/paste-event-only-once.html 16 17 * WebCore.exp.in: 18 * editing/Editor.cpp: 19 (WebCore::Editor::pasteAsPlainTextBypassingDHTML): 20 * editing/Editor.h: 21 Expose a function which just pastes using from the general pasteboard, 22 bypassing all the checking and DHTML pasting. 23 1 24 2010-08-24 Nate Chapin <japhet@chromium.org> 2 25 -
trunk/WebCore/WebCore.exp.in
r65904 r65912 362 362 __ZN7WebCore15visitedLinkHashEPKtj 363 363 __ZN7WebCore16AbstractDatabase14setIsAvailableEb 364 __ZN7WebCore16DeviceMotionData6createEbdbdbdbdbdbdbd 364 365 __ZN7WebCore16FontFallbackList15releaseFontDataEv 365 366 __ZN7WebCore16FontPlatformDataC1EP6NSFontbb … … 402 403 __ZN7WebCore17CredentialStorage3getERKNS_15ProtectionSpaceE 403 404 __ZN7WebCore17DOMImplementation14isTextMIMETypeERKN3WTF6StringE 404 __ZN7WebCore16DeviceMotionData6createEbdbdbdbdbdbdbd405 405 __ZN7WebCore17DeviceOrientation6createEbdbdbd 406 406 __ZN7WebCore17GlyphPageTreeNode18treeGlyphPageCountEv … … 462 462 __ZN7WebCore23createFragmentFromNodesEPNS_8DocumentERKN3WTF6VectorIPNS_4NodeELm0EEE 463 463 __ZN7WebCore24BinaryPropertyListWriter17writePropertyListEv 464 __ZN7WebCore24DocumentMarkerController13removeMarkersENS_14DocumentMarker10MarkerTypeE 465 __ZN7WebCore24DocumentMarkerController23renderedRectsForMarkersENS_14DocumentMarker10MarkerTypeE 464 466 __ZN7WebCore24contextMenuItemTagItalicEv 465 467 __ZN7WebCore24contextMenuItemTagStylesEv 466 468 __ZN7WebCore24createFragmentFromMarkupEPNS_8DocumentERKN3WTF6StringES5_NS_27FragmentScriptingPermissionE 467 469 __ZN7WebCore24decodeURLEscapeSequencesERKN3WTF6StringE 468 __ZN7WebCore24DocumentMarkerController13removeMarkersENS_14DocumentMarker10MarkerTypeE469 __ZN7WebCore24DocumentMarkerController23renderedRectsForMarkersENS_14DocumentMarker10MarkerTypeE470 470 __ZN7WebCore24notifyHistoryItemChangedE 471 471 __ZN7WebCore24rangeCompliantEquivalentERKNS_8PositionE … … 629 629 __ZN7WebCore6Editor30applyParagraphStyleToSelectionEPNS_19CSSStyleDeclarationENS_10EditActionE 630 630 __ZN7WebCore6Editor30deleteSelectionWithSmartDeleteEb 631 __ZN7WebCore6Editor30pasteAsPlainTextBypassingDHTMLEv 631 632 __ZN7WebCore6Editor32guessesForUngrammaticalSelectionEv 632 633 __ZN7WebCore6Editor33increaseSelectionListLevelOrderedEv -
trunk/WebCore/editing/Editor.cpp
r65787 r65912 325 325 ExceptionCode ec = 0; 326 326 target->dispatchEvent(TextEvent::createForFragmentPaste(m_frame->domWindow(), pastingFragment, smartReplace, matchStyle), ec); 327 } 328 329 void Editor::pasteAsPlainTextBypassingDHTML() 330 { 331 pasteAsPlainTextWithPasteboard(Pasteboard::generalPasteboard()); 327 332 } 328 333 -
trunk/WebCore/editing/Editor.h
r65395 r65912 300 300 void pasteAsPlainText(const String&, bool smartReplace); 301 301 302 // This is only necessary while paste is primarily implemented in WebKit for the mac platform. 303 void pasteAsPlainTextBypassingDHTML(); 304 302 305 Node* findEventTargetFrom(const VisibleSelection& selection) const; 303 306 private: -
trunk/WebKit/mac/ChangeLog
r65904 r65912 1 2010-08-24 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Oliver Hunt. 4 5 Paste event fires twice for mac WebKit 6 <rdar://problem/8094611> 7 https://bugs.webkit.org/show_bug.cgi?id=44535 8 9 The mac implementation of paste in WebKit was accidentally calling 10 Editor::tryDHTMLPaste twice, once in -[WebHTMLView paste:] and once 11 in Editor::pasteAsPlainText (which is called -[WebHTMLView paste:]). 12 Use the new pasteAsPlainTextBypassingDHTML function to bypass the 13 second call. 14 15 * WebView/WebHTMLView.mm: 16 (-[WebHTMLView paste:]): 17 1 18 2010-08-24 Daniel Cheng <dcheng@chromium.org> 2 19 -
trunk/WebKit/mac/WebView/WebHTMLView.mm
r65787 r65912 5177 5177 [self _pasteWithPasteboard:[NSPasteboard generalPasteboard] allowPlainText:YES]; 5178 5178 else 5179 coreFrame->editor()->pasteAsPlainText ();5179 coreFrame->editor()->pasteAsPlainTextBypassingDHTML(); 5180 5180 } 5181 5181
Note: See TracChangeset
for help on using the changeset viewer.