| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 return false; | 145 return false; |
| 146 | 146 |
| 147 if (renderer->isText()) | 147 if (renderer->isText()) |
| 148 return !Position::nodeIsUserSelectNone(m_anchorNode) && Position(*this).
inRenderedText(); | 148 return !Position::nodeIsUserSelectNone(m_anchorNode) && Position(*this).
inRenderedText(); |
| 149 | 149 |
| 150 if (editingIgnoresContent(m_anchorNode)) | 150 if (editingIgnoresContent(m_anchorNode)) |
| 151 return (atStartOfNode() || atEndOfNode()) && !Position::nodeIsUserSelect
None(m_anchorNode->parentNode()); | 151 return (atStartOfNode() || atEndOfNode()) && !Position::nodeIsUserSelect
None(m_anchorNode->parentNode()); |
| 152 | 152 |
| 153 if (renderer->isRenderParagraph()) { | 153 if (renderer->isRenderParagraph()) { |
| 154 if (toRenderParagraph(renderer)->logicalHeight()) { | 154 if (toRenderParagraph(renderer)->logicalHeight()) { |
| 155 if (!Position::hasRenderedNonAnonymousDescendantsWithHeight(renderer
)) | 155 if (!Position::hasRenderedDescendantsWithHeight(renderer)) |
| 156 return atStartOfNode() && !Position::nodeIsUserSelectNone(m_anch
orNode); | 156 return atStartOfNode() && !Position::nodeIsUserSelectNone(m_anch
orNode); |
| 157 return m_anchorNode->hasEditableStyle() && !Position::nodeIsUserSele
ctNone(m_anchorNode) && Position(*this).atEditingBoundary(); | 157 return m_anchorNode->hasEditableStyle() && !Position::nodeIsUserSele
ctNone(m_anchorNode) && Position(*this).atEditingBoundary(); |
| 158 } | 158 } |
| 159 } | 159 } |
| 160 | 160 |
| 161 return false; | 161 return false; |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace blink | 164 } // namespace blink |
| OLD | NEW |