Changeset 49766 in webkit
- Timestamp:
- Oct 18, 2009 11:51:24 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qwebpage.cpp
r49729 r49766 1957 1957 } 1958 1958 1959 QSize QWebPage:: fixedContentsSize() const1959 QSize QWebPage::preferredContentsSize() const 1960 1960 { 1961 1961 QWebFrame* frame = d->mainFrame; … … 1970 1970 1971 1971 /*! 1972 \property QWebPage:: fixedContentsSize1972 \property QWebPage::preferredContentsSize 1973 1973 \since 4.6 1974 1974 \brief the size of the fixed layout … … 1978 1978 rather than something different. 1979 1979 */ 1980 void QWebPage::set FixedContentsSize(const QSize &size) const1980 void QWebPage::setPreferredContentsSize(const QSize &size) const 1981 1981 { 1982 1982 d->fixedLayoutSize = size; -
trunk/WebKit/qt/Api/qwebpage.h
r49100 r49766 68 68 Q_PROPERTY(QString selectedText READ selectedText) 69 69 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) 71 71 Q_PROPERTY(bool forwardUnsupportedContent READ forwardUnsupportedContent WRITE setForwardUnsupportedContent) 72 72 Q_PROPERTY(LinkDelegationPolicy linkDelegationPolicy READ linkDelegationPolicy WRITE setLinkDelegationPolicy) … … 238 238 void setViewportSize(const QSize &size) const; 239 239 240 QSize fixedContentsSize() const;241 void set FixedContentsSize(const QSize &size) const;240 QSize preferredContentsSize() const; 241 void setPreferredContentsSize(const QSize &size) const; 242 242 243 243 virtual bool event(QEvent*); -
trunk/WebKit/qt/ChangeLog
r49730 r49766 1 2009-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 1 15 2009-10-16 Antonio Gomes <tonikitoo@webkit.org> 2 16 -
trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r49497 r49766 215 215 216 216 QWebPage* page = m_webFrame->page(); 217 const QSize fixedLayoutSize = page->fixedContentsSize();217 const QSize preferredLayoutSize = page->preferredContentsSize(); 218 218 219 219 m_frame->createView(m_webFrame->page()->viewportSize(), 220 220 backgroundColor, !backgroundColor.alpha(), 221 fixedLayoutSize.isValid() ? IntSize(fixedLayoutSize) : IntSize(),222 fixedLayoutSize.isValid(),221 preferredLayoutSize.isValid() ? IntSize(preferredLayoutSize) : IntSize(), 222 preferredLayoutSize.isValid(), 223 223 (ScrollbarMode)m_webFrame->scrollBarPolicy(Qt::Horizontal), 224 224 (ScrollbarMode)m_webFrame->scrollBarPolicy(Qt::Vertical)); -
trunk/WebKitTools/ChangeLog
r49735 r49766 1 2009-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 1 13 2009-10-16 Steve Falkenburg <sfalken@apple.com> 2 14 -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTree.cpp
r49563 r49766 317 317 int height = isW3CTest ? 360 : maxViewHeight; 318 318 m_page->view()->resize(QSize(width, height)); 319 m_page->set FixedContentsSize(QSize());319 m_page->setPreferredContentsSize(QSize()); 320 320 m_page->setViewportSize(QSize(width, height)); 321 321 -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
r49563 r49766 212 212 void LayoutTestController::setFixedContentsSize(int width, int height) 213 213 { 214 m_topLoadingFrame->page()->set FixedContentsSize(QSize(width, height));214 m_topLoadingFrame->page()->setPreferredContentsSize(QSize(width, height)); 215 215 } 216 216
Note: See TracChangeset
for help on using the changeset viewer.