Unreviewed, TestExpectations update for a newly added test
https://bugs.webkit.org/show_bug.cgi?id=93586

Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2012-08-09

* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Microdata: PropertyNodeList cache should be invalidated on id attribute change.
https://bugs.webkit.org/show_bug.cgi?id=93485

Reviewed by Ryosuke Niwa.

Source/WebCore: 

Invalidate PropertyNodeList cache when id attribute of an element changed/modified.

Test: fast/dom/MicroData/propertiescollection-on-changing-id-attr.html

* dom/DynamicNodeList.cpp: Moved ownerNodeHasItemRefAttribute() method to DynamicNodeList.h
(WebCore):
* dom/DynamicNodeList.h:
(WebCore):
(WebCore::DynamicNodeListCacheBase::isRootedAtDocument): Return true if owner has itemref
attribute specified with root type NodeListIsRootedAtDocumentIfOwnerHasItemrefAttr.
(WebCore::DynamicNodeListCacheBase::shouldInvalidateTypeOnAttributeChange): Return true if
attrName is id attribute in case of InvalidateOnItemAttrChange.
(WebCore::DynamicNodeListCacheBase::ownerNodeHasItemRefAttribute):

LayoutTests: 

Added test to verify HTMLPropertiesCollection and PropertyNodeList interfaces
behavior on changing id attribute.

* fast/dom/MicroData/propertiescollection-on-changing-id-attr-expected.txt: Added.
* fast/dom/MicroData/propertiescollection-on-changing-id-attr.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use m_everHadLayout in RenderObject::checkForRepaintDuringLayout()
https://bugs.webkit.org/show_bug.cgi?id=20885

Reviewed by Dan Bernstein.

Source/WebCore:

Fix FIXME in checkForRepaintDuringLayout, making RenderObjects
no longer paint on first layout, but instead require their
parent containers to paint them.
This appears to have fixed one minor SVG overpainting issue
in svg/use-detach-expected.png.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlock):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::checkForRepaintDuringLayout):
* rendering/svg/SVGRenderSupport.cpp:
(WebCore::SVGRenderSupport::layoutChildren):

LayoutTests:

Updated result.  Appears to be a progression.  I suspect
we were over-drawing the <g> container before and now we're
just drawing the two objects which change.

* platform/chromium-mac/svg/custom/use-detach-expected.png:
* platform/chromium-linux/svg/custom/use-detach-expected.png:
* platform/mac/svg/custom/use-detach-expected.png:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125160 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, update TestExpectations for chromium gardening.
https://bugs.webkit.org/show_bug.cgi?id=93589

Mark svg/dom/SVGScriptElement/script-change-externalResourcesRequired-while-loading.svg as slow for Mac10.6 (dbg).

Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2012-08-09

* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DOMCharacterDataModified should not be fired inside shadows
https://bugs.webkit.org/show_bug.cgi?id=93427

Reviewed by Ryosuke Niwa.

Source/WebCore:

CharacterData::dispatchModifiedEvent() fires DOMCharacterDataModified event even if
the node is in shadow. But it shouldn't. Check dispatchChildInsertionEvents() and
dispatchChildRemovalEvents() to see how other MutationEvents are suppressed behind shadows.
This change follows the same path to suppress DOMCharacterDataModified.

Tests: fast/dom/shadow/suppress-mutation-events-in-shadow-characterdata.html
       fast/forms/textarea-and-mutation-events-appending-text.html

* dom/CharacterData.cpp:
(WebCore::CharacterData::dispatchModifiedEvent):

LayoutTests:

Added two tests. This also fixes existing test, which cover the wrong behavior.

* fast/dom/shadow/suppress-mutation-events-in-shadow-characterdata-expected.txt: Added.
* fast/dom/shadow/suppress-mutation-events-in-shadow-characterdata.html: Added.
* fast/events/dom-character-data-modified-textarea-crash.html:
- DOMCharacterDataModified shouldn't be fired in this case.
  Fixed to allow test to terminate without the event.
  Note that The event was fired by <textarea>, which is fixed by this change.
* fast/forms/textarea-and-mutation-events-appending-text-expected.txt: Added.
* fast/forms/textarea-and-mutation-events-appending-text.html: Added.
* svg/custom/tref-nested-events-crash.svg:
- DOMCharacterDataModified shouldn't be fired in this case.
  Fixed to allow test to terminate without the event.
  Note that The event was fired by SVGShadowText, which is just an implentation detail and
  should not be exposed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125162 268f45cc-cd09-0410-ab3c-d52691b4dbfc