Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2011-05-14 Alexey Proskuryakov <ap@apple.com>
        Reviewed by Sam Weinig.

        WebKit2: Smart cut&paste is broken
        https://bugs.webkit.org/show_bug.cgi?id=60840
        <rdar://problem/9439927>

        * UIProcess/mac/TextCheckerMac.mm: (WebKit::TextChecker::isSmartInsertDeleteEnabled):
        Match WK1 - this default defaults to YES if not present.

Canonical link: https://commits.webkit.org/76149@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@86497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
aproskuryakov committed May 14, 2011
1 parent 463e192 commit 9aa2ea7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Source/WebKit2/ChangeLog
@@ -1,3 +1,14 @@
2011-05-14 Alexey Proskuryakov <ap@apple.com>

Reviewed by Sam Weinig.

WebKit2: Smart cut&paste is broken
https://bugs.webkit.org/show_bug.cgi?id=60840
<rdar://problem/9439927>

* UIProcess/mac/TextCheckerMac.mm: (WebKit::TextChecker::isSmartInsertDeleteEnabled):
Match WK1 - this default defaults to YES if not present.

2011-05-14 Dan Bernstein <mitz@apple.com>

Reviewed by Alice Liu.
Expand Down
2 changes: 1 addition & 1 deletion Source/WebKit2/UIProcess/mac/TextCheckerMac.mm
Expand Up @@ -180,7 +180,7 @@ static void initializeState()
static bool readSmartInsertDeleteEnabledDefault;

if (!readSmartInsertDeleteEnabledDefault) {
smartInsertDeleteEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:WebSmartInsertDeleteEnabled];
smartInsertDeleteEnabled = ![[NSUserDefaults standardUserDefaults] objectForKey:WebSmartInsertDeleteEnabled] || [[NSUserDefaults standardUserDefaults] boolForKey:WebSmartInsertDeleteEnabled];

readSmartInsertDeleteEnabledDefault = true;
}
Expand Down

0 comments on commit 9aa2ea7

Please sign in to comment.