Commit fc6af6b0 authored by bdakin@apple.com's avatar bdakin@apple.com

Setting a header or footer should cause a relayout

https://bugs.webkit.org/show_bug.cgi?id=114070

Reviewed by Sam Weinig.

Mark the RenderView as needing layout in order to adjust everything for the new 
header/footer.

* page/FrameView.cpp:
(WebCore::FrameView::setHeaderHeight):
(WebCore::FrameView::setFooterHeight):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b2b0b4d9
2013-04-05 Beth Dakin <bdakin@apple.com>
Setting a header or footer should cause a relayout
https://bugs.webkit.org/show_bug.cgi?id=114070
Reviewed by Sam Weinig.
Mark the RenderView as needing layout in order to adjust everything for the new
header/footer.
* page/FrameView.cpp:
(WebCore::FrameView::setHeaderHeight):
(WebCore::FrameView::setFooterHeight):
2013-04-05 Chris Fleizach <cfleizach@apple.com>
AX: Make SVG Group containers accessible elements
......@@ -935,6 +935,9 @@ void FrameView::setHeaderHeight(int headerHeight)
if (m_frame && m_frame->page())
ASSERT(m_frame == m_frame->page()->mainFrame());
m_headerHeight = headerHeight;
if (RenderView* renderView = this->renderView())
renderView->setNeedsLayout(true);
}
void FrameView::setFooterHeight(int footerHeight)
......@@ -942,6 +945,9 @@ void FrameView::setFooterHeight(int footerHeight)
if (m_frame && m_frame->page())
ASSERT(m_frame == m_frame->page()->mainFrame());
m_footerHeight = footerHeight;
if (RenderView* renderView = this->renderView())
renderView->setNeedsLayout(true);
}
bool FrameView::hasCompositedContent() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment