Index: Source/core/editing/VisibleSelection.h |
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h |
index bb7c52841d3f4cee442307b7847f753fabcd83d9..5e515f8e32b4766ffaa6f7f575525d65b8688a2b 100644 |
--- a/Source/core/editing/VisibleSelection.h |
+++ b/Source/core/editing/VisibleSelection.h |
@@ -20,7 +20,7 @@ |
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
#ifndef VisibleSelection_h |
@@ -47,7 +47,7 @@ public: |
VisibleSelection(const Position&, const Position&, EAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false); |
VisibleSelection(const Range*, EAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false); |
- |
+ |
VisibleSelection(const VisiblePosition&, bool isDirectional = false); |
VisibleSelection(const VisiblePosition&, const VisiblePosition&, bool isDirectional = false); |
@@ -62,12 +62,12 @@ public: |
void setBase(const VisiblePosition&); |
void setExtent(const Position&); |
void setExtent(const VisiblePosition&); |
- |
+ |
Position base() const { return m_base; } |
Position extent() const { return m_extent; } |
Position start() const { return m_start; } |
Position end() const { return m_end; } |
- |
+ |
VisiblePosition visibleStart() const { return VisiblePosition(m_start, isRange() ? DOWNSTREAM : affinity()); } |
VisiblePosition visibleEnd() const { return VisiblePosition(m_end, isRange() ? UPSTREAM : affinity()); } |
VisiblePosition visibleBase() const { return VisiblePosition(m_base, isRange() ? (isBaseFirst() ? UPSTREAM : DOWNSTREAM) : affinity()); } |
@@ -89,7 +89,7 @@ public: |
void appendTrailingWhitespace(); |
bool expandUsingGranularity(TextGranularity granularity); |
- |
+ |
// We don't yet support multi-range selections, so we only ever have one range to return. |
PassRefPtr<Range> firstRange() const; |
@@ -97,7 +97,7 @@ public: |
// for historical reasons. toNormalizedRange contracts the range around |
// text, and moves the caret upstream before returning the range. |
PassRefPtr<Range> toNormalizedRange() const; |
- |
+ |
Element* rootEditableElement() const; |
bool isContentEditable() const; |
bool rendererIsEditable() const; |