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

Unified Diff: Source/core/dom/Position.h

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/PopStateEvent.idl ('k') | Source/core/dom/PositionIterator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « Source/core/dom/PopStateEvent.idl ('k') | Source/core/dom/PositionIterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698