Remove references to non-chromium entries from WebCore.gypi (part 2)
https://bugs.webkit.org/show_bug.cgi?id=103124

Reviewed by Pavel Feldman.

* WebCore.gypi: removed unused references to gtk, cf, win and mac

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Decorations in several consecutive lines are not moved correctly in DTE.
https://bugs.webkit.org/show_bug.cgi?id=113296

Reviewed by Pavel Feldman.

Separated removing and adding decorations so that moved decorations are not removed when next line is processed.

* inspector/front-end/DefaultTextEditor.js:
(WebInspector.TextEditorGutterPanel.prototype.textChanged):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardneing. Unskipped and Updated inspector tests after r146863.

* platform/qt/TestExpectations:
* platform/qt/inspector/console/console-eval-syntax-error-expected.txt: Added.
* platform/qt/inspector/debugger/debugger-pause-in-eval-script-expected.txt: Added.
* platform/qt/inspector/extensions/extensions-eval-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[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
[Qt] UIProcess should initialize WebCoreSystemInterface.
https://bugs.webkit.org/show_bug.cgi?id=113300

The WebCoreSystemInterface is necessary to detect supported
mime types on Mac OS. In particular it is needed for download
support.
This patch fixes in particular the previously failing
Qt API qmltest WebViewDownload::test_downloadRequest.
The test was crashing when using QTKit, because functions
in WebCoreSystemInterface could not be resolved on the UIProcess side.

Reviewed by Jocelyn Turcotte.

* UIProcess/qt/WebContextQt.cpp:
(WebKit::WebContext::platformInitializeWebProcess):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Updated test expectations for compositing/geometry/fixed-in-composited.html

* platform/chromium-linux-x86/platform/chromium/virtual/softwarecompositing/geometry/fixed-in-composited-expected.png: Removed.
* platform/chromium-win/platform/chromium/virtual/softwarecompositing/geometry/fixed-in-composited-expected.png: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
remoeveAllEventListeners() should be called to shadow trees
https://bugs.webkit.org/show_bug.cgi?id=113037

Reviewed by Dimitri Glazkov.

Source/WebCore:

Document::removeAllEventListeners() doesn't traverse shadow tree, but we should.
This change override Element::removeAllEventListeners() so that it cleans its shadow trees up.

Test: fast/dom/shadow/shadow-tree-listener-clearance.html

* dom/Element.cpp:
(WebCore::Element::removeAllEventListeners):
(WebCore):
* dom/Element.h:
(Element):
* dom/ElementShadow.cpp:
(WebCore::ElementShadow::removeAllEventListeners): Added.
(WebCore):
* dom/ElementShadow.h:
(ElementShadow):

LayoutTests:

* fast/dom/shadow/resources/shadow-tree-listener-clearance-frame.html: Added.
* fast/dom/shadow/shadow-tree-listener-clearance-expected.txt: Added.
* fast/dom/shadow/shadow-tree-listener-clearance.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r146879.
http://trac.webkit.org/changeset/146879
https://bugs.webkit.org/show_bug.cgi?id=113312

Multiple layout test crashes in
WebCore::RenderListItem::updateListMarkerNumbers (Requested by
yurys on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-03-26

Source/WebCore:

* dom/Node.cpp:
* dom/Node.h:
(Node):
* dom/NodeTraversal.cpp:
* dom/NodeTraversal.h:
(ElementTraversal):
(NodeTraversal):
* 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::enclosingList):
(WebCore::RenderListItem::nextListItem):
(WebCore::previousListItem):
(WebCore::RenderListItem::calcValue):
(WebCore::RenderListItem::explicitValueChanged):
(WebCore::previousOrNextItem):
(WebCore::RenderListItem::updateListMarkerNumbers):
* rendering/RenderListItem.h:
(RenderListItem):

LayoutTests:

* 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@146883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
FormData::deepCopy() could use Vector::uncheckedAppend()
https://bugs.webkit.org/show_bug.cgi?id=113309

Reviewed by Kenneth Rohde Christiansen.

FormData::deepCopy() calls reserveInitialCapacity() on the Vector but then uses the
regular append() method. This patch switches to using uncheckedAppend() method
instead to bypass capacity checks as we already know it is sufficient.

No new tests, no behavior change.

* platform/network/FormData.cpp:
(WebCore::FormData::deepCopy):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Main frame fixed divs not positioned correctly
https://bugs.webkit.org/show_bug.cgi?id=112889

Reviewed by Carlos Garcia Campos.

PR 283363

This was a regression from bug #112806. It caused main frame fixed
handling to enter the iframe/scrollable div code path in LayerRenderer.

Fixed by not setting the container for fixed flag on the main frame,
the LayerRenderer expects this flag to be set only on non-mainframe
containers.

Only manually testable.

* page/scrolling/blackberry/ScrollingCoordinatorBlackBerry.cpp:
(WebCore::scrollLayerForFrame):
(WebCore):
(WebCore::ScrollingCoordinatorBlackBerry::setLayerIsContainerForFixedPositionLayers):
(WebCore::ScrollingCoordinatorBlackBerry::setLayerIsFixedToContainerLayer):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146885 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CSP 1.1: Experiment with 'base-uri' directive.
https://bugs.webkit.org/show_bug.cgi?id=113307

Reviewed by Jochen Eisinger.

Source/WebCore:

The 'base-uri' directive was introduced[1] as an experimental directive
in CSP 1.1 after a bit of discussion[2][3]. The exact semantics will
likely change, but it would be good for us to get some implementation
experience with the API as currently specified, and to allow folks to
play with the implementation to determine whether it meets the
requirements the way we think it might.

This patch is a first pass at that implementation: it will have no
effect on ports that haven't enabled the CSP_NEXT flag.

[1]: https://dvcs.w3.org/hg/content-security-policy/rev/4b89c246ea16
[2]: http://lists.w3.org/Archives/Public/public-webappsec/2012Oct/0022.html
[3]: http://lists.w3.org/Archives/Public/public-webappsec/2013Feb/0074.html

Tests: http/tests/security/contentSecurityPolicy/1.1/base-uri-allow.html
       http/tests/security/contentSecurityPolicy/1.1/base-uri-deny.html

* dom/Document.cpp:
(WebCore::Document::processBaseElement):
    Check that the new base URI is allowed by CSP before using it as
    the document's base URI.
* page/ContentSecurityPolicy.cpp:
    Add a constant for the new directive name (and, as a drive-by, split
    the list into CSP 1.0 and CSP 1.1 for clarity).
(CSPDirectiveList):
    Add a property to hold the base URI policy directive value.
(WebCore::CSPDirectiveList::checkSourceAndReportViolation):
    Customize the error message iff we're dealing with 'base-uri'.
(WebCore::CSPDirectiveList::allowBaseURI):
    Check the given URI against the 'base-uri' directive's value,
    exactly as we do for every other source-list type of directive.
(WebCore::CSPDirectiveList::addDirective):
    Accept 'base-uri' as a valid directive iff CSP_NEXT is set, and
    the embedder has opted-in via the runtime flag.
(WebCore::ContentSecurityPolicy::allowBaseURI):
    Expose an API method on ContentSecurityPolicy to check URIs against
    the 'base-uri' directive's value.

LayoutTests:

* http/tests/security/contentSecurityPolicy/1.1/base-uri-allow-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/1.1/base-uri-allow.html: Added.
* http/tests/security/contentSecurityPolicy/1.1/base-uri-deny-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/1.1/base-uri-deny.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ArrayMode should not consider SpecOther when refining the base
https://bugs.webkit.org/show_bug.cgi?id=113271

Reviewed by Geoffrey Garen.
        
9% speed-up on Octane/pdfjs.

* dfg/DFGArrayMode.cpp:
(JSC::DFG::ArrayMode::refine):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Flame Chart. Scroll dividers together with underlying chart.
http://bugs.webkit.org/show_bug.cgi?id=113080

Reviewed by Pavel Feldman.

* inspector/front-end/FlameChart.js:
(WebInspector.FlameChart.Calculator.prototype.grandMinimumBoundary):
(WebInspector.FlameChart.prototype._canvasDragging):
* inspector/front-end/TimelineGrid.js:
(WebInspector.TimelineGrid.prototype.updateDividers):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. WebInspector: remove unnecessary method.

* inspector/front-end/OverviewGrid.js:
(WebInspector.OverviewGrid.Window):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Convert WebInputEvent::GestureDoubleTap to  PlatformEvent::NoType
https://bugs.webkit.org/show_bug.cgi?id=113215

In bug 93045 we removed PlatformEvent::GestureDoubleTap since now DoubleTap gesture
is implemented as a Tap gesture with tap_count = 2.

In WebViewImpl::handleGestureEvent(), a PlatformEvent is built from the WebGestureEvent
regardless, even though the PlatfromEvent will never reach the WebCore. DoubleTap, in
our case, is only handled in WebViewImpl for doube-tap-to-zoom, will also go through
conversion in WebInpuEventConversion.cpp::PlatformGestureEventBuilder() and reach
ASSERT_NOT_REACHED()

This patch converts WebGestureEvent::DoubleTap to PlatformEvent::NoType, this makes the
conversion list from WebInputEvent to PlatformEvent complete and we don't need a special
handling for the DoubleTap event in WebViewImpl::handleGestureEvent()

Patch by Yufeng Shen <miletus@chromium.org> on 2013-03-26
Reviewed by Antonio Gomes.

* src/WebInputEventConversion.cpp:
(WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix incorrect test name in content shell expectations

Unreviewed. Typing is hard.

* platform/chromium/ContentShellTestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://bugs.webkit.org/show_bug.cgi?id=113164
Custom Elements: readyCallback should be called for outerHTML and insertAdjecentHTML

Source/WebCore:

These APIs also create new elements thus should have V8DeliverCustomElementCallbacks attribute.

Reviewed by Dimitri Glazkov.

Test: Updated lifecycle-ready-creation-api.html.

* html/HTMLElement.idl:

LayoutTests:

Reviewed by Dimitri Glazkov.

* fast/dom/custom/lifecycle-ready-creation-api-expected.txt:
* fast/dom/custom/lifecycle-ready-creation-api.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146896 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [Elements] Unable to "Edit as HTML" XHTML/SVG documents.
https://bugs.webkit.org/show_bug.cgi?id=113290

Reviewed by Pavel Feldman.

Source/WebCore:

DOMPatchSupport has been slightly augmented to handle XML (XHTML and SVG) documents.

Test: inspector/elements/set-outer-html-for-xhtml.xhtml

* inspector/DOMPatchSupport.cpp:
(WebCore::DOMPatchSupport::patchDocument):
(WebCore::DOMPatchSupport::patchNode):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::setOuterHTML): Let HTML, XHTML, and SVG documents through.

LayoutTests:

* inspector/elements/set-outer-html-for-xhtml-expected.txt: Added.
* inspector/elements/set-outer-html-for-xhtml.xhtml: Added.


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