WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
95114
Web Inspector: Refactor SourceFrame to delegate highlightLine() to _textEditor
https://bugs.webkit.org/show_bug.cgi?id=95114
Summary
Web Inspector: Refactor SourceFrame to delegate highlightLine() to _textEditor
johnjbarton
Reported
2012-08-27 12:07:56 PDT
One path to accomplish
Bug 93444
- Web Inspector: SourceFrame shouldn't be a View would move the View methods in SourceFrame to _textEditor. One set of such methods is highlightLine() canHighlightLine() clearLineHighlight() is not a View method but it is part of DefaultTextEditor.
Attachments
git format-patch
(3.54 KB, patch)
2012-08-27 13:46 PDT
,
johnjbarton
no flags
Details
Formatted Diff
Diff
Patch
(4.67 KB, patch)
2012-08-27 14:18 PDT
,
johnjbarton
no flags
Details
Formatted Diff
Diff
Patch
(4.66 KB, patch)
2012-09-05 14:37 PDT
,
johnjbarton
pfeldman
: review-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
johnjbarton
Comment 1
2012-08-27 13:46:15 PDT
Created
attachment 160794
[details]
git format-patch I am not able to get webkit-patch upload to work
johnjbarton
Comment 2
2012-08-27 13:55:10 PDT
ChangeLog message: Incremental step towards
bug 93444
. Refactor SourceFrame methods related to highlightLine() to delegate to its ._textEditor, a View object. DefaultTextEditor gets a new method as the delegatee, canHighlightLine(). No change in function; no new tests; compile-front-end.py passes these files.
johnjbarton
Comment 3
2012-08-27 14:18:34 PDT
Created
attachment 160804
[details]
Patch
johnjbarton
Comment 4
2012-09-05 14:37:35 PDT
Created
attachment 162337
[details]
Patch
Pavel Feldman
Comment 5
2012-09-21 03:05:11 PDT
Comment on
attachment 162337
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=162337&action=review
> Source/WebCore/inspector/front-end/SourceFrame.js:173 > + return this._textEditor.canHighlightLine();
SourceFrame should be always able to highlight the line.
> Source/WebCore/inspector/front-end/SourceFrame.js:-193 > - delete this._lineToHighlight
What about the case when we get request for the line highlight before the content has loaded into the text editor? Like stopping on a breakpoint that leads to the SourceFrame being opened.
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