File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 2017-02-09 Brent Fulgham <bfulgham@apple.com>
2+
3+ Unreviewed build fix after r212025.
4+
5+ inDocument -> isConnected
6+
7+ * html/FormAssociatedElement.cpp:
8+ (WebCore::FormAssociatedElement::didMoveToNewDocument):
9+ (WebCore::FormAssociatedElement::resetFormAttributeTargetObserver):
10+ * html/HTMLFormElement.cpp:
11+ (WebCore::HTMLFormElement::formElementIndex):
12+
1132017-02-09 Chris Dumez <cdumez@apple.com>
214
315 Make sure Event keeps its current target element alive
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ FormAssociatedElement::~FormAssociatedElement()
6363void FormAssociatedElement::didMoveToNewDocument (Document&)
6464{
6565 HTMLElement& element = asHTMLElement ();
66- if (element.hasAttributeWithoutSynchronization (formAttr) && element.inDocument ())
66+ if (element.hasAttributeWithoutSynchronization (formAttr) && element.isConnected ())
6767 resetFormAttributeTargetObserver ();
6868}
6969
@@ -266,7 +266,7 @@ void FormAssociatedElement::setCustomValidity(const String& error)
266266
267267void FormAssociatedElement::resetFormAttributeTargetObserver ()
268268{
269- ASSERT_WITH_SECURITY_IMPLICATION (asHTMLElement ().inDocument ());
269+ ASSERT_WITH_SECURITY_IMPLICATION (asHTMLElement ().isConnected ());
270270 m_formAttributeTargetObserver = std::make_unique<FormAttributeTargetObserver>(asHTMLElement ().attributeWithoutSynchronization (formAttr), *this );
271271}
272272
Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ unsigned HTMLFormElement::formElementIndex(FormAssociatedElement* associatedElem
547547
548548 // Treats separately the case where this element has the form attribute
549549 // for performance consideration.
550- if (associatedHTMLElement.hasAttributeWithoutSynchronization (formAttr) && associatedHTMLElement.inDocument ()) {
550+ if (associatedHTMLElement.hasAttributeWithoutSynchronization (formAttr) && associatedHTMLElement.isConnected ()) {
551551 unsigned short position = compareDocumentPosition (associatedHTMLElement);
552552 ASSERT_WITH_SECURITY_IMPLICATION (!(position & DOCUMENT_POSITION_DISCONNECTED ));
553553 if (position & DOCUMENT_POSITION_PRECEDING ) {
You can’t perform that action at this time.
0 commit comments