diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/LayoutSize.h')
-rw-r--r-- | Source/WebCore/platform/graphics/LayoutSize.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/Source/WebCore/platform/graphics/LayoutSize.h b/Source/WebCore/platform/graphics/LayoutSize.h index 6ff187e62..2e45f9d26 100644 --- a/Source/WebCore/platform/graphics/LayoutSize.h +++ b/Source/WebCore/platform/graphics/LayoutSize.h @@ -35,14 +35,6 @@ #include "IntSize.h" #include "LayoutUnit.h" -#if PLATFORM(QT) -#include <qglobal.h> -QT_BEGIN_NAMESPACE -class QSize; -class QSizeF; -QT_END_NAMESPACE -#endif - namespace WebCore { class LayoutPoint; @@ -72,6 +64,12 @@ public: m_height += height; } + void shrink(LayoutUnit width, LayoutUnit height) + { + m_width -= width; + m_height -= height; + } + void scale(float scale) { m_width *= scale; @@ -114,11 +112,7 @@ public: return LayoutSize(m_height, m_width); } -#if PLATFORM(QT) - explicit LayoutSize(const QSize&); - explicit LayoutSize(const QSizeF&); - operator QSizeF() const; -#endif + operator FloatSize() const { return FloatSize(m_width, m_height); } private: LayoutUnit m_width, m_height; |