WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 131559
Aggregate multiple "respondToChangedSelection" calls to one scan for telephone numbers
https://bugs.webkit.org/show_bug.cgi?id=131559
Summary
Aggregate multiple "respondToChangedSelection" calls to one scan for telephon...
Brady Eidson
Reported
2014-04-11 13:16:29 PDT
Aggregate multiple "respondToChangedSelection" calls to one scan for telephone numbers Turns out Editor::respondToChangedSelection is called a lot more often than when the user visible selection changes as the result of a user event. In fact, it can be called many (hundreds!) of times during one iteration of the run loop. We should aggregate all of those calls into a single telephone number scan.
Attachments
Patch v1
(4.93 KB, patch)
2014-04-11 13:18 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2014-04-11 13:18:48 PDT
Created
attachment 229157
[details]
Patch v1
WebKit Commit Bot
Comment 2
2014-04-11 14:09:43 PDT
Comment on
attachment 229157
[details]
Patch v1 Clearing flags on attachment: 229157 Committed
r167148
: <
http://trac.webkit.org/changeset/167148
>
WebKit Commit Bot
Comment 3
2014-04-11 14:09:46 PDT
All reviewed patches have been landed. Closing bug.
Ryosuke Niwa
Comment 4
2014-04-11 16:20:23 PDT
Why don't we just do this in editorUIUpdateTimerFired instead of adding a separate timer?
Brady Eidson
Comment 5
2014-04-11 19:27:29 PDT
(In reply to
comment #4
)
> Why don't we just do this in editorUIUpdateTimerFired instead of adding a separate timer?
I saw that there was an early return before the m_editorUIUpdateTimer was started, but knew we needed to do this work every time. Looking at it closer now, the early return was simply a: if (m_editorUIUpdateTimer.isActive()) return; check. I agree the existing timer should be good enough here! (I won't be near a dev environment for a few days, in case anyone else wanted to fix this before then)
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