[Qt] Unreviewed gardening. Updating PNG expected results. Making pixel test bot happier after r146206.

* platform/qt/svg/custom/mask-excessive-malloc-expected.png:
* platform/qt/svg/custom/mask-inside-defs-expected.png:
* platform/qt/svg/custom/massive-coordinates-expected.png:
* platform/qt/svg/custom/missing-xlink-expected.png:
* platform/qt/svg/custom/non-circular-marker-reference-expected.png:
* platform/qt/svg/custom/object-sizing-expected.png:
* platform/qt/svg/custom/path-bad-data-expected.png:
* platform/qt/svg/custom/path-update-expected.png:
* platform/qt/svg/custom/pattern-no-pixelation-expected.png:
* platform/qt/svg/custom/pattern-scaled-pattern-space-expected.png: Added.
* platform/qt/svg/custom/pattern-size-bigger-than-target-size-expected.png:
* platform/qt/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.png:
* platform/qt/svg/custom/pattern-y-offset-expected.png:
* platform/qt/svg/custom/percentage-of-html-parent-expected.png:
* platform/qt/svg/custom/pointer-events-image-css-transform-expected.png:
* platform/qt/svg/custom/pointer-events-image-expected.png:
* platform/qt/svg/custom/pointer-events-path-expected.png:
* platform/qt/svg/custom/pointer-events-text-css-transform-expected.png:
* platform/qt/svg/custom/pointer-events-text-expected.png:
* platform/qt/svg/custom/poly-identify-expected.png:
* platform/qt/svg/custom/polyline-hittest-expected.png:
* platform/qt/svg/custom/polyline-invalid-points-expected.png:
* platform/qt/svg/custom/relative-sized-content-with-resources-expected.png:
* platform/qt/svg/custom/rootelement-expected.png:
* platform/qt/svg/custom/rootmost-svg-xy-attrs-expected.png:
* platform/qt/svg/custom/second-inline-text-expected.png:
* platform/qt/svg/custom/shape-rendering-expected.png:
* platform/qt/svg/custom/sheet-title-expected.png:
* platform/qt/svg/custom/stroke-fallback-expected.png:
* platform/qt/svg/custom/svg-float-border-padding-expected.png:
* platform/qt/svg/custom/svg-fonts-in-html-expected.png:
* platform/qt/svg/custom/svg-fonts-segmented-expected.png:
* platform/qt/svg/custom/svg-fonts-without-missing-glyph-expected.png:
* platform/qt/svg/custom/svgpolyparser-extra-space-expected.png:
* platform/qt/svg/custom/text-dom-01-f-expected.png:
* platform/qt/svg/custom/text-filter-expected.png:
* platform/qt/svg/custom/text-hit-test-expected.png:
* platform/qt/svg/custom/text-letter-spacing-expected.png:
* platform/qt/svg/custom/text-linking-expected.png:
* platform/qt/svg/custom/text-whitespace-handling-expected.png:
* platform/qt/svg/custom/text-x-dx-lists-expected.png:
* platform/qt/svg/custom/text-x-dy-lists-expected.png:
* platform/qt/svg/custom/text-x-override-in-tspan-child-expected.png:
* platform/qt/svg/custom/transform-removeAttributeNS-expected.png:
* platform/qt/svg/custom/transform-scale-parse-expected.png:
* platform/qt/svg/custom/use-clipped-transform-expected.png:
* platform/qt/svg/custom/use-dynamic-append-expected.png:
* platform/qt/svg/custom/use-font-face-crash-expected.png:
* platform/qt/svg/custom/use-nested-transform-expected.png:
* platform/qt/svg/custom/use-on-clip-path-with-transformation-expected.png:
* platform/qt/svg/custom/use-on-g-containing-foreignObject-and-image-expected.png:
* platform/qt/svg/custom/use-on-g-containing-symbol-expected.png:
* platform/qt/svg/custom/use-on-g-containing-use-expected.png:
* platform/qt/svg/custom/use-on-g-expected.png:
* platform/qt/svg/custom/use-on-rect-expected.png:
* platform/qt/svg/custom/use-on-symbol-expected.png:
* platform/qt/svg/custom/use-on-text-expected.png:
* platform/qt/svg/custom/use-on-use-expected.png:
* platform/qt/svg/custom/use-transform-expected.png:
* platform/qt/svg/custom/viewport-no-width-height-expected.png:
* platform/qt/svg/custom/viewport-update-expected.png:
* platform/qt/svg/custom/visibility-override-clip-expected.png:
* platform/qt/svg/custom/visibility-override-expected.png:
* platform/qt/svg/custom/visibility-override-mask-expected.png:
* platform/qt/svg/custom/width-full-percentage-expected.png:
* platform/qt/svg/custom/xml-stylesheet-expected.png:
* platform/qt/svg/dom/SVGLengthList-insertItemBefore-expected.png:
* platform/qt/svg/dom/SVGPathSegList-cloning-expected.png:
* platform/qt/svg/filters/animate-fill-expected.png: Copied from LayoutTests/platform/qt/tables/mozilla/bugs/bug219693-1-expected.png.
* platform/qt/svg/filters/big-sized-filter-expected.png:
* platform/qt/svg/filters/feColorMatrix-offset-expected.png:
* platform/qt/svg/filters/feColorMatrix-saturate-expected.png:
* platform/qt/svg/filters/feDropShadow-subregion-expected.png: Copied from LayoutTests/platform/qt/tables/mozilla/bugs/bug219693-1-expected.png.
* platform/qt/svg/filters/feGaussianBlur-subregion-expected.png: Copied from LayoutTests/platform/qt/tables/mozilla/bugs/bug219693-1-expected.png.
* platform/qt/svg/filters/filter-empty-g-expected.png:
* platform/qt/svg/filters/filter-on-filter-for-text-expected.png:
* platform/qt/svg/filters/filter-on-tspan-expected.png:
* platform/qt/svg/filters/filter-placement-issue-expected.png:
* platform/qt/svg/filters/filter-source-position-expected.png:
* platform/qt/svg/filters/filterRes2-expected.png:
* platform/qt/svg/foreignObject/clip-expected.png: Copied from LayoutTests/platform/qt/svg/custom/transform-scale-parse-expected.png.
* platform/qt/svg/foreignObject/disallowed-svg-nodes-as-direct-children-expected.png:
* platform/qt/svg/foreignObject/filter-expected.png: Copied from LayoutTests/platform/qt/svg/custom/transform-scale-parse-expected.png.
* platform/qt/svg/foreignObject/mask-expected.png: Copied from LayoutTests/platform/qt/svg/custom/transform-scale-parse-expected.png.
* platform/qt/svg/foreignObject/svg-document-as-direct-child-expected.png:
* platform/qt/svg/foreignObject/svg-document-in-html-document-expected.png:
* platform/qt/svg/hixie/cascade/001-broken-expected.png:
* platform/qt/svg/hixie/error/012-expected.png:
* platform/qt/svg/hixie/error/013-expected.png:
* platform/qt/svg/hixie/links/001-expected.png:
* platform/qt/svg/hixie/mixed/003-expected.png:
* platform/qt/svg/hixie/shapes/path/001-expected.png:
* platform/qt/svg/hixie/text/001-expected.png:
* platform/qt/svg/hixie/text/003-expected.png:
* platform/qt/svg/hixie/transform/001-expected.png:
* platform/qt/svg/hixie/viewbox/preserveAspectRatio/001-expected.png:
* platform/qt/svg/hixie/viewbox/preserveAspectRatio/002-expected.png:
* platform/qt/svg/text/bidi-embedded-direction-expected.png:
* platform/qt/svg/text/kerning-expected.png:
* platform/qt/svg/text/scaled-font-expected.png:
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-2-expected.png:
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-3-expected.png:
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.png:
* platform/qt/svg/text/small-fonts-in-html5-expected.png:
* platform/qt/svg/text/text-align-04-b-expected.png:
* platform/qt/svg/text/text-align-05-b-expected.png:
* platform/qt/svg/text/text-deco-01-b-expected.png:
* platform/qt/svg/text/text-path-middle-align-expected.png:
* platform/qt/svg/text/text-text-04-t-expected.png:
* platform/qt/svg/text/text-text-06-t-expected.png:
* platform/qt/svg/text/text-text-07-t-expected.png:
* platform/qt/svg/text/textPathBoundsBug-expected.png:
* platform/qt/svg/wicd/rightsizing-grid-expected.png:
* platform/qt/svg/wicd/test-rightsizing-a-expected.png:
* platform/qt/svg/wicd/test-rightsizing-b-expected.png:
* platform/qt/svg/wicd/test-scalable-background-image1-expected.png:
* platform/qt/svg/wicd/test-scalable-background-image2-expected.png:
* platform/qt/svg/zoom/page/zoom-background-image-tiled-expected.png:
* platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.png:
* platform/qt/svg/zoom/page/zoom-hixie-mixed-008-expected.png:
* platform/qt/svg/zoom/page/zoom-hixie-rendering-model-004-expected.png:
* platform/qt/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png:
* platform/qt/svg/zoom/page/zoom-mask-with-percentages-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-as-background-with-relative-size-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-as-object-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-float-border-padding-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.png:
* platform/qt/svg/zoom/text/zoom-hixie-mixed-008-expected.png:
* platform/qt/svg/zoom/text/zoom-hixie-rendering-model-004-expected.png:
* platform/qt/svg/zoom/text/zoom-svg-float-border-padding-expected.png:
* platform/qt/tables/layering/paint-test-layering-1-expected.png:
* platform/qt/tables/layering/paint-test-layering-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug101201-expected.png:
* platform/qt/tables/mozilla/bugs/bug102145-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug102145-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug102145-3-expected.png:
* platform/qt/tables/mozilla/bugs/bug102145-4-expected.png:
* platform/qt/tables/mozilla/bugs/bug10269-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug10296-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug10296-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug103533-expected.png:
* platform/qt/tables/mozilla/bugs/bug1055-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug106158-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug106795-expected.png:
* platform/qt/tables/mozilla/bugs/bug106816-expected.png:
* platform/qt/tables/mozilla/bugs/bug109043-expected.png:
* platform/qt/tables/mozilla/bugs/bug11321-expected.png:
* platform/qt/tables/mozilla/bugs/bug113235-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug113235-3-expected.png:
* platform/qt/tables/mozilla/bugs/bug11384q-expected.png:
* platform/qt/tables/mozilla/bugs/bug11384s-expected.png:
* platform/qt/tables/mozilla/bugs/bug1163-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug1188-expected.png:
* platform/qt/tables/mozilla/bugs/bug11944-expected.png:
* platform/qt/tables/mozilla/bugs/bug119786-expected.png:
* platform/qt/tables/mozilla/bugs/bug1224-expected.png:
* platform/qt/tables/mozilla/bugs/bug12709-expected.png:
* platform/qt/tables/mozilla/bugs/bug127267-expected.png:
* platform/qt/tables/mozilla/bugs/bug128229-expected.png:
* platform/qt/tables/mozilla/bugs/bug131020-expected.png:
* platform/qt/tables/mozilla/bugs/bug131020_iframe-expected.png:
* platform/qt/tables/mozilla/bugs/bug13118-expected.png:
* platform/qt/tables/mozilla/bugs/bug1318-expected.png:
* platform/qt/tables/mozilla/bugs/bug13196-expected.png:
* platform/qt/tables/mozilla/bugs/bug133756-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug133948-expected.png:
* platform/qt/tables/mozilla/bugs/bug137388-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug139524-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug14159-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug14929-expected.png:
* platform/qt/tables/mozilla/bugs/bug15247-expected.png:
* platform/qt/tables/mozilla/bugs/bug154780-expected.png:
* platform/qt/tables/mozilla/bugs/bug157890-expected.png:
* platform/qt/tables/mozilla/bugs/bug15933-expected.png:
* platform/qt/tables/mozilla/bugs/bug16012-expected.png:
* platform/qt/tables/mozilla/bugs/bug16252-expected.png:
* platform/qt/tables/mozilla/bugs/bug17138-expected.png:
* platform/qt/tables/mozilla/bugs/bug17587-expected.png:
* platform/qt/tables/mozilla/bugs/bug1800-expected.png:
* platform/qt/tables/mozilla/bugs/bug1802-expected.png:
* platform/qt/tables/mozilla/bugs/bug1802s-expected.png:
* platform/qt/tables/mozilla/bugs/bug1818-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug1818-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug1818-4-expected.png:
* platform/qt/tables/mozilla/bugs/bug18359-expected.png:
* platform/qt/tables/mozilla/bugs/bug18664-expected.png:
* platform/qt/tables/mozilla/bugs/bug18955-expected.png:
* platform/qt/tables/mozilla/bugs/bug19061-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug19061-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug194024-expected.png:
* platform/qt/tables/mozilla/bugs/bug19599-expected.png:
* platform/qt/tables/mozilla/bugs/bug2050-expected.png:
* platform/qt/tables/mozilla/bugs/bug20579-expected.png:
* platform/qt/tables/mozilla/bugs/bug20804-expected.png:
* platform/qt/tables/mozilla/bugs/bug21299-expected.png:
* platform/qt/tables/mozilla/bugs/bug215629-expected.png:
* platform/qt/tables/mozilla/bugs/bug219693-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug219693-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug221784-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug221784-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug222846-expected.png:
* platform/qt/tables/mozilla/bugs/bug2267-expected.png:
* platform/qt/tables/mozilla/bugs/bug23072-expected.png:
* platform/qt/tables/mozilla/bugs/bug23299-expected.png:
* platform/qt/tables/mozilla/bugs/bug24627-expected.png:
* platform/qt/tables/mozilla/bugs/bug2469-expected.png:
* platform/qt/tables/mozilla/bugs/bug2479-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug24880-expected.png:
* platform/qt/tables/mozilla/bugs/bug25074-expected.png:
* platform/qt/tables/mozilla/bugs/bug25086-expected.png:
* platform/qt/tables/mozilla/bugs/bug2509-expected.png:
* platform/qt/tables/mozilla/bugs/bug25367-expected.png:
* platform/qt/tables/mozilla/bugs/bug25663-expected.png:
* platform/qt/tables/mozilla/bugs/bug2684-expected.png:
* platform/qt/tables/mozilla/bugs/bug27038-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug27038-3-expected.png:
* platform/qt/tables/mozilla/bugs/bug2773-expected.png:
* platform/qt/tables/mozilla/bugs/bug2886-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug28928-expected.png:
* platform/qt/tables/mozilla/bugs/bug29058-3-expected.png:
* platform/qt/tables/mozilla/bugs/bug29429-expected.png:
* platform/qt/tables/mozilla/bugs/bug2981-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug2981-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug2997-expected.png:
* platform/qt/tables/mozilla/bugs/bug3037-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug3037-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug30418-expected.png:
* platform/qt/tables/mozilla/bugs/bug30559-expected.png:
* platform/qt/tables/mozilla/bugs/bug30692-expected.png:
* platform/qt/tables/mozilla/bugs/bug3103-expected.png:
* platform/qt/tables/mozilla/bugs/bug32205-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug32205-3-expected.png:
* platform/qt/tables/mozilla/bugs/bug32447-expected.png:
* platform/qt/tables/mozilla/bugs/bug3260-expected.png:
* platform/qt/tables/mozilla/bugs/bug32841-expected.png:
* platform/qt/tables/mozilla/bugs/bug3309-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug3309-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug34538-expected.png:
* platform/qt/tables/mozilla/bugs/bug3454-expected.png:
* platform/qt/tables/mozilla/bugs/bug3681-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug3681-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug38916-expected.png:
* platform/qt/tables/mozilla/bugs/bug3977-expected.png:
* platform/qt/tables/mozilla/bugs/bug41890-expected.png:
* platform/qt/tables/mozilla/bugs/bug42187-expected.png:
* platform/qt/tables/mozilla/bugs/bug4284-expected.png:
* platform/qt/tables/mozilla/bugs/bug43039-expected.png:
* platform/qt/tables/mozilla/bugs/bug4382-expected.png:
* platform/qt/tables/mozilla/bugs/bug43854-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug43854-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug4427-expected.png:
* platform/qt/tables/mozilla/bugs/bug45055-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug4523-expected.png:
* platform/qt/tables/mozilla/bugs/bug45350-expected.png:
* platform/qt/tables/mozilla/bugs/bug45486-expected.png:
* platform/qt/tables/mozilla/bugs/bug46268-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug46268-2-expected.png:
* platform/qt/tables/mozilla/bugs/bug46268-5-expected.png:
* platform/qt/tables/mozilla/bugs/bug46268-expected.png:
* platform/qt/tables/mozilla/bugs/bug46368-1-expected.png:
* platform/qt/tables/mozilla/bugs/bug46368-2-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Poor rounding in GraphicsContext::drawLineForText
https://bugs.webkit.org/show_bug.cgi?id=113301

