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

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

Issue 681553003: Remove a bunch of unused or never-set settings. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/css/FontSize.cpp ('k') | sky/engine/core/editing/Caret.h » ('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) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2009 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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 if (editingIgnoresContent(deprecatedNode())) 809 if (editingIgnoresContent(deprecatedNode()))
810 return (atFirstEditingPositionForNode() || atLastEditingPositionForNode( )) && !nodeIsUserSelectNone(deprecatedNode()->parentNode()); 810 return (atFirstEditingPositionForNode() || atLastEditingPositionForNode( )) && !nodeIsUserSelectNone(deprecatedNode()->parentNode());
811 811
812 if (renderer->isRenderBlockFlow()) { 812 if (renderer->isRenderBlockFlow()) {
813 if (toRenderBlock(renderer)->logicalHeight()) { 813 if (toRenderBlock(renderer)->logicalHeight()) {
814 if (!Position::hasRenderedNonAnonymousDescendantsWithHeight(renderer )) 814 if (!Position::hasRenderedNonAnonymousDescendantsWithHeight(renderer ))
815 return atFirstEditingPositionForNode() && !Position::nodeIsUserS electNone(deprecatedNode()); 815 return atFirstEditingPositionForNode() && !Position::nodeIsUserS electNone(deprecatedNode());
816 return m_anchorNode->hasEditableStyle() && !Position::nodeIsUserSele ctNone(deprecatedNode()) && atEditingBoundary(); 816 return m_anchorNode->hasEditableStyle() && !Position::nodeIsUserSele ctNone(deprecatedNode()) && atEditingBoundary();
817 } 817 }
818 } else { 818 } else {
819 LocalFrame* frame = m_anchorNode->document().frame(); 819 return m_anchorNode->hasEditableStyle() && !Position::nodeIsUserSelectNo ne(deprecatedNode()) && atEditingBoundary();
820 bool caretBrowsing = frame->settings() && frame->settings()->caretBrowsi ngEnabled();
821 return (caretBrowsing || m_anchorNode->hasEditableStyle()) && !Position: :nodeIsUserSelectNone(deprecatedNode()) && atEditingBoundary();
822 } 820 }
823 821
824 return false; 822 return false;
825 } 823 }
826 824
827 bool Position::inRenderedText() const 825 bool Position::inRenderedText() const
828 { 826 {
829 if (isNull() || !deprecatedNode()->isTextNode()) 827 if (isNull() || !deprecatedNode()->isTextNode())
830 return false; 828 return false;
831 829
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 pos.showTreeForThis(); 1245 pos.showTreeForThis();
1248 } 1246 }
1249 1247
1250 void showTree(const blink::Position* pos) 1248 void showTree(const blink::Position* pos)
1251 { 1249 {
1252 if (pos) 1250 if (pos)
1253 pos->showTreeForThis(); 1251 pos->showTreeForThis();
1254 } 1252 }
1255 1253
1256 #endif 1254 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/css/FontSize.cpp ('k') | sky/engine/core/editing/Caret.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698