Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imported/w3c/web-platform-tests/css/css-nesting/cssom.html is failing…
… in WebKit https://bugs.webkit.org/show_bug.cgi?id=262459 Reviewed by Ryosuke Niwa. We have an optimization in CharacterData::setData() that avoids doing some work when the JS cannot observe it. This optimization was breaking the test. The test sets the innerHTML of a <style> element, which ends up calling setData() on the child Text node (as an optimization) and then takes the optimized code path in CharacterData::setData(). The optimized code path fails to notify the ancestors that the text has changed. However, HTMLStyleElement::childrenChanged() has code that needs to run in such case. As a result, I am now disabling the optimization in CharacterData::setData() if the parent node is an HTMLStyleElement. * LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/cssom-expected.txt: * Source/WebCore/dom/CharacterData.cpp: (WebCore::canUseSetDataOptimization): Canonical link: https://commits.webkit.org/268707@main
- Loading branch information