+2013-05-07 Ryosuke Niwa <rniwa@webkit.org>
+
+ Potential use-after-free of Frame
+ https://bugs.webkit.org/show_bug.cgi?id=115774
+
+ Reviewed by Simon Fraser.
+
+ Merge https://chromium.googlesource.com/chromium/blink/+/c5b4a6db82e8280c7fc55ee3dc3a84c6b026e66e.
+
+ * page/Frame.cpp:
+ (WebCore::Frame::setPrinting):
+ (WebCore::Frame::setPageAndTextZoomFactors):
+ (WebCore::Frame::deviceOrPageScaleFactorChanged):
+
2013-05-08 Roger Fong <roger_fong@apple.com>
Unreviewed build fix, AppleWin port.
}
// Subframes of the one we're printing don't lay out to the page size.
- for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
+ for (RefPtr<Frame> child = tree()->firstChild(); child; child = child->tree()->nextSibling())
child->setPrinting(printing, FloatSize(), FloatSize(), 0, shouldAdjustViewSize);
}
document->recalcStyle(Node::Force);
- for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
+ for (RefPtr<Frame> child = tree()->firstChild(); child; child = child->tree()->nextSibling())
child->setPageAndTextZoomFactors(m_pageZoomFactor, m_textZoomFactor);
if (FrameView* view = this->view()) {
#if USE(ACCELERATED_COMPOSITING)
void Frame::deviceOrPageScaleFactorChanged()
{
- for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
+ for (RefPtr<Frame> child = tree()->firstChild(); child; child = child->tree()->nextSibling())
child->deviceOrPageScaleFactorChanged();
RenderView* root = contentRenderer();