diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2009-06-15 09:06:43 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2009-06-15 09:31:31 (GMT) |
commit | c411f16870f112c3407c28c22b617f613a82cff4 (patch) | |
tree | 29a1bcd590c8b31af2aab445bfe8a978dc5bf582 /src/3rdparty/webkit/WebCore/rendering/RenderBR.cpp | |
parent | 3d77b56b32a0c53ec0bbfaa07236fedb900ff336 (diff) | |
download | Qt-c411f16870f112c3407c28c22b617f613a82cff4.zip Qt-c411f16870f112c3407c28c22b617f613a82cff4.tar.gz Qt-c411f16870f112c3407c28c22b617f613a82cff4.tar.bz2 |
Updated WebKit from /home/shausman/src/webkit/trunk to qtwebkit-4.6-snapshot-15062009 ( 65232bf00dc494ebfd978f998c88f58d18ecce1e )
Diffstat (limited to 'src/3rdparty/webkit/WebCore/rendering/RenderBR.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/rendering/RenderBR.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/3rdparty/webkit/WebCore/rendering/RenderBR.cpp b/src/3rdparty/webkit/WebCore/rendering/RenderBR.cpp index 2532c5b..f407099 100644 --- a/src/3rdparty/webkit/WebCore/rendering/RenderBR.cpp +++ b/src/3rdparty/webkit/WebCore/rendering/RenderBR.cpp @@ -40,15 +40,6 @@ RenderBR::~RenderBR() { } -InlineBox* RenderBR::createInlineBox(bool makePlaceholder, bool isRootLineBox, bool isOnlyRun) -{ - // We only treat a box as text for a <br> if we are on a line by ourself or in strict mode - // (Note the use of strict mode. In "almost strict" mode, we don't treat the box for <br> as text.) - InlineTextBox* box = static_cast<InlineTextBox*>(RenderText::createInlineBox(makePlaceholder, isRootLineBox, isOnlyRun)); - box->setIsText(isOnlyRun || document()->inStrictMode()); - return box; -} - int RenderBR::baselinePosition(bool firstLine, bool isRootLineBox) const { if (firstTextBox() && !firstTextBox()->isText()) @@ -82,7 +73,7 @@ int RenderBR::lineHeight(bool firstLine, bool /*isRootLineBox*/) const return m_lineHeight; } -void RenderBR::styleDidChange(RenderStyle::Diff diff, const RenderStyle* oldStyle) +void RenderBR::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle) { RenderText::styleDidChange(diff, oldStyle); m_lineHeight = -1; @@ -103,9 +94,9 @@ unsigned RenderBR::caretMaxRenderedOffset() const return 1; } -VisiblePosition RenderBR::positionForCoordinates(int /*x*/, int /*y*/) +VisiblePosition RenderBR::positionForPoint(const IntPoint&) { - return VisiblePosition(element(), 0, DOWNSTREAM); + return createVisiblePosition(0, DOWNSTREAM); } } // namespace WebCore |