WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
48834
Web Inspector: Enable InspectorCSSAgent (not used by frontend for CSS editing yet)
https://bugs.webkit.org/show_bug.cgi?id=48834
Summary
Web Inspector: Enable InspectorCSSAgent (not used by frontend for CSS editing...
Alexander Pavlov (apavlov)
Reported
2010-11-02 07:03:11 PDT
The next step to enabling the source-based CSS editing is to enable InspectorCSSAgent in the "idle" mode: an InspectorCSSAgent instance gets created by InspectorController and is used by InspectorBackendDispatcher, but its functions are not yet used for CSS editing.
Attachments
[PATCH] Suggested solution
(64.99 KB, patch)
2010-11-02 08:17 PDT
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
[PATCH] Compilability fixed, added property value checking with CSSMutableStyleDeclaration::parseDeclaration()
(65.99 KB, patch)
2010-11-03 04:16 PDT
,
Alexander Pavlov (apavlov)
pfeldman
: review+
Details
Formatted Diff
Diff
[WIP] A patch with WebInspector frontend reimplemented to use InspectorCSSAgent
(38.61 KB, patch)
2010-11-09 10:26 PST
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2010-11-02 08:17:56 PDT
Created
attachment 72669
[details]
[PATCH] Suggested solution
Early Warning System Bot
Comment 2
2010-11-02 08:28:02 PDT
Attachment 72669
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/4941017
Eric Seidel (no email)
Comment 3
2010-11-02 09:22:11 PDT
Attachment 72669
[details]
did not build on mac: Build output:
http://queues.webkit.org/results/4994009
Eric Seidel (no email)
Comment 4
2010-11-02 09:38:29 PDT
Attachment 72669
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/4928018
Alexander Pavlov (apavlov)
Comment 5
2010-11-03 04:16:19 PDT
Created
attachment 72810
[details]
[PATCH] Compilability fixed, added property value checking with CSSMutableStyleDeclaration::parseDeclaration()
Alexander Pavlov (apavlov)
Comment 6
2010-11-09 10:26:35 PST
Created
attachment 73388
[details]
[WIP] A patch with WebInspector frontend reimplemented to use InspectorCSSAgent Features: - Display/modification of CSS properties not parsed by CSSParser (property unrecognized or has invalid structure) - Multiple same-named properties support (the last property in the style declaration takes precedence) - Exact calculation of unused CSS size in audits
Pavel Feldman
Comment 7
2010-11-09 22:51:47 PST
Comment on
attachment 73388
[details]
[WIP] A patch with WebInspector frontend reimplemented to use InspectorCSSAgent I think CSSAgent == CSSStyleModel. I'd just move CSSStyleDeclaration to CSSStyleModel.js. Rationale: we have agents on backend and sdks/ models on front-end. Like InspectorResourceAgent.cpp + ResourceModel,js. I'd also suggest that we first land clear move refactoring and apply incremental changes later. Otherwise it is easy to get lost in the changes within declaration.
Alexander Pavlov (apavlov)
Comment 8
2010-11-10 02:20:25 PST
(In reply to
comment #7
)
> (From update of
attachment 73388
[details]
) > I think CSSAgent == CSSStyleModel. I'd just move CSSStyleDeclaration to CSSStyleModel.js. Rationale: we have agents on backend and sdks/ models on front-end. Like InspectorResourceAgent.cpp + ResourceModel,js. I'd also suggest that we first land clear move refactoring and apply incremental changes later. Otherwise it is easy to get lost in the changes within declaration.
Good, I will file a bug for the move and send out a patch shortly.
Alexander Pavlov (apavlov)
Comment 9
2010-11-10 06:56:10 PST
Bug 49312
filed for the CSS-related code motion from DOMAgent.js into CSSStyleModel.js
Alexander Pavlov (apavlov)
Comment 10
2010-11-10 09:13:17 PST
Committing to
http://svn.webkit.org/repository/webkit/trunk
... M LayoutTests/ChangeLog M LayoutTests/inspector/styles-source-offsets-expected.txt M LayoutTests/inspector/styles-source-offsets.html M WebCore/ChangeLog M WebCore/inspector/CodeGeneratorInspector.pm M WebCore/inspector/Inspector.idl M WebCore/inspector/InspectorCSSAgent.cpp M WebCore/inspector/InspectorCSSAgent.h M WebCore/inspector/InspectorController.cpp M WebCore/inspector/InspectorController.h M WebCore/inspector/InspectorDOMAgent.cpp M WebCore/inspector/InspectorDOMAgent.h M WebCore/inspector/InspectorStyleSheet.cpp M WebCore/inspector/InspectorStyleSheet.h Committed
r71745
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