Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Qt] FloatSize Qt Support
https://bugs.webkit.org/show_bug.cgi?id=87237 Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-05-23 Reviewed by Andreas Kling. Source/WebCore: No new functionality. No new tests. * Target.pri: * platform/graphics/FloatSize.h: (FloatSize): * platform/graphics/qt/FloatSizeQt.cpp: Added. (WebCore::FloatSize::FloatSize): (WebCore::FloatSize::operator QSizeF): Source/WebKit2: Basic cleanup possible to new Qt support in FloatSize. * UIProcess/API/qt/qquickwebpage.cpp: (QQuickWebPagePrivate::updateSize): * UIProcess/API/qt/qwebkittest.cpp: (QWebKitTest::layoutSize): Canonical link: https://commits.webkit.org/104970@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@118159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
0256c1d
commit 7fd9ee2
Showing
7 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Library General Public | ||
License as published by the Free Software Foundation; either | ||
version 2 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Library General Public License for more details. | ||
You should have received a copy of the GNU Library General Public License | ||
along with this library; see the file COPYING.LIB. If not, write to | ||
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
Boston, MA 02110-1301, USA. | ||
*/ | ||
|
||
#include "config.h" | ||
|
||
#include "FloatSize.h" | ||
|
||
#include <QSizeF> | ||
|
||
namespace WebCore { | ||
|
||
FloatSize::FloatSize(const QSizeF& size) | ||
: m_width(size.width()) | ||
, m_height(size.height()) | ||
{ | ||
} | ||
|
||
FloatSize::operator QSizeF() const | ||
{ | ||
return QSizeF(width(), height()); | ||
} | ||
|
||
} // namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters