RESOLVED FIXED207830
[LFC] Remove ReplacedBox::m_layoutBox
https://bugs.webkit.org/show_bug.cgi?id=207830
Summary [LFC] Remove ReplacedBox::m_layoutBox
alan
Reported 2020-02-16 19:00:49 PST
This is just a leftover.
Attachments
Patch (5.78 KB, patch)
2020-02-16 19:04 PST, alan
no flags
Radar WebKit Bug Importer
Comment 1 2020-02-16 19:01:10 PST
alan
Comment 2 2020-02-16 19:04:04 PST
Darin Adler
Comment 3 2020-02-16 22:19:30 PST
Comment on attachment 390895 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=390895&action=review > Source/WebCore/layout/layouttree/LayoutReplacedBox.h:-63 > - WeakPtr<const Box> m_layoutBox; I don’t see where this was initialized to anything. Seems like it was always null. Not sure why the code wasn’t just crashing all the time. Don’t understand why the new test covers this code.
Antti Koivisto
Comment 4 2020-02-17 01:01:45 PST
> I don’t see where this was initialized to anything. Seems like it was always > null. Not sure why the code wasn’t just crashing all the time. Don’t > understand why the new test covers this code. I think the new test covers it because it explicitly enables full-tree LFC. There was no previous test coverage.
alan
Comment 5 2020-02-17 07:19:05 PST
(In reply to Darin Adler from comment #3) > Comment on attachment 390895 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=390895&action=review > > > Source/WebCore/layout/layouttree/LayoutReplacedBox.h:-63 > > - WeakPtr<const Box> m_layoutBox; > > I don’t see where this was initialized to anything. Seems like it was always > null. Not sure why the code wasn’t just crashing all the time. Don’t > understand why the new test covers this code. Yes. As Antti said this code is behind a runtime flag and wasn't regression tested.
WebKit Commit Bot
Comment 6 2020-02-17 08:03:50 PST
Comment on attachment 390895 [details] Patch Clearing flags on attachment: 390895 Committed r256733: <https://trac.webkit.org/changeset/256733>
WebKit Commit Bot
Comment 7 2020-02-17 08:03:51 PST
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 8 2020-02-17 10:02:14 PST
Comment on attachment 390895 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=390895&action=review >>> Source/WebCore/layout/layouttree/LayoutReplacedBox.h:-63 >>> - WeakPtr<const Box> m_layoutBox; >> >> I don’t see where this was initialized to anything. Seems like it was always null. Not sure why the code wasn’t just crashing all the time. Don’t understand why the new test covers this code. > > Yes. As Antti said this code is behind a runtime flag and wasn't regression tested. Ah, I see, the new test says "LayoutFormattingContextEnabled=true". That’s what I missed!
alan
Comment 9 2020-02-17 10:05:42 PST
(In reply to Darin Adler from comment #8) > Comment on attachment 390895 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=390895&action=review > > >>> Source/WebCore/layout/layouttree/LayoutReplacedBox.h:-63 > >>> - WeakPtr<const Box> m_layoutBox; > >> > >> I don’t see where this was initialized to anything. Seems like it was always null. Not sure why the code wasn’t just crashing all the time. Don’t understand why the new test covers this code. > > > > Yes. As Antti said this code is behind a runtime flag and wasn't regression tested. > > Ah, I see, the new test says "LayoutFormattingContextEnabled=true". That’s > what I missed! And it is actually crashing here https://ews-build.webkit.org/results/iOS-13-Simulator-WK2-Tests-EWS/r390898-10935/results.html when a new test exercises this (not yet patched)code path.
Note You need to log in before you can comment on or make changes to this bug.