From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/rendering/BidiRun.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Source/WebCore/rendering/BidiRun.cpp') diff --git a/Source/WebCore/rendering/BidiRun.cpp b/Source/WebCore/rendering/BidiRun.cpp index 792e89388..f4681765a 100644 --- a/Source/WebCore/rendering/BidiRun.cpp +++ b/Source/WebCore/rendering/BidiRun.cpp @@ -33,7 +33,7 @@ namespace WebCore { DEFINE_DEBUG_ONLY_GLOBAL(RefCountedLeakCounter, bidiRunCounter, ("BidiRun")); -BidiRun::BidiRun(int start, int stop, RenderObject& renderer, BidiContext* context, UCharDirection dir) +BidiRun::BidiRun(unsigned start, unsigned stop, RenderObject& renderer, BidiContext* context, UCharDirection dir) : BidiCharacterRun(start, stop, context, dir) , m_renderer(renderer) , m_box(nullptr) @@ -41,12 +41,9 @@ BidiRun::BidiRun(int start, int stop, RenderObject& renderer, BidiContext* conte #ifndef NDEBUG bidiRunCounter.increment(); #endif - ASSERT(!m_renderer.isText() || static_cast(stop) <= toRenderText(m_renderer).textLength()); + ASSERT(!is(m_renderer) || static_cast(stop) <= downcast(m_renderer).textLength()); // Stored in base class to save space. m_hasHyphen = false; -#if ENABLE(CSS_SHAPES) - m_startsSegment = false; -#endif } BidiRun::~BidiRun() @@ -56,4 +53,12 @@ BidiRun::~BidiRun() #endif } +std::unique_ptr BidiRun::takeNext() +{ + std::unique_ptr next = BidiCharacterRun::takeNext(); + BidiCharacterRun* raw = next.release(); + std::unique_ptr result = std::unique_ptr(static_cast(raw)); + return result; +} + } -- cgit v1.2.1