Reviewed by Jocelyn Turcotte.

Round the position of the line decoration, so lines on subpixel
coordinates are not always rounded up.

* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContext::drawLineForText):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use DOM ordering for list counts
https://bugs.webkit.org/show_bug.cgi?id=110352

Reviewed by Elliott Sprehn.

Source/WebCore:

Currently the list items ordering is made by traversing the render tree. This gives bad results for:
- list items flown inside regions because they are not rendered as descendants of their DOM list ancestors.
- list items matched to insertion points inside a shadow tree. The insertion point may be a child of a
list so the numbering gets broken.

To implement correct DOM ordering I've taken into account the fact that pseudo-elements can have display: list-item
so they should be included when traversing the DOM tree. I've added helper methods on the NodeTraversal
namespace that should allow easily traversing the tree including the pseudo-elements (e.g. firstChildWithPseudo
for an element with pseudo-before will return the before PseudoElement). Using these helper methods I've implemented
pre-order traversal methods aware of the pseudo-elements.
An effect of this change is how the list items inside shadow tree update their counting. With the patch, if there's
no <ol> or <ul> element on the ancestor chain of a <li> element to the shadow root, the list node will be considered the
first parent of the <li> or the shadow root if there is no ancestor.
The RenderListItem class now makes use of this new method of traversal, replacing the one based on the render tree.
To simplify the CSS counters implementation, I've changed the traversal functions inside RenderCounter to also make use
of this method. The CSS counters and the list items now have the same traversal algorithm.

In later patches I'll add tests that should cover the regions and shadow DOM use cases.
Tests bug for shadow DOM: https://bugs.webkit.org/show_bug.cgi?id=113193
Tests bug for regions: https://bugs.webkit.org/show_bug.cgi?id=103975

Tests: no new tests is this patch; added the correct expectations for fast/lists/positioned-count-crash.html
and fast/dom/shadow/shadow-and-list-elements.html

* dom/Node.cpp:
(WebCore::Node::pseudoAwarePreviousSibling):
(WebCore):
(WebCore::Node::pseudoAwareNextSibling):
(WebCore::Node::pseudoAwareFirstChild):
(WebCore::Node::pseudoAwareLastChild):
* dom/Node.h:
(Node):
* dom/NodeTraversal.cpp:
(WebCore):
(WebCore::NodeTraversal::previousIncludingPseudo):
(NodeTraversal):
(WebCore::NodeTraversal::nextIncludingPseudo):
(WebCore::NodeTraversal::nextIncludingPseudoSkippingChildren):
* dom/NodeTraversal.h:
(ElementTraversal):
(NodeTraversal):
(WebCore::ElementTraversal::previousIncludingPseudo):
(WebCore::ElementTraversal::nextIncludingPseudo):
(WebCore::ElementTraversal::nextIncludingPseudoSkippingChildren):
(WebCore::ElementTraversal::pseudoAwarePreviousSibling):
* html/HTMLLIElement.cpp:
(WebCore::HTMLLIElement::attach):
* html/HTMLOListElement.cpp:
(WebCore::HTMLOListElement::updateItemValues):
(WebCore::HTMLOListElement::recalculateItemCount):
* rendering/RenderCounter.cpp:
(WebCore::previousInPreOrder):
(WebCore::previousSiblingOrParent):
(WebCore::parentElement):
(WebCore::nextInPreOrder):
* rendering/RenderListItem.cpp:
(WebCore):
(WebCore::enclosingList):
(WebCore::RenderListItem::nextListItem):
(WebCore::previousListItem):
(WebCore::RenderListItem::calcValue):
(WebCore::RenderListItem::explicitValueChanged):
(WebCore::previousOrNextItem):
(WebCore::RenderListItem::updateListMarkerNumbers):
* rendering/RenderListItem.h:
(RenderListItem):

LayoutTests:

The fast/dom/shadow/shadow-and-list-elements-expected.html has changed because the list items
inside the shadow tree no longer see the root <ol> element.
The test fast/lists/positioned-count-crash.html has the correct rendering after changing
the list counting to be in DOM order.

* fast/dom/shadow/shadow-and-list-elements-expected.html:
* fast/lists/positioned-count-crash-expected.txt:


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