Repository navigation
DevTools: Inspect node styles - #33025
Merged
Merged
Conversation
22 of 26 tasks
Taym95
reviewed
Aug 13, 2024
Member
Author
|
This should be ready for review now @mrobinson :) |
mrobinson
approved these changes
Aug 25, 2024
|
|
||
| let css_properties = CssPropertiesActor::new(actors.new_name("css-properties")); | ||
| let properties = (|| { | ||
| let (tx, rx) = ipc::channel().ok()?; |
Member
There was a problem hiding this comment.
Suggested change
| let (tx, rx) = ipc::channel().ok()?; | |
| let (properties_sender, properties_receiver) = ipc::channel().ok()?; |
|
|
||
| // Get the css selectors that match this node present in the currently active stylesheets | ||
| let selectors = (|| { | ||
| let (tx, rx) = ipc::channel().ok()?; |
Member
There was a problem hiding this comment.
Suggested change
| let (tx, rx) = ipc::channel().ok()?; | |
| let (selector_sender, selectors_receiver) = ipc::channel().ok()?; |
| /// | ||
| /// - `isPositionEditable`: Informs whether you can change a style property in the inspector | ||
| /// - `isPositionEditable`: Informs whether you can change a style property in the inspector. | ||
| fn handle_message( |
Member
There was a problem hiding this comment.
This getting quite large. Would it be possible to split it into methods -- one per message?
| let node = registry.find::<NodeActor>(&self.node); | ||
| let walker = registry.find::<WalkerActor>(&node.walker); | ||
|
|
||
| let (tx, rx) = ipc::channel().ok()?; |
Member
There was a problem hiding this comment.
Suggested change
| let (tx, rx) = ipc::channel().ok()?; | |
| let (document_sender, document_receiver) = ipc::channel().ok()?; |
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
mrobinson
force-pushed
the
devtools-style
branch
from
August 25, 2024 09:02
d7d38da to
8709155
Compare
Signed-off-by: Martin Robinson <[email protected]>
mrobinson
force-pushed
the
devtools-style
branch
from
August 25, 2024 09:02
8709155 to
7f6e183
Compare
Member
|
Great work! I've pushed a new commit with some minor nits, but otherwise this looks good. I'll push to the MQ now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr restores the element style inspector and the computed styles list.
New features:
<p style="color: blue">) and the styles defined in stylesheets (likep { color: blue; })Future work:
getCompatibilityfor the inspector actor)AppliedEntry::pseudo_elementin the page style actor)./mach build -ddoes not report any errors./mach test-tidydoes not report any errors