[Webkit-unassigned] [Bug 7360] Typing style isn't bold in a bold context

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed May 31 15:20:24 PDT 2006


------- Comment #12 from justin.garcia at apple.com  2006-05-31 15:20 PDT -------
+        // If the node we are in is an empty paragraph, then we have selected
the entire paragraph
+        // so we want to apply the style to the whole paragraph
+        VisiblePosition startPos(start, VP_UPSTREAM_IF_POSSIBLE);
+        if (start.offset() == end.offset() && isStartOfParagraph(startPos) &&
isEndOfParagraph(startPos)) {
+            HTMLElement *block = static_cast<HTMLElement
+            removeCSSStyle(style, block);
+            addBlockStyleIfNeeded(style, block);

Just because startPos is in an empty paragraph, doesn't mean that it's in a
block by itself.  For example [br2, 0] example in the tree below:

Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list