WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 200654
[LFC][TFC] Add rowSpan and colSpan to Box
https://bugs.webkit.org/show_bug.cgi?id=200654
Summary
[LFC][TFC] Add rowSpan and colSpan to Box
zalan
Reported
2019-08-12 20:05:42 PDT
they are part of the random DOM things.
Attachments
Patch
(4.33 KB, patch)
2019-08-12 21:08 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-08-12 20:06:00 PDT
<
rdar://problem/54239281
>
zalan
Comment 2
2019-08-12 21:08:48 PDT
Created
attachment 376135
[details]
Patch
Antti Koivisto
Comment 3
2019-08-13 07:33:11 PDT
Comment on
attachment 376135
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=376135&action=review
> Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp:193 > + if (is<RenderTableCell>(renderer)) { > + auto& cellElement = downcast<HTMLTableCellElement>(*renderer.element()); > + auto rowSpan = cellElement.rowSpan(); > + if (rowSpan > 1) > + childLayoutBox->setRowSpan(rowSpan); > + > + auto columnSpan = cellElement.colSpan(); > + if (columnSpan > 1) > + childLayoutBox->setColumnSpan(columnSpan); > + }
You will probably also need invalidation for dynamic changes. See RenderTableCell::colSpanOrRowSpanChanged and callers.
zalan
Comment 4
2019-08-13 07:53:39 PDT
(In reply to Antti Koivisto from
comment #3
)
> Comment on
attachment 376135
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=376135&action=review
> > > Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp:193 > > + if (is<RenderTableCell>(renderer)) { > > + auto& cellElement = downcast<HTMLTableCellElement>(*renderer.element()); > > + auto rowSpan = cellElement.rowSpan(); > > + if (rowSpan > 1) > > + childLayoutBox->setRowSpan(rowSpan); > > + > > + auto columnSpan = cellElement.colSpan(); > > + if (columnSpan > 1) > > + childLayoutBox->setColumnSpan(columnSpan); > > + } > > You will probably also need invalidation for dynamic changes. See > RenderTableCell::colSpanOrRowSpanChanged and callers.
Absolutely. At this point LFC does not deal with incremental changes. Each layout frame starts from scratch.
WebKit Commit Bot
Comment 5
2019-08-13 08:11:59 PDT
Comment on
attachment 376135
[details]
Patch Clearing flags on attachment: 376135 Committed
r248594
: <
https://trac.webkit.org/changeset/248594
>
WebKit Commit Bot
Comment 6
2019-08-13 08:12:01 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug