Changeset 49766 in webkit


Ignore:
Timestamp:
Oct 18, 2009 11:51:24 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>

Reviewed by Simon Hausmann.

Rename fixedContentsSize property to preferredContentsSize as
agreed upon with Siman Hausmann and Matthias Ettrich.

  • Api/qwebpage.cpp: (QWebPage::preferredContentsSize): (QWebPage::setPreferredContentsSize):
  • Api/qwebpage.h:
  • WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):

2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>

Reviewed by Simon Hausmann.

Use the setPreferredContentsSize method instead
of setFixedContentsSize, as the method has been renamed.

  • DumpRenderTree/qt/DumpRenderTree.cpp: (WebCore::DumpRenderTree::open):
  • DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::setFixedContentsSize):
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebpage.cpp

    r49729 r49766  
    19571957}
    19581958
    1959 QSize QWebPage::fixedContentsSize() const
     1959QSize QWebPage::preferredContentsSize() const
    19601960{
    19611961    QWebFrame* frame = d->mainFrame;
     
    19701970
    19711971/*!
    1972     \property QWebPage::fixedContentsSize
     1972    \property QWebPage::preferredContentsSize
    19731973    \since 4.6
    19741974    \brief the size of the fixed layout
     
    19781978    rather than something different.
    19791979*/
    1980 void QWebPage::setFixedContentsSize(const QSize &size) const
     1980void QWebPage::setPreferredContentsSize(const QSize &size) const
    19811981{
    19821982    d->fixedLayoutSize = size;
  • trunk/WebKit/qt/Api/qwebpage.h

    r49100 r49766  
    6868    Q_PROPERTY(QString selectedText READ selectedText)
    6969    Q_PROPERTY(QSize viewportSize READ viewportSize WRITE setViewportSize)
    70     Q_PROPERTY(QSize fixedContentsSize READ fixedContentsSize WRITE setFixedContentsSize)
     70    Q_PROPERTY(QSize preferredContentsSize READ preferredContentsSize WRITE setPreferredContentsSize)
    7171    Q_PROPERTY(bool forwardUnsupportedContent READ forwardUnsupportedContent WRITE setForwardUnsupportedContent)
    7272    Q_PROPERTY(LinkDelegationPolicy linkDelegationPolicy READ linkDelegationPolicy WRITE setLinkDelegationPolicy)
     
    238238    void setViewportSize(const QSize &size) const;
    239239
    240     QSize fixedContentsSize() const;
    241     void setFixedContentsSize(const QSize &size) const;
     240    QSize preferredContentsSize() const;
     241    void setPreferredContentsSize(const QSize &size) const;
    242242
    243243    virtual bool event(QEvent*);
  • trunk/WebKit/qt/ChangeLog

    r49730 r49766  
     12009-10-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Rename fixedContentsSize property to preferredContentsSize as
     6        agreed upon with Siman Hausmann and Matthias Ettrich.
     7
     8        * Api/qwebpage.cpp:
     9        (QWebPage::preferredContentsSize):
     10        (QWebPage::setPreferredContentsSize):
     11        * Api/qwebpage.h:
     12        * WebCoreSupport/FrameLoaderClientQt.cpp:
     13        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
     14
    1152009-10-16  Antonio Gomes  <tonikitoo@webkit.org>
    216
  • trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp

    r49497 r49766  
    215215
    216216    QWebPage* page = m_webFrame->page();
    217     const QSize fixedLayoutSize = page->fixedContentsSize();
     217    const QSize preferredLayoutSize = page->preferredContentsSize();
    218218
    219219    m_frame->createView(m_webFrame->page()->viewportSize(),
    220220                        backgroundColor, !backgroundColor.alpha(),
    221                         fixedLayoutSize.isValid() ? IntSize(fixedLayoutSize) : IntSize(),
    222                         fixedLayoutSize.isValid(),
     221                        preferredLayoutSize.isValid() ? IntSize(preferredLayoutSize) : IntSize(),
     222                        preferredLayoutSize.isValid(),
    223223                        (ScrollbarMode)m_webFrame->scrollBarPolicy(Qt::Horizontal),
    224224                        (ScrollbarMode)m_webFrame->scrollBarPolicy(Qt::Vertical));
  • trunk/WebKitTools/ChangeLog

    r49735 r49766  
     12009-10-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Use the setPreferredContentsSize method instead
     6        of setFixedContentsSize, as the method has been renamed.
     7
     8        * DumpRenderTree/qt/DumpRenderTree.cpp:
     9        (WebCore::DumpRenderTree::open):
     10        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
     11        (LayoutTestController::setFixedContentsSize):
     12
    1132009-10-16  Steve Falkenburg  <sfalken@apple.com>
    214
  • trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTree.cpp

    r49563 r49766  
    317317    int height = isW3CTest ? 360 : maxViewHeight;
    318318    m_page->view()->resize(QSize(width, height));
    319     m_page->setFixedContentsSize(QSize());
     319    m_page->setPreferredContentsSize(QSize());
    320320    m_page->setViewportSize(QSize(width, height));
    321321
  • trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp

    r49563 r49766  
    212212void LayoutTestController::setFixedContentsSize(int width, int height)
    213213{
    214     m_topLoadingFrame->page()->setFixedContentsSize(QSize(width, height));
     214    m_topLoadingFrame->page()->setPreferredContentsSize(QSize(width, height));
    215215}
    216216
Note: See TracChangeset for help on using the changeset viewer.