summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/BidiRun.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/rendering/BidiRun.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/rendering/BidiRun.h')
-rw-r--r--Source/WebCore/rendering/BidiRun.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/Source/WebCore/rendering/BidiRun.h b/Source/WebCore/rendering/BidiRun.h
index a663143e6..8ede1d5e3 100644
--- a/Source/WebCore/rendering/BidiRun.h
+++ b/Source/WebCore/rendering/BidiRun.h
@@ -21,32 +21,30 @@
*
*/
-#ifndef BidiRun_h
-#define BidiRun_h
+#pragma once
#include <wtf/StdLibExtras.h>
#include "BidiResolver.h"
-#include "RenderText.h"
namespace WebCore {
class BidiContext;
class InlineBox;
+class RenderObject;
struct BidiRun : BidiCharacterRun {
- BidiRun(int start, int stop, RenderObject&, BidiContext*, UCharDirection);
+ BidiRun(unsigned start, unsigned stop, RenderObject&, BidiContext*, UCharDirection);
~BidiRun();
- BidiRun* next() { return static_cast<BidiRun*>(m_next); }
+ BidiRun* next() { return static_cast<BidiRun*>(BidiCharacterRun::next()); }
+ std::unique_ptr<BidiRun> takeNext();
RenderObject& renderer() { return m_renderer; }
InlineBox* box() { return m_box; }
- void setBox(InlineBox& box) { m_box = &box; }
+ void setBox(InlineBox* box) { m_box = box; }
private:
RenderObject& m_renderer;
InlineBox* m_box;
};
-}
-
-#endif // BidiRun_h
+} // namespace WebCore