diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebCore/rendering/RenderTextFragment.h | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) | |
download | qtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebCore/rendering/RenderTextFragment.h')
-rw-r--r-- | Source/WebCore/rendering/RenderTextFragment.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/WebCore/rendering/RenderTextFragment.h b/Source/WebCore/rendering/RenderTextFragment.h index 426276fe0..b7f3b0e9a 100644 --- a/Source/WebCore/rendering/RenderTextFragment.h +++ b/Source/WebCore/rendering/RenderTextFragment.h @@ -39,6 +39,8 @@ public: virtual bool isTextFragment() const { return true; } + virtual bool canBeSelectionLeaf() const OVERRIDE { return node() && node()->rendererIsEditable(); } + unsigned start() const { return m_start; } unsigned end() const { return m_end; } @@ -48,13 +50,16 @@ public: StringImpl* contentString() const { return m_contentString.get(); } virtual PassRefPtr<StringImpl> originalText() const; + virtual void setText(PassRefPtr<StringImpl>, bool force = false) OVERRIDE; + + virtual void transformText() OVERRIDE; + protected: virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); private: virtual void willBeDestroyed(); - virtual void setTextInternal(PassRefPtr<StringImpl>); virtual UChar previousCharacter() const; RenderBlock* blockForAccompanyingFirstLetter() const; @@ -62,7 +67,6 @@ private: unsigned m_end; RefPtr<StringImpl> m_contentString; RenderObject* m_firstLetter; - bool m_allowFragmentReset; }; inline RenderTextFragment* toRenderTextFragment(RenderObject* object) |