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

Side by Side Diff: Source/WebCore/editing/InsertParagraphSeparatorCommand.h

Issue 13954003: Remove mail blockquote special case handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 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 16 matching lines...) Expand all
27 #define InsertParagraphSeparatorCommand_h 27 #define InsertParagraphSeparatorCommand_h
28 28
29 #include "CompositeEditCommand.h" 29 #include "CompositeEditCommand.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class EditingStyle; 33 class EditingStyle;
34 34
35 class InsertParagraphSeparatorCommand : public CompositeEditCommand { 35 class InsertParagraphSeparatorCommand : public CompositeEditCommand {
36 public: 36 public:
37 static PassRefPtr<InsertParagraphSeparatorCommand> create(Document* document , bool useDefaultParagraphElement = false, bool pasteBlockqutoeIntoUnquotedArea = false) 37 static PassRefPtr<InsertParagraphSeparatorCommand> create(Document* document , bool useDefaultParagraphElement = false)
38 { 38 {
39 return adoptRef(new InsertParagraphSeparatorCommand(document, useDefault ParagraphElement, pasteBlockqutoeIntoUnquotedArea)); 39 return adoptRef(new InsertParagraphSeparatorCommand(document, useDefault ParagraphElement));
40 } 40 }
41 41
42 private: 42 private:
43 InsertParagraphSeparatorCommand(Document*, bool useDefaultParagraphElement, bool pasteBlockqutoeIntoUnquotedArea); 43 InsertParagraphSeparatorCommand(Document*, bool useDefaultParagraphElement);
44 44
45 virtual void doApply(); 45 virtual void doApply();
46 46
47 void calculateStyleBeforeInsertion(const Position&); 47 void calculateStyleBeforeInsertion(const Position&);
48 void applyStyleAfterInsertion(Node* originalEnclosingBlock); 48 void applyStyleAfterInsertion(Node* originalEnclosingBlock);
49 void getAncestorsInsideBlock(const Node* insertionNode, Element* outerBlock, Vector<RefPtr<Element> >& ancestors); 49 void getAncestorsInsideBlock(const Node* insertionNode, Element* outerBlock, Vector<RefPtr<Element> >& ancestors);
50 PassRefPtr<Element> cloneHierarchyUnderNewBlock(const Vector<RefPtr<Element> >& ancestors, PassRefPtr<Element> blockToInsert); 50 PassRefPtr<Element> cloneHierarchyUnderNewBlock(const Vector<RefPtr<Element> >& ancestors, PassRefPtr<Element> blockToInsert);
51 51
52 bool shouldUseDefaultParagraphElement(Node*) const; 52 bool shouldUseDefaultParagraphElement(Node*) const;
53 53
54 virtual bool preservesTypingStyle() const; 54 virtual bool preservesTypingStyle() const;
55 55
56 RefPtr<EditingStyle> m_style; 56 RefPtr<EditingStyle> m_style;
57 57
58 bool m_mustUseDefaultParagraphElement; 58 bool m_mustUseDefaultParagraphElement;
59 bool m_pasteBlockqutoeIntoUnquotedArea;
60 }; 59 };
61 60
62 } 61 }
63 62
64 #endif 63 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698