WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
98053
Web Inspector: move completions calculation into RuntimeModel (part 1)
https://bugs.webkit.org/show_bug.cgi?id=98053
Summary
Web Inspector: move completions calculation into RuntimeModel (part 1)
Pavel Feldman
Reported
2012-10-01 11:35:35 PDT
- moves current execution context state into runtime model - moves completionsForTextPrompt and its private helpers into runtime model - makes text prompt use generic expression stop characters by default
Attachments
Patch
(31.25 KB, patch)
2012-10-01 11:39 PDT
,
Pavel Feldman
yurys
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2012-10-01 11:39:16 PDT
Created
attachment 166512
[details]
Patch
Yury Semikhatsky
Comment 2
2012-10-01 22:59:25 PDT
Comment on
attachment 166512
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=166512&action=review
> Source/WebCore/inspector/front-end/RuntimeModel.js:167 > + completionsForTextPrompt: function(textPrompt, wordRange, force, completionsReadyCallback)
Can we get rid of dependency on TextPrompt here?
> Source/WebCore/inspector/front-end/RuntimeModel.js:170 > + var expressionRange = wordRange.startContainer.rangeOfWord(wordRange.startOffset, " =:[({;,!+-*/&|^<>", textPrompt.proxyElement, "backward");
Can you extract constant for " =:[({;,!+-*/&|^<>" and reuse it in TextPrompt?
Pavel Feldman
Comment 3
2012-10-01 23:06:28 PDT
> Can you extract constant for " =:[({;,!+-*/&|^<>" and reuse it in TextPrompt?
I am not sure why (and whether they should) correlate. I'll need to further refactor it. TextPrompt code is a mess.
Pavel Feldman
Comment 4
2012-10-01 23:10:24 PDT
Committed
r130119
: <
http://trac.webkit.org/changeset/130119
>
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