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

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 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
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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 // FIXME: Hyatt is concerned that selectively using display:inline will 683 // FIXME: Hyatt is concerned that selectively using display:inline will
684 // give inconsistent results. We already know one issue because td 684 // give inconsistent results. We already know one issue because td
685 // elements ignore their display property in quirks mode (which Mail.app 685 // elements ignore their display property in quirks mode (which Mail.app
686 // is always in). We should look for an alternative. 686 // is always in). We should look for an alternative.
687 687
688 // Mutate using the CSSOM wrapper so we get the same event behavior as a 688 // Mutate using the CSSOM wrapper so we get the same event behavior as a
689 // script. 689 // script.
690 if (isEnclosingBlock(element)) { 690 if (isEnclosingBlock(element)) {
691 element->style()->setPropertyInternal(CSSPropertyDisplay, String(), 691 element->style()->setPropertyInternal(CSSPropertyDisplay, String(),
692 "inline", false, nullptr, 692 "inline", false, nullptr,
693 IGNORE_EXCEPTION); 693 IGNORE_EXCEPTION_FOR_TESTING);
694 } 694 }
695 if (element->layoutObject() && 695 if (element->layoutObject() &&
696 element->layoutObject()->style()->isFloating()) { 696 element->layoutObject()->style()->isFloating()) {
697 element->style()->setPropertyInternal(CSSPropertyFloat, String(), 697 element->style()->setPropertyInternal(CSSPropertyFloat, String(),
698 "none", false, nullptr, 698 "none", false, nullptr,
699 IGNORE_EXCEPTION); 699 IGNORE_EXCEPTION_FOR_TESTING);
700 } 700 }
701 } 701 }
702 } 702 }
703 } 703 }
704 704
705 static bool isProhibitedParagraphChild(const AtomicString& name) { 705 static bool isProhibitedParagraphChild(const AtomicString& name) {
706 // https://dvcs.w3.org/hg/editing/raw-file/57abe6d3cb60/editing.html#prohibite d-paragraph-child 706 // https://dvcs.w3.org/hg/editing/raw-file/57abe6d3cb60/editing.html#prohibite d-paragraph-child
707 DEFINE_STATIC_LOCAL(HashSet<AtomicString>, elements, 707 DEFINE_STATIC_LOCAL(HashSet<AtomicString>, elements,
708 ({ 708 ({
709 addressTag.localName(), articleTag.localName(), 709 addressTag.localName(), articleTag.localName(),
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 visitor->trace(m_startOfInsertedContent); 2134 visitor->trace(m_startOfInsertedContent);
2135 visitor->trace(m_endOfInsertedContent); 2135 visitor->trace(m_endOfInsertedContent);
2136 visitor->trace(m_insertionStyle); 2136 visitor->trace(m_insertionStyle);
2137 visitor->trace(m_documentFragment); 2137 visitor->trace(m_documentFragment);
2138 visitor->trace(m_startOfInsertedRange); 2138 visitor->trace(m_startOfInsertedRange);
2139 visitor->trace(m_endOfInsertedRange); 2139 visitor->trace(m_endOfInsertedRange);
2140 CompositeEditCommand::trace(visitor); 2140 CompositeEditCommand::trace(visitor);
2141 } 2141 }
2142 2142
2143 } // namespace blink 2143 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698