diff options
Diffstat (limited to 'WebCore/page/FrameView.cpp')
-rw-r--r-- | WebCore/page/FrameView.cpp | 48 |
1 files changed, 2 insertions, 46 deletions
diff --git a/WebCore/page/FrameView.cpp b/WebCore/page/FrameView.cpp index 660cdfb..6abb07c 100644 --- a/WebCore/page/FrameView.cpp +++ b/WebCore/page/FrameView.cpp @@ -503,9 +503,11 @@ void FrameView::calculateScrollbarModesForLayout(ScrollbarMode& hMode, Scrollbar Node* body = document->body(); if (body && body->renderer()) { if (body->hasTagName(framesetTag) && m_frame->settings() && !m_frame->settings()->frameFlatteningEnabled()) { +#if !defined(ANDROID_FLATTEN_IFRAME) && !defined(ANDROID_FLATTEN_FRAMESET) body->renderer()->setChildNeedsLayout(true); vMode = ScrollbarAlwaysOff; hMode = ScrollbarAlwaysOff; +#endif } else if (body->hasTagName(bodyTag)) { if (!m_firstLayout && m_size.height() != layoutHeight() && body->renderer()->enclosingBox()->stretchesToViewport()) body->renderer()->setChildNeedsLayout(true); @@ -732,54 +734,8 @@ void FrameView::layout(bool allowSubtree) ScrollbarMode hMode; ScrollbarMode vMode; -<<<<<<< HEAD - if (m_canHaveScrollbars) { - hMode = ScrollbarAuto; - vMode = ScrollbarAuto; - } else { - hMode = ScrollbarAlwaysOff; - vMode = ScrollbarAlwaysOff; - } - - if (!subtree) { - Node* documentElement = document->documentElement(); - RenderObject* rootRenderer = documentElement ? documentElement->renderer() : 0; - Node* body = document->body(); - if (body && body->renderer()) { - if (body->hasTagName(framesetTag) && m_frame->settings() && !m_frame->settings()->frameFlatteningEnabled()) { -#if !defined(ANDROID_FLATTEN_IFRAME) && !defined(ANDROID_FLATTEN_FRAMESET) - body->renderer()->setChildNeedsLayout(true); - vMode = ScrollbarAlwaysOff; - hMode = ScrollbarAlwaysOff; -#endif - } else if (body->hasTagName(bodyTag)) { - if (!m_firstLayout && m_size.height() != layoutHeight() && body->renderer()->enclosingBox()->stretchesToViewHeight()) - body->renderer()->setChildNeedsLayout(true); - // It's sufficient to just check the X overflow, - // since it's illegal to have visible in only one direction. - RenderObject* o = rootRenderer->style()->overflowX() == OVISIBLE && document->documentElement()->hasTagName(htmlTag) ? body->renderer() : rootRenderer; - applyOverflowToViewport(o, hMode, vMode); - } - } else if (rootRenderer) { -#if ENABLE(SVG) - if (documentElement->isSVGElement()) { - if (!m_firstLayout && (m_size.width() != layoutWidth() || m_size.height() != layoutHeight())) - rootRenderer->setChildNeedsLayout(true); - } else - applyOverflowToViewport(rootRenderer, hMode, vMode); -#else - applyOverflowToViewport(rootRenderer, hMode, vMode); -#endif - } -#ifdef INSTRUMENT_LAYOUT_SCHEDULING - if (m_firstLayout && !document->ownerElement()) - printf("Elapsed time before first layout: %d\n", document->elapsedTime()); -#endif - } -======= calculateScrollbarModesForLayout(hMode, vMode); ->>>>>>> webkit.org at r70209 m_doFullRepaint = !subtree && (m_firstLayout || toRenderView(root)->printing()); |