Unreviewed, rebaseline after r112825.

The test baseline updated in r112825 is specific to GURL's way of
printing URLs so it belongs to the chromium platform directory.

* http/tests/security/no-popup-from-sandbox-top-expected.txt:
* platform/chromium/http/tests/security/no-popup-from-sandbox-top-expected.txt: Copied from LayoutTests/http/tests/security/no-popup-from-sandbox-top-expected.txt.

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

* Scripts/webkitpy/performance_tests/perftestsrunner_unittest.py:
(test_run_test_set_with_json_output):
(test_run_test_set_with_json_source):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix for ENABLE(SVG) && !ENABLE(FILTERS) after r112813.

* svg/SVGAnimatedEnumeration.cpp:
(WebCore::enumerationValueForTargetAttribute):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: make timeline overview a view
https://bugs.webkit.org/show_bug.cgi?id=82861

Reviewed by Yury Semikhatsky.

- make TimelineOverviewPane a view;
- only update it if it's visible or upon wasShown().

* inspector/front-end/TimelineOverviewPane.js:
(WebInspector.TimelineOverviewPane):
(WebInspector.TimelineOverviewPane.prototype.wasShown): forced update.
(WebInspector.TimelineOverviewPane.prototype._updateCategoryStrips):
(WebInspector.TimelineOverviewPane.prototype._scheduleRefresh): skip refresh if not showing;
* inspector/front-end/TimelinePanel.js: timelineOverviewPane.show() instead of appendChild();
(WebInspector.TimelinePanel):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add a calendar picker indicator to date-type input fields
https://bugs.webkit.org/show_bug.cgi?id=80478

Reviewed by Hajime Morita.

Source/WebCore:

Add an indicator to date-type controls. The bahevior change is enclosed
with ENABLE_CALENDAR_PICKER.

- Remove spin buttons from date-type controls.
It's not so helpful if we have a calendar picker. We introduce
TextFieldInputType::shouldHaveSpinButton().

- Add CalendarPickerElement.
This is added into a shadow tree of a date-type control. It uses
RenderDetailsMarker.

We're going to add click handler and so on to CalendarPickerElement.

Test: fast/forms/date/date-appearance.html

* WebCore.gypi: Add CalendarPickerElement.{cpp,h}
* css/html.css:
(input::-webkit-calendar-picker-indicator):
* html/DateInputType.cpp:
(WebCore::DateInputType::createShadowSubtree): Insert CalendarPickerElement.
(WebCore::DateInputType::needsContainer):
Alwyas return true because we have an extra decoration element.
(WebCore::DateInputType::shouldHaveSpinButton):
Always return false to disable spin button.
* html/DateInputType.h:
(DateInputType): Add declarations.
* html/TextFieldInputType.cpp:
(WebCore::TextFieldInputType::shouldHaveSpinButton):
(WebCore::TextFieldInputType::createShadowSubtree): Move some code to shouldHaveSpinButton().
* html/TextFieldInputType.h:
(TextFieldInputType): Add a declartion.
* html/shadow/CalendarPickerElement.cpp:
(WebCore::CalendarPickerElement::CalendarPickerElement):
(WebCore::CalendarPickerElement::create):
(WebCore::CalendarPickerElement::createRenderer): Creates RenderDetailsMarker.
* html/shadow/CalendarPickerElement.h: Added.
* rendering/RenderDetailsMarker.cpp:
(WebCore::RenderDetailsMarker::isOpen): Always show a down arrow if this is in <input>.
* rendering/RenderDetailsMarker.h:

Source/WebKit/chromium:

* features.gypi: Enable CALENDAR_PICKER for non-Android platforms. This
doesn't affect any bahevior because INPUT_TYPE_DATE is disabled.

LayoutTests:

* fast/forms/date/date-appearance.html: Added.
* platform/chromium-mac-snowleopard/fast/forms/date/date-appearance-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/date/date-appearance-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112839 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Teach RuleSet about modern memory management
https://bugs.webkit.org/show_bug.cgi?id=82856

Reviewed by Adam Barth.

No change in behavior, thus no tests.

* css/CSSStyleSelector.cpp:
(WebCore::RuleSet::create):
(RuleSet):
(WebCore::RuleSet::RuleSetSelectorPair::RuleSetSelectorPair):
(WebCore::CSSStyleSelector::CSSStyleSelector):
(WebCore::makeRuleSet):
(WebCore::CSSStyleSelector::appendAuthorStylesheets):
(WebCore::loadFullDefaultStyle):
(WebCore::loadSimpleDefaultStyle):
(WebCore::loadViewSourceStyle):
(WebCore::CSSStyleSelector::collectMatchingRulesForList):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: breakpoints are not shown in sidebar pane after switching pretty-print mode.
https://bugs.webkit.org/show_bug.cgi?id=82768

Reviewed by Yury Semikhatsky.

Source/WebCore:

When UISourceCode is replaced with another in ScriptsPanel, newly added
UISourceCode could already have breakpoints. We should iterate over existing
breakpoints and add them to sidebar pane.

* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel.prototype._uiSourceCodeReplaced):

LayoutTests:

* inspector/debugger/script-formatter-breakpoints-expected.txt:
* inspector/debugger/script-formatter-breakpoints.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Skip flaky unit tests.

* Scripts/run-gtk-tests:
(TestRunner):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Shadow DOM] Introduce ComposedShadowTreeWalker as a successor of ReifiedTreeTraversal APIs
https://bugs.webkit.org/show_bug.cgi?id=82009

Reviewed by Dimitri Glazkov.

.:

* Source/autotools/symbols.filter:

Source/WebCore:

ComposedShadowTreeWalker is intended to be a successor of current ReifiedTreeTraversal APIs.
ComposedShadowTreeWalker uses a cursor pattern and takes a starting node in its constructor.

A typical usage is:

  for (ComposedShadowTreeWalker walker(node); walker.get(); walker.next()) {
        ...
  }

Follow-up patches will update clients which use current ReifiedTreeTraversal APIs so that they use the Walker.
More tests will come along with these actual use cases in follow-up patches.
After that, I'll get rid of ReifiedTreeTraversal APIs in favor of the Walker.

Note that 'ComposedShadowTree' and 'ReifiedTree' has the same meaning.
Because ReifiedTree is not intuitive name, we are starting to use 'ComposedShadowTree' from now.

Test: fast/dom/shadow/composed-shadow-tree-walker.html

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.exp.in:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* dom/ComposedShadowTreeWalker.cpp: Added.
(WebCore):
(WebCore::isShadowHost):
(WebCore::shadowTreeFor):
(WebCore::shadowTreeOfParent):
(WebCore::ComposedShadowTreeWalker::ComposedShadowTreeWalker):
(WebCore::ComposedShadowTreeWalker::fromFirstChild):
(WebCore::ComposedShadowTreeWalker::firstChild):
(WebCore::ComposedShadowTreeWalker::traverseFirstChild):
(WebCore::ComposedShadowTreeWalker::lastChild):
(WebCore::ComposedShadowTreeWalker::traverseLastChild):
(WebCore::ComposedShadowTreeWalker::traverseChild):
(WebCore::ComposedShadowTreeWalker::traverseLightChildren):
(WebCore::ComposedShadowTreeWalker::traverseNode):
(WebCore::ComposedShadowTreeWalker::nextSibling):
(WebCore::ComposedShadowTreeWalker::previousSibling):
(WebCore::ComposedShadowTreeWalker::traverseSiblingOrBackToInsertionPoint):
(WebCore::ComposedShadowTreeWalker::traverseSiblingInCurrentTree):
(WebCore::ComposedShadowTreeWalker::traverseSiblingOrBackToYoungerShadowRoot):
(WebCore::ComposedShadowTreeWalker::escapeFallbackContentElement):
(WebCore::ComposedShadowTreeWalker::traverseNodeEscapingFallbackContents):
(WebCore::ComposedShadowTreeWalker::parent):
(WebCore::ComposedShadowTreeWalker::traverseParent):
(WebCore::ComposedShadowTreeWalker::traverseParentInCurrentTree):
(WebCore::ComposedShadowTreeWalker::traverseParentBackToYoungerShadowRootOrHost):
(WebCore::ComposedShadowTreeWalker::traverseNextSibling):
(WebCore::ComposedShadowTreeWalker::traversePreviousSibling):
(WebCore::ComposedShadowTreeWalker::next):
(WebCore::ComposedShadowTreeWalker::previous):
* dom/ComposedShadowTreeWalker.h: Added.
(WebCore):
(ComposedShadowTreeWalker):
(WebCore::ComposedShadowTreeWalker::get):
(WebCore::ComposedShadowTreeWalker::canCrossUpperBoundary):
(WebCore::ComposedShadowTreeWalker::assertPrecondition):
(WebCore::ComposedShadowTreeWalker::assertPostcondition):
* testing/Internals.cpp:
(WebCore::Internals::nextSiblingByWalker):
(WebCore):
(WebCore::Internals::firstChildByWalker):
(WebCore::Internals::lastChildByWalker):
(WebCore::Internals::nextNodeByWalker):
(WebCore::Internals::previousNodeByWalker):
* testing/Internals.h:
(Internals):
* testing/Internals.idl:

