WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
124563
Removal of redundant function call in Editor::insertTextWithoutSendingTextEvent
https://bugs.webkit.org/show_bug.cgi?id=124563
Summary
Removal of redundant function call in Editor::insertTextWithoutSendingTextEvent
Seokju Kwon
Reported
2013-11-18 22:21:53 PST
'text' can never be empty as it's already been checked.
Attachments
Patch
(1.46 KB, patch)
2013-11-18 22:24 PST
,
Seokju Kwon
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Seokju Kwon
Comment 1
2013-11-18 22:24:25 PST
Created
attachment 217273
[details]
Patch
Brent Fulgham
Comment 2
2013-11-19 16:58:43 PST
(In reply to
comment #0
)
> 'text' can never be empty as it's already been checked.
Where does the check happen? It looks like "shouldInsertText" is effectively a delegate, and we have no specific say over what it does. Do you mean that the "text.isEmpty()" test always happens before Editor::insertTextWithoutSendingTextEvent?
Seokju Kwon
Comment 3
2013-11-19 17:04:56 PST
(In reply to
comment #2
)
> (In reply to
comment #0
) > > 'text' can never be empty as it's already been checked. > > Where does the check happen? It looks like "shouldInsertText" is effectively a delegate, and we have no specific say over what it does. > > Do you mean that the "text.isEmpty()" test always happens before Editor::insertTextWithoutSendingTextEvent?
It's been checked at top of Editor::insertTextWithoutSendingTextEvent(). (See :
http://trac.webkit.org/browser/trunk/Source/WebCore/editing/Editor.cpp#L958
)
Brent Fulgham
Comment 4
2013-11-19 20:52:28 PST
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (In reply to
comment #0
) > > > 'text' can never be empty as it's already been checked. > > > > Where does the check happen? It looks like "shouldInsertText" is effectively a delegate, and we have no specific say over what it does. > > > > Do you mean that the "text.isEmpty()" test always happens before Editor::insertTextWithoutSendingTextEvent? > > > It's been checked at top of Editor::insertTextWithoutSendingTextEvent(). > (See :
http://trac.webkit.org/browser/trunk/Source/WebCore/editing/Editor.cpp#L958
)
Got it. I had to look outside the patch to see that. r=me.
WebKit Commit Bot
Comment 5
2013-11-19 21:16:41 PST
Comment on
attachment 217273
[details]
Patch Clearing flags on attachment: 217273 Committed
r159544
: <
http://trac.webkit.org/changeset/159544
>
WebKit Commit Bot
Comment 6
2013-11-19 21:16:43 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug