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

Side by Side Diff: Source/core/editing/EditingUtilities.cpp

Issue 1295073002: Move serializer related files in core/editing/ related files into core/editing/serializers/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-17T15:24:31 Rebase for Source/web/WebPageSerializerImpl.cpp Created 5 years, 4 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 | « Source/core/editing/EditingStyle.cpp ('k') | Source/core/editing/Editor.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 17 matching lines...) Expand all
28 28
29 #include "core/HTMLElementFactory.h" 29 #include "core/HTMLElementFactory.h"
30 #include "core/HTMLNames.h" 30 #include "core/HTMLNames.h"
31 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
32 #include "core/dom/ElementTraversal.h" 32 #include "core/dom/ElementTraversal.h"
33 #include "core/dom/Range.h" 33 #include "core/dom/Range.h"
34 #include "core/dom/Text.h" 34 #include "core/dom/Text.h"
35 #include "core/dom/shadow/ShadowRoot.h" 35 #include "core/dom/shadow/ShadowRoot.h"
36 #include "core/editing/EditingStrategy.h" 36 #include "core/editing/EditingStrategy.h"
37 #include "core/editing/Editor.h" 37 #include "core/editing/Editor.h"
38 #include "core/editing/HTMLInterchange.h"
39 #include "core/editing/PlainTextRange.h" 38 #include "core/editing/PlainTextRange.h"
40 #include "core/editing/PositionIterator.h" 39 #include "core/editing/PositionIterator.h"
41 #include "core/editing/VisiblePosition.h" 40 #include "core/editing/VisiblePosition.h"
42 #include "core/editing/VisibleSelection.h" 41 #include "core/editing/VisibleSelection.h"
43 #include "core/editing/VisibleUnits.h" 42 #include "core/editing/VisibleUnits.h"
44 #include "core/editing/iterators/TextIterator.h" 43 #include "core/editing/iterators/TextIterator.h"
44 #include "core/editing/serializers/HTMLInterchange.h"
45 #include "core/frame/LocalFrame.h" 45 #include "core/frame/LocalFrame.h"
46 #include "core/frame/UseCounter.h" 46 #include "core/frame/UseCounter.h"
47 #include "core/html/HTMLBRElement.h" 47 #include "core/html/HTMLBRElement.h"
48 #include "core/html/HTMLDivElement.h" 48 #include "core/html/HTMLDivElement.h"
49 #include "core/html/HTMLLIElement.h" 49 #include "core/html/HTMLLIElement.h"
50 #include "core/html/HTMLParagraphElement.h" 50 #include "core/html/HTMLParagraphElement.h"
51 #include "core/html/HTMLSpanElement.h" 51 #include "core/html/HTMLSpanElement.h"
52 #include "core/html/HTMLTableCellElement.h" 52 #include "core/html/HTMLTableCellElement.h"
53 #include "core/html/HTMLUListElement.h" 53 #include "core/html/HTMLUListElement.h"
54 #include "core/layout/LayoutObject.h" 54 #include "core/layout/LayoutObject.h"
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 // if the selection starts just before a paragraph break, skip over it 1434 // if the selection starts just before a paragraph break, skip over it
1435 if (isEndOfParagraph(visiblePosition)) 1435 if (isEndOfParagraph(visiblePosition))
1436 return visiblePosition.next().deepEquivalent().downstream(); 1436 return visiblePosition.next().deepEquivalent().downstream();
1437 1437
1438 // otherwise, make sure to be at the start of the first selected node, 1438 // otherwise, make sure to be at the start of the first selected node,
1439 // instead of possibly at the end of the last node before the selection 1439 // instead of possibly at the end of the last node before the selection
1440 return visiblePosition.deepEquivalent().downstream(); 1440 return visiblePosition.deepEquivalent().downstream();
1441 } 1441 }
1442 1442
1443 } // namespace blink 1443 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/editing/EditingStyle.cpp ('k') | Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698