Source/WebKit2:

* win/WebKit2.def:
* win/WebKit2CFLite.def:

LayoutTests:

* fast/dom/shadow/composed-shadow-tree-walker-expected.txt: Added.
* fast/dom/shadow/composed-shadow-tree-walker.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Move a number of virtual functions from WebKitPlatformSupport.h into Platform.h
https://bugs.webkit.org/show_bug.cgi?id=82865

Reviewed by Kent Tamura.

Source/Platform:

Moving these functions into Platform.h allows them to be called from
Platform (aka WebCore/platform), as discussed in
https://lists.webkit.org/pipermail/webkit-dev/2012-March/020166.html

* chromium/public/Platform.h:
(WebKit):
(Platform):
(WebKit::Platform::mimeRegistry):
(WebKit::Platform::audioHardwareSampleRate):
(WebKit::Platform::audioHardwareBufferSize):
(WebKit::Platform::createAudioDevice):
(WebKit::Platform::sampleGamepads):
(WebKit::Platform::visitedLinkHash):
(WebKit::Platform::isLinkVisited):
(WebKit::Platform::signedPublicKeyAndChallengeString):
(WebKit::Platform::memoryUsageMB):
(WebKit::Platform::actualMemoryUsageMB):
(WebKit::Platform::lowMemoryUsageMB):
(WebKit::Platform::highMemoryUsageMB):
(WebKit::Platform::highUsageDeltaMB):
(WebKit::Platform::prefetchHostName):
(WebKit::Platform::createSocketStreamHandle):
(WebKit::Platform::userAgent):
(WebKit::Platform::cacheMetadata):
(WebKit::Platform::createThread):
(WebKit::Platform::currentThread):
(WebKit::Platform::decrementStatsCounter):
(WebKit::Platform::incrementStatsCounter):
(WebKit::Platform::loadResource):
(WebKit::Platform::loadAudioResource):
(WebKit::Platform::sandboxEnabled):
(WebKit::Platform::suddenTerminationChanged):
(WebKit::Platform::defaultLocale):
(WebKit::Platform::currentTime):
(WebKit::Platform::monotonicallyIncreasingTime):
(WebKit::Platform::setSharedTimerFiredFunction):
(WebKit::Platform::setSharedTimerFireInterval):
(WebKit::Platform::stopSharedTimer):
(WebKit::Platform::callOnMainThread):
(WebKit::Platform::getTraceCategoryEnabledFlag):
(WebKit::Platform::addTraceEvent):
(WebKit::Platform::histogramCustomCounts):
(WebKit::Platform::histogramEnumeration):

Source/WebKit/chromium:

* public/platform/WebKitPlatformSupport.h:
(WebKit):
(WebKitPlatformSupport):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed, add baselines for fast/forms/date/date-appearance.html

* platform/chromium-linux/fast/forms/date/date-appearance-expected.png: Added.
* platform/chromium-linux/fast/forms/date/date-appearance-expected.txt: Added.
* platform/chromium-mac/fast/forms/date/date-appearance-expected.png: Added.
* platform/chromium-mac/fast/forms/date/date-appearance-expected.txt: Added.
* platform/chromium-win/fast/forms/date/date-appearance-expected.png: Added.
* platform/chromium-win/fast/forms/date/date-appearance-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Disable ENABLE_INPUT_TYPE_COLOR for aura and android
https://bugs.webkit.org/show_bug.cgi?id=82863

