Bug 86770
| Summary: | Move logic of checking whether a frame needs to be flattened to RenderFrameBase. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | alan <zalan> |
| Component: | Layout and Rendering | Assignee: | alan <zalan> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | ahmad.saleem792, kenneth, koivisto |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
alan
So that flattening checking code can somewhat be shared between frameset and iframe. That would eliminate the need of early return and mimicking non-flattening layout case in RenderFrameBase::layoutWithFlattening(), which can get (and is) out of sync in case of iframe layouting.
See below.
RenderFrameBase::layoutWithFlattening(...)
{
...
if (!width() || !height() || !childRoot) {
updateWidgetPosition();
if (childFrameView)
childFrameView->layout();
setNeedsLayout(false);
return;
...
}
vs.
RenderIFrame::layout()
{
...
RenderPart::layout();
m_overflow.clear();
addVisualEffectOverflow();
updateLayerTransform();
setNeedsLayout(false);
...
}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
https://github.com/WebKit/WebKit/commit/37224f042c178a094cc2287dee595345bc89f687 <- Frame Flattening code is gone, should we close this? @Alan