virtual PlatformPageClient platformPageClient() const { return 0; }
virtual void contentsSizeChanged(Frame*, const IntSize&) const { }
-#if ENABLE(TIZEN_VIEWPORT_META_TAG)
- virtual bool canContentsSizeChange(Frame*, const IntSize&) const { return true; }
-#endif
-
-
virtual void scrollbarsModeDidChange() const { }
virtual void mouseDidMoveOverElement(const HitTestResult&, unsigned) { }
return m_client->platformPageClient();
}
-#if ENABLE(TIZEN_VIEWPORT_META_TAG)
-bool Chrome::canContentsSizeChange(Frame* frame, const IntSize& size) const
-{
- return m_client->canContentsSizeChange(frame, size);
-}
-#endif
-
void Chrome::contentsSizeChanged(Frame* frame, const IntSize& size) const
{
m_client->contentsSizeChanged(frame, size);
void scrollRectIntoView(const IntRect&) const;
-#if ENABLE(TIZEN_VIEWPORT_META_TAG)
- bool canContentsSizeChange(Frame*, const IntSize&) const;
-#endif
-
void contentsSizeChanged(Frame*, const IntSize&) const;
void layoutUpdated(Frame*) const;
virtual void dispatchViewportPropertiesDidChange(const ViewportArguments&) const { }
-#if ENABLE(TIZEN_VIEWPORT_META_TAG)
- virtual bool canContentsSizeChange(Frame*, const IntSize&) const = 0;
-#endif
-
virtual void contentsSizeChanged(Frame*, const IntSize&) const = 0;
virtual void layoutUpdated(Frame*) const { }
virtual void scrollRectIntoView(const IntRect&) const { }; // Currently only Mac has a non empty implementation.
if (size == contentsSize())
return;
-#if ENABLE(TIZEN_VIEWPORT_META_TAG)
- Page* page = frame() ? frame()->page() : 0;
- if (!page)
- return;
-
- // According to decision of port, content size can be changed.
- if (!page->chrome()->canContentsSizeChange(frame(), size)) {
- // FIXME: This patch should be removed when unexpected layout change problem is fixed.
- m_deferSetNeedsLayouts++;
- ScrollView::setContentsSize(IntSize(fixedLayoutSize().width(), size.height()));
- } else {
- m_deferSetNeedsLayouts++;
- ScrollView::setContentsSize(size);
- }
-#else
m_deferSetNeedsLayouts++;
ScrollView::setContentsSize(size);
-#endif
ScrollView::contentsResized();
-#if !ENABLE(TIZEN_VIEWPORT_META_TAG)
Page* page = frame() ? frame()->page() : 0;
if (!page)
return;
-#endif
updateScrollableAreaSet();