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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/PositionIterator.cpp
diff --git a/sky/engine/core/dom/PositionIterator.cpp b/sky/engine/core/dom/PositionIterator.cpp
index e0382583386010edc1c74b6d8170de1e726ee3ad..e2eb32556708d9d63c05435d2aabfbf140df5d06 100644
--- a/sky/engine/core/dom/PositionIterator.cpp
+++ b/sky/engine/core/dom/PositionIterator.cpp
@@ -152,7 +152,7 @@ bool PositionIterator::isCandidate() const
if (renderer->isRenderParagraph()) {
if (toRenderParagraph(renderer)->logicalHeight()) {
- if (!Position::hasRenderedNonAnonymousDescendantsWithHeight(renderer))
+ if (!Position::hasRenderedDescendantsWithHeight(renderer))
return atStartOfNode() && !Position::nodeIsUserSelectNone(m_anchorNode);
return m_anchorNode->hasEditableStyle() && !Position::nodeIsUserSelectNone(m_anchorNode) && Position(*this).atEditingBoundary();
}
« 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