diff options
Diffstat (limited to 'WebCore/rendering/RenderTextControl.h')
-rw-r--r-- | WebCore/rendering/RenderTextControl.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/WebCore/rendering/RenderTextControl.h b/WebCore/rendering/RenderTextControl.h index c0fc343..cdd8716 100644 --- a/WebCore/rendering/RenderTextControl.h +++ b/WebCore/rendering/RenderTextControl.h @@ -56,8 +56,10 @@ public: VisiblePosition visiblePositionForIndex(int index); int indexForVisiblePosition(const VisiblePosition&); + void updatePlaceholderVisibility(bool, bool); + protected: - RenderTextControl(Node*); + RenderTextControl(Node*, bool); int scrollbarThickness() const; void adjustInnerTextStyle(const RenderStyle* startStyle, RenderStyle* textBlockStyle) const; @@ -76,6 +78,7 @@ protected: virtual void adjustControlHeightBasedOnLineHeight(int lineHeight) = 0; virtual void cacheSelection(int start, int end) = 0; virtual PassRefPtr<RenderStyle> createInnerTextStyle(const RenderStyle* startStyle) const = 0; + virtual RenderStyle* textBaseStyle() const = 0; virtual void updateFromElement(); virtual void calcHeight(); @@ -83,6 +86,8 @@ protected: friend class TextIterator; HTMLElement* innerTextElement() const; + bool m_placeholderVisible; + private: virtual const char* renderName() const { return "RenderTextControl"; } virtual bool isTextControl() const { return true; } @@ -92,6 +97,7 @@ private: virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } virtual bool canHaveChildren() const { return false; } virtual bool avoidsFloats() const { return true; } + void setInnerTextStyle(PassRefPtr<RenderStyle>); virtual void addFocusRingRects(GraphicsContext*, int tx, int ty); |