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

Side by Side Diff: Source/core/editing/EditingUtilities.h

Issue 1303163006: Introduce composed tree version of directionOfEnclosingBlock() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-28T14:44:15 Follow review comments Created 5 years, 3 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) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 bool isHTMLListElement(Node*); 142 bool isHTMLListElement(Node*);
143 bool isListItem(const Node*); 143 bool isListItem(const Node*);
144 bool isNodeRendered(const Node&); 144 bool isNodeRendered(const Node&);
145 bool isNodeVisiblyContainedWithin(Node&, const Range&); 145 bool isNodeVisiblyContainedWithin(Node&, const Range&);
146 bool isRenderedAsNonInlineTableImageOrHR(const Node*); 146 bool isRenderedAsNonInlineTableImageOrHR(const Node*);
147 bool areIdenticalElements(const Node*, const Node*); 147 bool areIdenticalElements(const Node*, const Node*);
148 bool isNonTableCellHTMLBlockElement(const Node*); 148 bool isNonTableCellHTMLBlockElement(const Node*);
149 bool isBlockFlowElement(const Node&); 149 bool isBlockFlowElement(const Node&);
150 bool nodeIsUserSelectAll(const Node*); 150 bool nodeIsUserSelectAll(const Node*);
151 bool nodeIsUserSelectNone(Node*); 151 bool nodeIsUserSelectNone(Node*);
152 TextDirection directionOfEnclosingBlock(const Position&); 152 CORE_EXPORT TextDirection directionOfEnclosingBlock(const Position&);
153 CORE_EXPORT TextDirection directionOfEnclosingBlock(const PositionInComposedTree &);
153 CORE_EXPORT TextDirection primaryDirectionOf(const Node&); 154 CORE_EXPORT TextDirection primaryDirectionOf(const Node&);
154 155
155 // ------------------------------------------------------------------------- 156 // -------------------------------------------------------------------------
156 // Position 157 // Position
157 // ------------------------------------------------------------------------- 158 // -------------------------------------------------------------------------
158 159
159 // Functions returning Position 160 // Functions returning Position
160 161
161 Position nextCandidate(const Position&); 162 Position nextCandidate(const Position&);
162 PositionInComposedTree nextCandidate(const PositionInComposedTree&); 163 PositionInComposedTree nextCandidate(const PositionInComposedTree&);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 310 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
310 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 311 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
311 } 312 }
312 313
313 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 314 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
314 const String& nonBreakingSpaceString(); 315 const String& nonBreakingSpaceString();
315 316
316 } 317 }
317 318
318 #endif 319 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/EditingUtilities.cpp » ('j') | Source/core/editing/EditingUtilities.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698