| OLD | NEW |
| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 156 } |
| 157 | 157 |
| 158 // boolean functions on Node | 158 // boolean functions on Node |
| 159 | 159 |
| 160 // FIXME: editingIgnoresContent, canHaveChildrenForEditing, and isAtomicNode | 160 // FIXME: editingIgnoresContent, canHaveChildrenForEditing, and isAtomicNode |
| 161 // should be renamed to reflect its usage. | 161 // should be renamed to reflect its usage. |
| 162 | 162 |
| 163 // Returns true for nodes that either have no content, or have content that is | 163 // Returns true for nodes that either have no content, or have content that is |
| 164 // ignored (skipped over) while editing. There are no VisiblePositions inside | 164 // ignored (skipped over) while editing. There are no VisiblePositions inside |
| 165 // these nodes. | 165 // these nodes. |
| 166 inline bool editingIgnoresContent(const Node* node) { | 166 // TODO(yosin) We should make |editingIgnoresContent()| take |Node&|. |
| 167 return EditingStrategy::editingIgnoresContent(node); | 167 bool editingIgnoresContent(const Node*); |
| 168 } | |
| 169 | 168 |
| 170 inline bool canHaveChildrenForEditing(const Node* node) { | 169 inline bool canHaveChildrenForEditing(const Node* node) { |
| 171 return !node->isTextNode() && node->canContainRangeEndPoint(); | 170 return !node->isTextNode() && node->canContainRangeEndPoint(); |
| 172 } | 171 } |
| 173 | 172 |
| 174 bool isAtomicNode(const Node*); | 173 bool isAtomicNode(const Node*); |
| 175 CORE_EXPORT bool isEnclosingBlock(const Node*); | 174 CORE_EXPORT bool isEnclosingBlock(const Node*); |
| 176 bool isTabHTMLSpanElement(const Node*); | 175 bool isTabHTMLSpanElement(const Node*); |
| 177 bool isTabHTMLSpanElementTextNode(const Node*); | 176 bool isTabHTMLSpanElementTextNode(const Node*); |
| 178 bool isMailHTMLBlockquoteElement(const Node*); | 177 bool isMailHTMLBlockquoteElement(const Node*); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 InputEvent::InputType, | 433 InputEvent::InputType, |
| 435 DataTransfer*, | 434 DataTransfer*, |
| 436 const RangeVector*); | 435 const RangeVector*); |
| 437 | 436 |
| 438 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, | 437 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, |
| 439 TextGranularity); | 438 TextGranularity); |
| 440 | 439 |
| 441 } // namespace blink | 440 } // namespace blink |
| 442 | 441 |
| 443 #endif | 442 #endif |
| OLD | NEW |