[Webkit-unassigned] [Bug 26871] Can't unbold text in div in font-weight span
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jul 10 15:39:14 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=26871
Ryosuke Niwa <rniwa at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |enrica at apple.com,
| |justin.garcia at apple.com,
| |tony at chromium.org
--- Comment #1 from Ryosuke Niwa <rniwa at webkit.org> 2010-07-10 15:39:14 PST ---
It seems like this problem is caused by http://trac.webkit.org/browser/trunk/WebCore/editing/ApplyStyleCommand.cpp#L949 where it obtains removeStart = start.upstream(). Because upstream will respect block elements, we cannot delete span whose end is visually different from the different of div inside of it.
By the way, in investing this problem, I found a weird behavior in applyInlineStyle.
bool splitEnd = splitTextElementAtEndIfNeeded(start, end);
if (splitEnd) {
start = startPosition();
end = endPosition();
endDummySpanAncestor = dummySpanAncestorForNode(end.node());
}
splits an element even when it's not needed. e.g. <div id="test" style="font-weight: 900;">world</div> was wrapped by style spans and splited to <div id="test" style="font-weight: 900;"><span class="Apple-style-span">w</span><span class="Apple-style-span">orld</span></div>. I don't think this behavior is intended and may be filed as a bug.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list