Reviewed by Kent Tamura.

* features.gypi:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, skipping 2 crashing svg tests in GTK.

* platform/gtk/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112850 268f45cc-cd09-0410-ab3c-d52691b4dbfc
in page anchor and keyboard navigation
https://bugs.webkit.org/show_bug.cgi?id=17450

Reviewed by Chris Fleizach.

Source/WebCore:

Ensure that the position of the caret and the focused element
get updated when following an anchor link.

The implementation is moved from platform specific files out to
AXObjectCache.cpp since it should be a cross-platform valid
solution. However, the new code is currently activated for the Mac
and GTK ports only, since the windows and chromium ports provide
their own specific code, and removing it now might break things.

Test: accessibility/anchor-link-selection-and-focus.html

* accessibility/AXObjectCache.cpp:
(WebCore):
(WebCore::AXObjectCache::handleScrolledToAnchor): Cross-platform
implementation of the fix, only activated for Mac and GTK for now.
* accessibility/gtk/AXObjectCacheAtk.cpp: Removed the GTK-specific
implementation of WebCore::AXObjectCache::handleScrolledToAnchor.
* accessibility/mac/AXObjectCacheMac.mm: Removed the Mac-specific
implementation of WebCore::AXObjectCache::handleScrolledToAnchor.

LayoutTests:

Added new test and expectations.

* accessibility/anchor-link-selection-and-focus-expected.txt: Added.
* accessibility/anchor-link-selection-and-focus.html: Added.
* platform/gtk/accessibility/anchor-link-selection-and-focus-expected.txt: Added.
* platform/chromium/test_expectations.txt: Skipped test for chromium.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add rounding to Plugin creation in SubframeLoader
https://bugs.webkit.org/show_bug.cgi?id=82221

Reviewed by Eric Seidel.

Adding rounding to the LayoutSize used to construct Plugins in SubframeLoader. Plugins, which
are widgets, are always placed on integer boundaries, which means their sizes can be rounded
without considering their location. See https://trac.webkit.org/wiki/LayoutUnit for details.

No new tests. No change in behavior.

* loader/SubframeLoader.cpp:
(WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
(WebCore::SubframeLoader::createJavaAppletWidget):
(WebCore::SubframeLoader::loadPlugin):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112852 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Fix names of failed unit tests in Tools/Scripts/run-gtk-tests
https://bugs.webkit.org/show_bug.cgi?id=82877

Reviewed by Philippe Normand.

* Scripts/run-gtk-tests:
(TestRunner.run_tests): Use replace instead of lstrip to remove
the programs_path from the full path of unit tests.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, skipping one more crashing svg test in GTK because of
bug 82876.

* platform/gtk/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112854 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fix make distcheck issues.

Source/JavaScriptCore:

* GNUmakefile.list.am: Add missing file.

Source/WebCore:

* GNUmakefile.list.am: Remove duplicated files and add missing
header.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Add baselines for fast/text/international/text-spliced-font.html

* platform/chromium-linux/fast/text/international/text-spliced-font-expected.png: Added.
* platform/chromium-linux/fast/text/international/text-spliced-font-expected.txt: Added.
* platform/chromium-mac-leopard/fast/text/international/text-spliced-font-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/text/international/text-spliced-font-expected.png: Added.
* platform/chromium-mac/fast/text/international/text-spliced-font-expected.png: Added.
* platform/chromium-mac/fast/text/international/text-spliced-font-expected.txt: Added.
* platform/chromium-win-xp/fast/text/international/text-spliced-font-expected.png: Added.
* platform/chromium-win/fast/text/international/text-spliced-font-expected.png: Added.
* platform/chromium-win/fast/text/international/text-spliced-font-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112856 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening, skip a new failing test because
ENABLE(SHADOW_DOM) is disabled.

Patch by JÃ¡nos Badics <jbadics@inf.u-szeged.hu> on 2012-04-02

* platform/qt/Skipped:

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