Closed
Bug 563558
Opened 14 years ago
Closed 14 years ago
inDOMView contentRemoved implementation doesn't take into account hidden whitespace nodes
Categories
(Other Applications :: DOM Inspector, defect)
Other Applications
DOM Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: crussell, Assigned: crussell)
Details
Attachments
(2 files, 1 obsolete file)
135 bytes,
text/html
|
Details | |
1.20 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
layout/inspector/src/inDOMView.cpp:965: if (container->GetChildCount() == 0) { // Fix up the parent parentNode->isContainer = PR_FALSE; parentNode->isOpen = PR_FALSE; mTree->InvalidateRow(NodeToRow(parentNode)); } Non-zero child count doesn't mean we're showing anything. If all of the children are ignorable whitespace, we need to update the parent row to no longer be a container. 1. Inspect the attached document, making sure "Show whitespace nodes" is off. 2. Open the BODY element 3. Delete the DIV Note that the BODY element is still a container. You can even continue to toggle the open state, but there are no non-whitespace children to show.
Assignee | ||
Comment 1•14 years ago
|
||
Shawn, can you review this? If not, any suggestions? Boris? Neil?
Comment 2•14 years ago
|
||
Comment on attachment 446132 [details] [diff] [review] Check inDOMViewNode's previous and next pointers for visible rows A layout peer is probably best, and this shouldn't need sr.
Attachment #446132 -
Flags: review?(sdwilsh) → review?(roc)
Instead of letting previousNode and nextNode hang around, which looks slightly dangerous here since we're deleting stuff, how about setting a PRBool "isOnlyChild" and then testing it below after deleting stuff?
Assignee | ||
Comment 4•14 years ago
|
||
Attachment #446132 -
Attachment is obsolete: true
Attachment #449568 -
Flags: review?(roc)
Attachment #446132 -
Flags: review?(roc)
Attachment #449568 -
Flags: review?(roc) → review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 5•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/a3eb83c7e386
You need to log in
before you can comment on or make changes to this bug.
Description
•