| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |