Bug 126276 - Remove Node::attached()
Summary: Remove Node::attached()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-29 07:52 PST by Antti Koivisto
Modified: 2013-12-29 14:37 PST (History)
5 users (show)

See Also:


Attachments
patch (68.77 KB, patch)
2013-12-29 10:06 PST, Antti Koivisto
sam: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion (580.64 KB, application/zip)
2013-12-29 12:13 PST, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion (588.34 KB, application/zip)
2013-12-29 13:53 PST, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2013-12-29 07:52:14 PST
Replace it with renderer() or inRenderedDocument() checks.
Comment 1 Antti Koivisto 2013-12-29 10:06:49 PST
Created attachment 220085 [details]
patch
Comment 2 WebKit Commit Bot 2013-12-29 10:08:23 PST
Attachment 220085 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/platform/mac/fast/table/dynamic-caption-add-before-child-expected.png', u'LayoutTests/platform/mac/fast/table/dynamic-caption-add-before-child-expected.txt', u'Source/WebCore/ChangeLog', u'Source/WebCore/accessibility/AccessibilityMenuListPopup.cpp', u'Source/WebCore/dom/ContainerNode.cpp', u'Source/WebCore/dom/Document.cpp', u'Source/WebCore/dom/DocumentStyleSheetCollection.cpp', u'Source/WebCore/dom/Element.cpp', u'Source/WebCore/dom/Node.cpp', u'Source/WebCore/dom/Node.h', u'Source/WebCore/dom/ShadowRoot.cpp', u'Source/WebCore/editing/AppendNodeCommand.cpp', u'Source/WebCore/editing/InsertNodeBeforeCommand.cpp', u'Source/WebCore/editing/RemoveNodeCommand.cpp', u'Source/WebCore/html/HTMLDetailsElement.cpp', u'Source/WebCore/html/HTMLPlugInImageElement.cpp', u'Source/WebCore/html/HTMLSelectElement.cpp', u'Source/WebCore/html/parser/HTMLTreeBuilder.cpp', u'Source/WebCore/html/shadow/MediaControlElementTypes.cpp', u'Source/WebCore/html/shadow/MediaControlElements.cpp', u'Source/WebCore/html/shadow/SliderThumbElement.cpp', u'Source/WebCore/loader/FrameLoader.cpp', u'Source/WebCore/loader/HistoryController.cpp', u'Source/WebCore/loader/ImageLoader.cpp', u'Source/WebCore/loader/PlaceholderDocument.cpp', u'Source/WebCore/page/Frame.cpp', u'Source/WebCore/rendering/RenderCounter.cpp', u'Source/WebCore/rendering/RenderMenuList.cpp', u'Source/WebCore/style/StyleResolveTree.cpp', u'Source/WebCore/testing/Internals.cpp', u'Source/WebCore/xml/XMLErrors.cpp', u'Source/WebCore/xml/parser/XMLDocumentParser.cpp', u'Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp', '--commit-queue']" exit_code: 1
Traceback (most recent call last):
  File "Tools/Scripts/check-webkit-style", line 48, in <module>
    sys.exit(CheckWebKitStyle().main())
  File "/Volumes/Data/StyleQueue/WebKit/Tools/Scripts/webkitpy/style/main.py", line 154, in main
    patch_checker.check(patch)
  File "/Volumes/Data/StyleQueue/WebKit/Tools/Scripts/webkitpy/style/patchreader.py", line 71, in check
    self._text_file_reader.process_file(file_path=path, line_numbers=None)
  File "/Volumes/Data/StyleQueue/WebKit/Tools/Scripts/webkitpy/style/filereader.py", line 118, in process_file
    lines = self._read_lines(file_path)
  File "/Volumes/Data/StyleQueue/WebKit/Tools/Scripts/webkitpy/style/filereader.py", line 86, in _read_lines
    contents = file.read()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 671, in read
    return self.reader.read(size)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 477, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0: invalid start byte


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Sam Weinig 2013-12-29 10:47:16 PST
Are attachChild/detachChild next?
Comment 4 Antti Koivisto 2013-12-29 10:49:44 PST
Yeah, and getting rid of the remaining synchronous attach/detach calls in general.
Comment 5 Build Bot 2013-12-29 12:13:19 PST
Comment on attachment 220085 [details]
patch

Attachment 220085 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5149322995826688

New failing tests:
svg/custom/use-modify-target-symbol.svg
svg/custom/resource-invalidation-crash.svg
svg/custom/object-no-size-attributes.xhtml
svg/custom/use-modify-container-in-target.svg
svg/custom/use-modify-target-container.svg
Comment 6 Build Bot 2013-12-29 12:13:21 PST
Created attachment 220087 [details]
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-04  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 7 Build Bot 2013-12-29 13:53:25 PST
Comment on attachment 220085 [details]
patch

Attachment 220085 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5750343539359744

New failing tests:
svg/custom/use-modify-target-symbol.svg
svg/custom/resource-invalidation-crash.svg
svg/custom/object-no-size-attributes.xhtml
svg/custom/use-modify-container-in-target.svg
svg/custom/use-modify-target-container.svg
Comment 8 Build Bot 2013-12-29 13:53:26 PST
Created attachment 220091 [details]
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-01  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 9 Antti Koivisto 2013-12-29 14:37:36 PST
https://trac.webkit.org/r161127 

(without making XML parser create renderer tree lazily. that caused problems for SVG <use>)