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

Unified Diff: Source/core/html/TextFieldInputType.cpp

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/SearchInputType.cpp ('k') | Source/core/html/TimeRanges.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/TextFieldInputType.cpp
diff --git a/Source/core/html/TextFieldInputType.cpp b/Source/core/html/TextFieldInputType.cpp
index 771d638a132c98561817b305233c2618d4b0efc1..6c51162e357af26914bd3ba96cb3ca8eb2897964 100644
--- a/Source/core/html/TextFieldInputType.cpp
+++ b/Source/core/html/TextFieldInputType.cpp
@@ -246,30 +246,30 @@ void TextFieldInputType::createShadowSubtree()
m_innerText = TextControlInnerTextElement::create(document);
if (!createsContainer) {
- element()->userAgentShadowRoot()->appendChild(m_innerText, IGNORE_EXCEPTION_STATE);
+ element()->userAgentShadowRoot()->appendChild(m_innerText, IGNORE_EXCEPTION);
return;
}
ShadowRoot* shadowRoot = element()->userAgentShadowRoot();
m_container = TextControlInnerContainer::create(document);
m_container->setPseudo(AtomicString("-webkit-textfield-decoration-container", AtomicString::ConstructFromLiteral));
- shadowRoot->appendChild(m_container, IGNORE_EXCEPTION_STATE);
+ shadowRoot->appendChild(m_container, IGNORE_EXCEPTION);
m_innerBlock = TextControlInnerElement::create(document);
- m_innerBlock->appendChild(m_innerText, IGNORE_EXCEPTION_STATE);
- m_container->appendChild(m_innerBlock, IGNORE_EXCEPTION_STATE);
+ m_innerBlock->appendChild(m_innerText, IGNORE_EXCEPTION);
+ m_container->appendChild(m_innerBlock, IGNORE_EXCEPTION);
#if ENABLE(INPUT_SPEECH)
ASSERT(!m_speechButton);
if (element()->isSpeechEnabled()) {
m_speechButton = InputFieldSpeechButtonElement::create(document);
- m_container->appendChild(m_speechButton, IGNORE_EXCEPTION_STATE);
+ m_container->appendChild(m_speechButton, IGNORE_EXCEPTION);
}
#endif
if (shouldHaveSpinButton) {
m_innerSpinButton = SpinButtonElement::create(document, *this);
- m_container->appendChild(m_innerSpinButton, IGNORE_EXCEPTION_STATE);
+ m_container->appendChild(m_innerSpinButton, IGNORE_EXCEPTION);
}
}
@@ -420,7 +420,7 @@ void TextFieldInputType::updatePlaceholderText()
String placeholderText = element()->strippedPlaceholder();
if (placeholderText.isEmpty()) {
if (m_placeholder) {
- m_placeholder->parentNode()->removeChild(m_placeholder.get(), ASSERT_NO_EXCEPTION_STATE);
+ m_placeholder->parentNode()->removeChild(m_placeholder.get(), ASSERT_NO_EXCEPTION);
m_placeholder.clear();
}
return;
@@ -428,9 +428,9 @@ void TextFieldInputType::updatePlaceholderText()
if (!m_placeholder) {
m_placeholder = HTMLDivElement::create(element()->document());
m_placeholder->setPseudo(AtomicString("-webkit-input-placeholder", AtomicString::ConstructFromLiteral));
- element()->userAgentShadowRoot()->insertBefore(m_placeholder, m_container ? m_container->nextSibling() : innerTextElement()->nextSibling(), ASSERT_NO_EXCEPTION_STATE);
+ element()->userAgentShadowRoot()->insertBefore(m_placeholder, m_container ? m_container->nextSibling() : innerTextElement()->nextSibling(), ASSERT_NO_EXCEPTION);
}
- m_placeholder->setInnerText(placeholderText, ASSERT_NO_EXCEPTION_STATE);
+ m_placeholder->setInnerText(placeholderText, ASSERT_NO_EXCEPTION);
element()->fixPlaceholderRenderer(m_placeholder.get(), m_container ? m_container.get() : m_innerText.get());
}
« no previous file with comments | « Source/core/html/SearchInputType.cpp ('k') | Source/core/html/TimeRanges.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698