WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
51175
WebInspector: introduce DebuggerPresentationModel - model for all presentation data related to scripts panel
https://bugs.webkit.org/show_bug.cgi?id=51175
Summary
WebInspector: introduce DebuggerPresentationModel - model for all presentatio...
Pavel Podivilov
Reported
2010-12-16 03:44:51 PST
WebInspector: introduce DebuggerPresentationModel - model for all presentation data related to scripts panel
Attachments
Patch.
(14.21 KB, patch)
2010-12-16 03:45 PST
,
Pavel Podivilov
pfeldman
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2010-12-16 03:45:51 PST
Created
attachment 76749
[details]
Patch. This patch adds script beautification data and functions to DebuggerPresentationModel. Later we should move all data used by ScriptsPanel and its views to DebuggerPresentationModel: - JavaScript compilation errors and exceptions (used by SourceFrame to show message bubbles) - lazy script and resource loading, mapping between scripts and resources - other data used by views which is not a part of "real" debugger model (e.g. currently selected call frame index)
Pavel Feldman
Comment 2
2010-12-30 06:19:34 PST
Comment on
attachment 76749
[details]
Patch. As we discussed offline, there is no clear need in this separate abstraction.
Pavel Podivilov
Comment 3
2011-02-21 01:43:37 PST
We should add a layer between DebuggerModel and scripts panel ui classes to encapsulate complex logic such as source mapping, content loading, renames, scripts concatenation, etc. New layer will receive events from DebuggerModel, map source locations and names and dispatch new events which are directly usable by ui. This should be done in two steps: 1. Move source mapping logic and direct calls to DebuggerModel from SourceFrame to ScriptsPanel. 1.1 Update SourceFrame decorations with direct calls from ScriptsPanel. 1.2 Extract calls to DebuggerModel functions to a delegate class that is set up by the ScriptsPanel. 2. Extract source mapping and direct calls to DebuggerModel to a new DebuggerPresentationModel class, make ScriptsPanel DebuggerPresentationModel's listener.
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