Index: Source/core/dom/Position.h |
diff --git a/Source/core/dom/Position.h b/Source/core/dom/Position.h |
index c3ad406f0e506bfaa2441814fddce95b1ed83fc2..10cd5946cc8e34264f935dae90381b45a07fa34b 100644 |
--- a/Source/core/dom/Position.h |
+++ b/Source/core/dom/Position.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 Position_h |
@@ -164,7 +164,7 @@ public: |
// Returns true if the visually equivalent positions around have different editability |
bool atEditingBoundary() const; |
Node* parentEditingBoundary() const; |
- |
+ |
bool atStartOfTree() const; |
bool atEndOfTree() const; |
@@ -172,11 +172,11 @@ public: |
// These aren't really basic "position" operations. More high level editing helper functions. |
Position leadingWhitespacePosition(EAffinity, bool considerNonCollapsibleWhitespace = false) const; |
Position trailingWhitespacePosition(EAffinity, bool considerNonCollapsibleWhitespace = false) const; |
- |
+ |
// These return useful visually equivalent positions. |
Position upstream(EditingBoundaryCrossingRule = CannotCrossEditingBoundary) const; |
Position downstream(EditingBoundaryCrossingRule = CannotCrossEditingBoundary) const; |
- |
+ |
bool isCandidate() const; |
bool inRenderedText() const; |
bool isRenderedCharacter() const; |
@@ -194,7 +194,7 @@ public: |
static Node* rootUserSelectAllForNode(Node*); |
#endif |
static ContainerNode* findParent(const Node*); |
- |
+ |
void debugPosition(const char* msg = "") const; |
#ifndef NDEBUG |
@@ -202,13 +202,13 @@ public: |
void showAnchorTypeAndOffset() const; |
void showTreeForThis() const; |
#endif |
- |
+ |
private: |
int offsetForPositionAfterAnchor() const; |
int renderedOffset() const; |
- |
+ |
Position previousCharacterPosition(EAffinity) const; |
Position nextCharacterPosition(EAffinity) const; |
@@ -300,7 +300,7 @@ inline int minOffsetForNode(Node* anchorNode, int offset) |
int newOffset = 0; |
for (Node* node = anchorNode->firstChild(); node && newOffset < offset; node = node->nextSibling()) |
newOffset++; |
- |
+ |
return newOffset; |
} |
@@ -312,8 +312,8 @@ inline bool offsetIsBeforeLastNodeOffset(int offset, Node* anchorNode) |
int currentOffset = 0; |
for (Node* node = anchorNode->firstChild(); node && currentOffset < offset; node = node->nextSibling()) |
currentOffset++; |
- |
- |
+ |
+ |
return offset < currentOffset; |
} |