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

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

Issue 671173006: Remove lots of machinery related to inline event handlers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/dom/Element.h ('k') | sky/engine/core/events/EventListener.h » ('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 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ASSERT(editableRoot); 130 ASSERT(editableRoot);
131 if (!editableRoot) 131 if (!editableRoot)
132 return; 132 return;
133 133
134 Element* shadowAncestorElement; 134 Element* shadowAncestorElement;
135 if (editableRoot->isInShadowTree()) 135 if (editableRoot->isInShadowTree())
136 shadowAncestorElement = editableRoot->shadowHost(); 136 shadowAncestorElement = editableRoot->shadowHost();
137 else 137 else
138 shadowAncestorElement = editableRoot.get(); 138 shadowAncestorElement = editableRoot.get();
139 139
140 if (!editableRoot->getAttributeEventListener(EventTypeNames::webkitBeforeTex tInserted) 140 if (editableRoot->rendererIsRichlyEditable()) {
141 && editableRoot->rendererIsRichlyEditable()) {
142 removeInterchangeNodes(m_fragment.get()); 141 removeInterchangeNodes(m_fragment.get());
143 return; 142 return;
144 } 143 }
145 144
146 RefPtrWillBeRawPtr<HTMLElement> holder = insertFragmentForTestRendering(edit ableRoot.get()); 145 RefPtrWillBeRawPtr<HTMLElement> holder = insertFragmentForTestRendering(edit ableRoot.get());
147 if (!holder) { 146 if (!holder) {
148 removeInterchangeNodes(m_fragment.get()); 147 removeInterchangeNodes(m_fragment.get());
149 return; 148 return;
150 } 149 }
151 150
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 void ReplaceSelectionCommand::trace(Visitor* visitor) 1015 void ReplaceSelectionCommand::trace(Visitor* visitor)
1017 { 1016 {
1018 visitor->trace(m_startOfInsertedContent); 1017 visitor->trace(m_startOfInsertedContent);
1019 visitor->trace(m_endOfInsertedContent); 1018 visitor->trace(m_endOfInsertedContent);
1020 visitor->trace(m_insertionStyle); 1019 visitor->trace(m_insertionStyle);
1021 visitor->trace(m_documentFragment); 1020 visitor->trace(m_documentFragment);
1022 CompositeEditCommand::trace(visitor); 1021 CompositeEditCommand::trace(visitor);
1023 } 1022 }
1024 1023
1025 } // namespace blink 1024 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/events/EventListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698