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

Side by Side Diff: sky/engine/core/dom/PositionIterator.cpp

Issue 1070233002: Remove dead code around anonymous renderers. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « sky/engine/core/dom/Position.cpp ('k') | sky/engine/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Position.cpp ('k') | sky/engine/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698