Bug 265099
Summary: | Fix setPreferredLogicalWidthsDirty when a RenderObject is already dirty | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bfulgham, karlcow, simon.fraser, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ahmad Saleem
Hi Team,
Just wanted to raise to get input, whether it is something can leads to any issue in 'WebKit' world:
Blink Commit: https://chromium.googlesource.com/chromium/blink/+/5a6a045684108c19541eb9db437e612e4be419fe
"Previously, RenderObject::setPreferredLogicalWidthsDirty with
MarkingBehavior=MarkContainingBlockChain would not dirty its ancestors
if the RenderObject was already marked as dirty. This patch fixes this
bug by ignoring whether the RenderObject was already marked as dirty."
WebKit Source: https://searchfox.org/wubkat/rev/114aa2c8594807cbc34dd5dff48a9e2addfd1e00/Source/WebCore/rendering/RenderObject.cpp#633
___________
Current:
void RenderObject::setPreferredLogicalWidthsDirty(bool shouldBeDirty, MarkingBehavior markParents)
{
bool alreadyDirty = preferredLogicalWidthsDirty();
m_bitfields.setPreferredLogicalWidthsDirty(shouldBeDirty);
if (shouldBeDirty && !alreadyDirty && markParents == MarkContainingBlockChain && (isRenderText() || !style().hasOutOfFlowPosition()))
invalidateContainerPreferredLogicalWidths();
}
To:
void RenderObject::setPreferredLogicalWidthsDirty(bool shouldBeDirty, MarkingBehavior markParents)
{
m_bitfields.setPreferredLogicalWidthsDirty(shouldBeDirty);
if (shouldBeDirty && markParents == MarkContainingBlockChain && (isRenderText() || !style().hasOutOfFlowPosition()))
invalidateContainerPreferredLogicalWidths();
}
____
This compiles but I didn't run any test case except 'cached-change-tbody-border-width.html' and it fails with differences.
Just wanted to raise to get input.
Thanks!
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/118795843>