Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: Source/WebCore/rendering/RenderTextControl.h

Issue 7145022: Merge 88456 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 int selectionStart() const; 42 int selectionStart() const;
43 int selectionEnd() const; 43 int selectionEnd() const;
44 PassRefPtr<Range> selection(int start, int end) const; 44 PassRefPtr<Range> selection(int start, int end) const;
45 45
46 virtual void subtreeHasChanged(); 46 virtual void subtreeHasChanged();
47 String text(); 47 String text();
48 String textWithHardLineBreaks(); 48 String textWithHardLineBreaks();
49 void selectionChanged(bool userTriggered); 49 void selectionChanged(bool userTriggered);
50 50
51 VisiblePosition visiblePositionForIndex(int index) const; 51 VisiblePosition visiblePositionForIndex(int index) const;
52 int indexForVisiblePosition(const VisiblePosition&) const; 52 static int indexForVisiblePosition(HTMLElement*, const VisiblePosition&);
53 53
54 void updatePlaceholderVisibility(bool, bool); 54 void updatePlaceholderVisibility(bool, bool);
55 55
56 protected: 56 protected:
57 RenderTextControl(Node*, bool); 57 RenderTextControl(Node*, bool);
58 58
59 int scrollbarThickness() const; 59 int scrollbarThickness() const;
60 void adjustInnerTextStyle(const RenderStyle* startStyle, RenderStyle* textBl ockStyle) const; 60 void adjustInnerTextStyle(const RenderStyle* startStyle, RenderStyle* textBl ockStyle) const;
61 void setInnerTextValue(const String&); 61 void setInnerTextValue(const String&);
62 62
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void addFocusRingRects(Vector<IntRect>&, int tx, int ty); 97 virtual void addFocusRingRects(Vector<IntRect>&, int tx, int ty);
98 98
99 virtual bool canBeProgramaticallyScrolled(bool) const { return true; } 99 virtual bool canBeProgramaticallyScrolled(bool) const { return true; }
100 100
101 virtual bool requiresForcedStyleRecalcPropagation() const { return true; } 101 virtual bool requiresForcedStyleRecalcPropagation() const { return true; }
102 102
103 String finishText(Vector<UChar>&) const; 103 String finishText(Vector<UChar>&) const;
104 104
105 bool hasVisibleTextArea() const; 105 bool hasVisibleTextArea() const;
106 friend void setSelectionRange(Node*, int start, int end); 106 friend void setSelectionRange(Node*, int start, int end);
107 bool isSelectableElement(Node*) const; 107 static bool isSelectableElement(HTMLElement*, Node*);
108 108
109 virtual int textBlockInsetLeft() const = 0; 109 virtual int textBlockInsetLeft() const = 0;
110 virtual int textBlockInsetRight() const = 0; 110 virtual int textBlockInsetRight() const = 0;
111 virtual int textBlockInsetTop() const = 0; 111 virtual int textBlockInsetTop() const = 0;
112 112
113 void paintPlaceholder(PaintInfo&, int tx, int ty); 113 void paintPlaceholder(PaintInfo&, int tx, int ty);
114 114
115 bool m_lastChangeWasUserEdit; 115 bool m_lastChangeWasUserEdit;
116 RefPtr<TextControlInnerTextElement> m_innerText; 116 RefPtr<TextControlInnerTextElement> m_innerText;
117 }; 117 };
(...skipping 11 matching lines...) Expand all
129 ASSERT(!object || object->isTextControl()); 129 ASSERT(!object || object->isTextControl());
130 return static_cast<const RenderTextControl*>(object); 130 return static_cast<const RenderTextControl*>(object);
131 } 131 }
132 132
133 // This will catch anyone doing an unnecessary cast. 133 // This will catch anyone doing an unnecessary cast.
134 void toRenderTextControl(const RenderTextControl*); 134 void toRenderTextControl(const RenderTextControl*);
135 135
136 } // namespace WebCore 136 } // namespace WebCore
137 137
138 #endif // RenderTextControl_h 138 #endif // RenderTextControl_h
OLDNEW
« no previous file with comments | « Source/WebCore/accessibility/AccessibilityRenderObject.cpp ('k') | Source/WebCore/rendering/RenderTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698