webengine/osswebengine/WebCore/rendering/RenderText.h
changeset 8 7c90e6132015
parent 0 dd21522fd290
child 27 60c5402cb945
equal deleted inserted replaced
0:dd21522fd290 8:7c90e6132015
    95     virtual int xPos() const;
    95     virtual int xPos() const;
    96     virtual int yPos() const;
    96     virtual int yPos() const;
    97 
    97 
    98     virtual short verticalPositionHint(bool firstLine) const;
    98     virtual short verticalPositionHint(bool firstLine) const;
    99 
    99 
   100     void setText(PassRefPtr<StringImpl>, bool force = false);
   100     void setText(PassRefPtr<StringImpl>, bool force = false, bool backspace = false);
   101     void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len, bool force = false);
   101     void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len, bool force = false, bool backspace = false);
   102 
   102 
   103     virtual bool canBeSelectionLeaf() const { return true; }
   103     virtual bool canBeSelectionLeaf() const { return true; }
   104     virtual SelectionState selectionState() const { return static_cast<SelectionState>(m_selectionState); }
   104     virtual SelectionState selectionState() const { return static_cast<SelectionState>(m_selectionState); }
   105     virtual void setSelectionState(SelectionState s);
   105     virtual void setSelectionState(SelectionState s);
   106     virtual IntRect selectionRect(bool clipToVisibleContent = true);
   106     virtual IntRect selectionRect(bool clipToVisibleContent = true);
   130     int allowTabs() const { return !style()->collapseWhiteSpace(); }
   130     int allowTabs() const { return !style()->collapseWhiteSpace(); }
   131 
   131 
   132     void checkConsistency() const;
   132     void checkConsistency() const;
   133 
   133 
   134 protected:
   134 protected:
   135     virtual void setTextInternal(PassRefPtr<StringImpl>);
   135     virtual void setTextInternal(PassRefPtr<StringImpl>, bool backspace = false);
   136     virtual void calcPrefWidths(int leadWidth);
   136     virtual void calcPrefWidths(int leadWidth);
   137     virtual UChar previousCharacter();
   137     virtual UChar previousCharacter();
   138 
   138 
   139 private:
   139 private:
   140     // Make length() private so that callers that have a RenderText*
   140     // Make length() private so that callers that have a RenderText*