Bug 200744

Summary: Don't use union to store NodeRareData* and RenderObject*
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, bfulgham, cdumez, cmarcelo, dbates, esprehn+autocc, ews-watchlist, fpizlo, ggaren, kangil.han, koivisto, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=216069
Attachments:
Description Flags
WIP - simple patch
none
WIP2
none
WIP3
none
Patch koivisto: review+

Ryosuke Niwa
Reported 2019-08-14 17:00:13 PDT
Don't use union for NodeRareData* and RenderObject*. That can lead to type confusion bugs.
Attachments
WIP - simple patch (6.61 KB, patch)
2019-08-14 17:00 PDT, Ryosuke Niwa
no flags
WIP2 (29.50 KB, patch)
2019-08-15 01:05 PDT, Ryosuke Niwa
no flags
WIP3 (29.20 KB, patch)
2019-08-15 01:33 PDT, Ryosuke Niwa
no flags
Patch (40.14 KB, patch)
2019-08-15 15:21 PDT, Ryosuke Niwa
koivisto: review+
Ryosuke Niwa
Comment 1 2019-08-14 17:00:35 PDT
Created attachment 376334 [details] WIP - simple patch
Ryosuke Niwa
Comment 2 2019-08-15 01:05:05 PDT
Created attachment 376367 [details] WIP2 Compensating the size increase of Node by moving some element flags to Node. Somehow this causes focus within tests to fail. I can't spot a bug anywhere...
Ryosuke Niwa
Comment 3 2019-08-15 01:06:53 PDT
Comment on attachment 376367 [details] WIP2 View in context: https://bugs.webkit.org/attachment.cgi?id=376367&action=review > Source/WebCore/dom/Node.h:541 > + StyleAffectedByFocusWithinFlag = 1 < 11, Ugh... what a stupid bug. I need <<, not <.
Ryosuke Niwa
Comment 4 2019-08-15 01:33:39 PDT
Ryosuke Niwa
Comment 5 2019-08-15 15:21:24 PDT
Ryosuke Niwa
Comment 6 2019-08-16 17:41:06 PDT
Radar WebKit Bug Importer
Comment 7 2019-08-16 17:42:17 PDT
Note You need to log in before you can comment on or make changes to this bug.