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

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

Issue 11850002: Merge 138657 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 7 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 | « no previous file | Source/WebCore/editing/InsertParagraphSeparatorCommand.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) 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 28 matching lines...) Expand all
39 return adoptRef(new InsertParagraphSeparatorCommand(document, useDefault ParagraphElement, pasteBlockqutoeIntoUnquotedArea)); 39 return adoptRef(new InsertParagraphSeparatorCommand(document, useDefault ParagraphElement, pasteBlockqutoeIntoUnquotedArea));
40 } 40 }
41 41
42 private: 42 private:
43 InsertParagraphSeparatorCommand(Document*, bool useDefaultParagraphElement, bool pasteBlockqutoeIntoUnquotedArea); 43 InsertParagraphSeparatorCommand(Document*, bool useDefaultParagraphElement, bool pasteBlockqutoeIntoUnquotedArea);
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<Element*>& ancestors); 49 void getAncestorsInsideBlock(const Node* insertionNode, Element* outerBlock, Vector<RefPtr<Element> >& ancestors);
50 PassRefPtr<Element> cloneHierarchyUnderNewBlock(const Vector<Element*>& ance stors, 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; 59 bool m_pasteBlockqutoeIntoUnquotedArea;
60 }; 60 };
61 61
62 } 62 }
63 63
64 #endif 64 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698