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

Side by Side Diff: sky/engine/core/editing/htmlediting.cpp

Issue 867903002: Remove UseCounter (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/editing/ReplaceSelectionCommand.cpp ('k') | sky/engine/core/events/Event.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) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007 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 26 matching lines...) Expand all
37 #include "sky/engine/core/dom/Text.h" 37 #include "sky/engine/core/dom/Text.h"
38 #include "sky/engine/core/dom/shadow/ShadowRoot.h" 38 #include "sky/engine/core/dom/shadow/ShadowRoot.h"
39 #include "sky/engine/core/editing/Editor.h" 39 #include "sky/engine/core/editing/Editor.h"
40 #include "sky/engine/core/editing/HTMLInterchange.h" 40 #include "sky/engine/core/editing/HTMLInterchange.h"
41 #include "sky/engine/core/editing/PlainTextRange.h" 41 #include "sky/engine/core/editing/PlainTextRange.h"
42 #include "sky/engine/core/editing/TextIterator.h" 42 #include "sky/engine/core/editing/TextIterator.h"
43 #include "sky/engine/core/editing/VisiblePosition.h" 43 #include "sky/engine/core/editing/VisiblePosition.h"
44 #include "sky/engine/core/editing/VisibleSelection.h" 44 #include "sky/engine/core/editing/VisibleSelection.h"
45 #include "sky/engine/core/editing/VisibleUnits.h" 45 #include "sky/engine/core/editing/VisibleUnits.h"
46 #include "sky/engine/core/frame/LocalFrame.h" 46 #include "sky/engine/core/frame/LocalFrame.h"
47 #include "sky/engine/core/frame/UseCounter.h"
48 #include "sky/engine/core/rendering/RenderObject.h" 47 #include "sky/engine/core/rendering/RenderObject.h"
49 #include "sky/engine/wtf/Assertions.h" 48 #include "sky/engine/wtf/Assertions.h"
50 #include "sky/engine/wtf/StdLibExtras.h" 49 #include "sky/engine/wtf/StdLibExtras.h"
51 #include "sky/engine/wtf/text/StringBuilder.h" 50 #include "sky/engine/wtf/text/StringBuilder.h"
52 51
53 namespace blink { 52 namespace blink {
54 53
55 // Atomic means that the node has no children, or has children which are ignored for the 54 // Atomic means that the node has no children, or has children which are ignored for the
56 // purposes of editing. 55 // purposes of editing.
57 bool isAtomicNode(const Node *node) 56 bool isAtomicNode(const Node *node)
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 // if the selection starts just before a paragraph break, skip over it 925 // if the selection starts just before a paragraph break, skip over it
927 if (isEndOfParagraph(visiblePosition)) 926 if (isEndOfParagraph(visiblePosition))
928 return visiblePosition.next().deepEquivalent().downstream(); 927 return visiblePosition.next().deepEquivalent().downstream();
929 928
930 // otherwise, make sure to be at the start of the first selected node, 929 // otherwise, make sure to be at the start of the first selected node,
931 // instead of possibly at the end of the last node before the selection 930 // instead of possibly at the end of the last node before the selection
932 return visiblePosition.deepEquivalent().downstream(); 931 return visiblePosition.deepEquivalent().downstream();
933 } 932 }
934 933
935 } // namespace blink 934 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/editing/ReplaceSelectionCommand.cpp ('k') | sky/engine/core/events/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698