2011-02-14  Shinichiro Hamaji  <hamaji@chromium.org>

        Rebaseline chromium's test expectation for http://trac.webkit.org/changeset/78449

        * platform/chromium-win/fast/gradients/css3-repeating-end-fill-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78462 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: follow up to r78460 with expectation updates.

        * inspector/styles-iframe-expected.txt:
        * platform/mac-leopard/http/tests/inspector/console-websocket-error-expected.txt:
        * platform/mac/http/tests/inspector/console-websocket-error-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78463 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Shinichiro Hamaji  <hamaji@chromium.org>

        Rebaseline chromium's test expectations for SVG tests.

        * platform/chromium-mac/svg/W3C-SVG-1.1/text-intro-05-t-expected.checksum: Added.
        * platform/chromium-mac/svg/W3C-SVG-1.1/text-intro-05-t-expected.png: Added.
        * platform/chromium-mac/svg/text/text-intro-05-t-expected.checksum:
        * platform/chromium-mac/svg/text/text-intro-05-t-expected.png:
        * platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78464 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Alejandro G. Castro  <alex@igalia.com>

        Unreviewed, rolling out r78451.
        http://trac.webkit.org/changeset/78451
        https://bugs.webkit.org/show_bug.cgi?id=53898

        It is causing crashes in some bots

        * platform/text/TextCodecICU.cpp:
        (WebCore::newTextCodecICU):
        (WebCore::TextCodecICU::registerBaseEncodingNames):
        (WebCore::TextCodecICU::registerBaseCodecs):
        (WebCore::TextCodecICU::registerExtendedEncodingNames):
        (WebCore::TextCodecICU::registerExtendedCodecs):
        (WebCore::ErrorCallbackSetter::~ErrorCallbackSetter):
        (WebCore::getGbkEscape):
        (WebCore::urlEscapedEntityCallback):
        (WebCore::gbkCallbackEscape):
        (WebCore::gbkUrlEscapedEntityCallack):
        (WebCore::gbkCallbackSubstitute):
        * platform/text/TextCodecICU.h:
        (WebCore::ICUConverterWrapper::ICUConverterWrapper):
        * platform/text/TextCodecUTF8.cpp:
        (WebCore::TextCodecUTF8::registerEncodingNames):
        (WebCore::nonASCIISequenceLength):
        (WebCore::decodeNonASCIISequence):
        (WebCore::TextCodecUTF8::decode):
        * platform/text/TextCodecUTF8.h:
        * platform/text/TextEncodingRegistry.cpp:
        (WebCore::buildBaseTextCodecMaps):
        (WebCore::extendTextCodecMaps):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78465 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: follow up to r78460 with more expectation updates.

        * inspector/styles-iframe-expected.txt:
        * inspector/styles-iframe.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Naoki Takano  <takano.naoki@gmail.com>

        Reviewed by Kent Tamura.

        [Chromium] Fix wrong popup position for RTL(again)
        https://bugs.webkit.org/show_bug.cgi?id=54375

        Fix right position bug introduce by https://bugs.webkit.org/show_bug.cgi?id=53567, because the previous fix was correct for the current behaviour, but not good for http://crbug.com/60427. To calculate the correct right offset value and apply to the position, change WebCore::PopupContainer::layout() to return right offset value and use the returned value to calculate position.

        No new tests. However we can check manually with select_dropdown_box_alignment.html, autofill_alignment.html, select_alignment.html, select_dropdown_box_alignment.html, autofill-popup-width-and-item-direction.html

        * platform/chromium/PopupMenuChromium.cpp:
        (WebCore::PopupContainer::layoutAndCalculateWidgetRect): Change the input parameter to take popupInitialCoordinate again. And calculate correct right position with returned right offset from layoutAndGetRightOffset().
        (WebCore::PopupContainer::showPopup): Change the passing parameter to layoutAndCalculateWidgetRect().
        (WebCore::PopupContainer::layoutAndGetRightOffset): Change the name from layout() and to return rightOffset value.
        (WebCore::PopupContainer::refresh): Change the passing parameter to layoutAndCalculateWidgetRect().
        * platform/chromium/PopupMenuChromium.h: Change the function name and parameters.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r77834): Assertion failing in svg/custom/use-multiple-on-nested-disallowed-font.svg
https://bugs.webkit.org/show_bug.cgi?id=54344
        
Reviewed by Andreas Kling.

Intead of recomputing, just mark style selector dirty if it is invalidated in the middle of a style recalc.

* dom/Document.cpp:
(WebCore::Document::Document):
(WebCore::Document::recalcStyle):
(WebCore::Document::recalcStyleSelector):
* dom/Document.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78468 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Kenichi Ishibashi  <bashi@chromium.org>

        Reviewed by Andreas Kling.

        css style="max-width:none" works wrong
        https://bugs.webkit.org/show_bug.cgi?id=53743

        Adds a test to ensure style 'max-width: none' works correctly.

        * fast/css/max-width-none-expected.txt: Added.
        * fast/css/max-width-none.html: Added.
2011-02-14  Kenichi Ishibashi  <bashi@chromium.org>

        Reviewed by Andreas Kling.

        css style="max-width:none" works wrong
        https://bugs.webkit.org/show_bug.cgi?id=53743

        Fix a bug that "max-width:none" works wrong.
        See also: http://trac.webkit.org/changeset/13462

        Test: fast/css/max-width-none.html

        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::applyProperty): For max-width of none,
        set it to Length(undefinedLength, Fixed), which is the correct
        value.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: [REGRESSION introduced in r77950] Develop -> Start Debugging JavaScript does not open Web Inspector.
        https://bugs.webkit.org/show_bug.cgi?id=54277

        * inspector/InspectorAgent.cpp:
        (WebCore::InspectorAgent::populateScriptObjects):
        (WebCore::InspectorAgent::stopUserInitiatedProfiling):
        (WebCore::InspectorAgent::showAndEnableDebugger):
        (WebCore::InspectorAgent::showPanel):
        * inspector/InspectorAgent.h:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::showAndEnableDebugger):
        (WebCore::InspectorController::stopUserInitiatedProfiling):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78470 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Alejandro G. Castro  <alex@igalia.com>

        Unreviewed, skipped generated-content-inside-table.htm test, it
        fails in the bots, opened bug:
        https://bugs.webkit.org/show_bug.cgi?id=54389

        * platform/gtk/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-10  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: refactoring, extract SourceMapping from SourceFrameContent.
        https://bugs.webkit.org/show_bug.cgi?id=54195

        Add SourceMapping interface with two implementations - IdenticalSourceMapping and SourceMappingForFormattedScript.
        Rewrite SourceFrameContent based on SourceMapping. Make SourceFrame unaware of source mapping details.

        * inspector/front-end/ResourceView.js:
        (WebInspector.SourceFrameContentProviderForResource.prototype.requestContent):
        * inspector/front-end/ScriptFormatter.js:
        (WebInspector.ScriptFormatter.locationToPosition):
        (WebInspector.ScriptFormatter.positionToLocation):
        (WebInspector.ScriptFormatter.prototype.formatContent.didFormatChunks):
        (WebInspector.ScriptFormatter.prototype.formatContent):
        (WebInspector.ScriptFormatter.prototype._splitContentIntoChunks):
        (WebInspector.SourceMappingForFormattedScript):
        (WebInspector.SourceMappingForFormattedScript.prototype.fromScriptLocation):
        (WebInspector.SourceMappingForFormattedScript.prototype.toScriptLocation):
        (WebInspector.SourceMappingForFormattedScript.prototype.originalPositionToFormattedLocation):
        (WebInspector.SourceMappingForFormattedScript.prototype._convertPosition):
        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.SourceFrameContentProviderForScript.prototype.requestContent):
        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype._createTextViewer):
        (WebInspector.SourceFrame.prototype._shouldDisplayBreakpoint):
        (WebInspector.SourceFrame.prototype.setExecutionLine):
        (WebInspector.SourceFrame.prototype.clearExecutionLine):
        (WebInspector.SourceFrame.prototype._breakpointAdded):
        (WebInspector.SourceFrame.prototype.formatSource.didFormat):
        (WebInspector.SourceFrame.prototype.formatSource):
        (WebInspector.SourceFrame.prototype._continueToLine):
        (WebInspector.SourceFrame.prototype._setBreakpoint):
        (WebInspector.SourceFrame.prototype._findBreakpoint):
        (WebInspector.SourceFrameContentProvider.prototype.requestContent):
        * inspector/front-end/SourceFrameContent.js:
        (WebInspector.SourceFrameContent):
        (WebInspector.SourceFrameContent.prototype.sourceFrameLineNumberToScriptLocation):
        (WebInspector.SourceFrameContent.prototype.scriptLocationToSourceFrameLineNumber):
        (WebInspector.SourceFrameContent.prototype._sourceIDForSourceFrameLineNumber):
        (WebInspector.SourceMapping):
        (WebInspector.SourceMapping.prototype.fromScriptLocation):
        (WebInspector.SourceMapping.prototype.toScriptLocation):
        (WebInspector.IdenticalSourceMapping):
        (WebInspector.IdenticalSourceMapping.prototype.fromScriptLocation):
        (WebInspector.IdenticalSourceMapping.prototype.toScriptLocation):
        * inspector/front-end/utilities.js:
        (String.prototype.lineEndings):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78472 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Roland Steiner  <rolandsteiner@chromium.org>

        Reviewed by Kent Tamura.

        Bug 54377 - Clean up RenderTextControlSingleLine::createSubtreeIfNeeded()
        https://bugs.webkit.org/show_bug.cgi?id=54377

        Rearranged the condition blocks, removed superfluous conditions:
        .) if-statements where it's already clear that a search field is being generated
        .) testing for spin-buttons on field types that can never have them.

        createInnerBlockStyle(): only search fields create an inner block, and
        these can never have spin buttons.

        No new tests. (Refactoring - covered by existing tests)

        * rendering/RenderTextControlSingleLine.cpp:
        (WebCore::RenderTextControlSingleLine::createInnerBlockStyle):
        (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78473 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Alejandro G. Castro  <alex@igalia.com>

        Unreviewed, skipped some tests that were causing problems just in
        one of the bots, apparently rounding issues.
        https://bugs.webkit.org/show_bug.cgi?id=39022

        * platform/gtk/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: chromium expectations update.

        * platform/chromium-win/inspector/console-format-expected.txt: Removed.
        * platform/chromium-win/inspector/console-uncaught-exception-expected.txt: Removed.
        * platform/chromium-win/inspector/debugger-expand-scope-expected.txt: Removed.
        * platform/chromium/inspector/console-dir-global-expected.txt: Renamed from LayoutTests/platform/chromium-win/inspector/console-dir-global-expected.txt.
        * platform/chromium/inspector/console-format-collections-expected.txt:
        * platform/chromium/inspector/console-format-expected.txt:
        * platform/chromium/inspector/console-trace-in-eval-expected.txt:
        * platform/chromium/inspector/console-uncaught-exception-expected.txt:
        * platform/chromium/inspector/debugger-expand-scope-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78475 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: update chromium expectation for inspector test.

        * inspector/console-uncaught-exception-in-eval.html:
        * platform/chromium/inspector/console-uncaught-exception-in-eval-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: move timeline and highlighter tests to the new harness.
        https://bugs.webkit.org/show_bug.cgi?id=54390

        * inspector/cookie-resource-match.html:
        * inspector/elements-panel-search.html:
        * inspector/evaluate-in-frontend-expected.txt: Removed.
        * inspector/evaluate-in-frontend.html: Removed.
        * inspector/inspected-objects-not-overriden.html:
        * inspector/resources/timeline-iframe-data.html:
        * inspector/syntax-highlight-css.html:
        * inspector/syntax-highlight-html.html:
        * inspector/syntax-highlight-javascript-expected.txt:
        * inspector/syntax-highlight-javascript.html:
        * inspector/syntax-highlight.js:
        (initialize_SyntaxHighlight.InspectorTest.dumpSyntaxHighlight):
        (initialize_SyntaxHighlight):
        * inspector/timeline-enum-stability-expected.txt:
        * inspector/timeline-enum-stability.html:
        * inspector/timeline-event-dispatch.html:
        * inspector/timeline-layout-expected.txt:
        * inspector/timeline-layout.html:
        * inspector/timeline-mark-timeline.html:
        * inspector/timeline-network-resource-expected.txt:
        * inspector/timeline-network-resource.html:
        * inspector/timeline-network-resource.js:
        * inspector/timeline-paint.html:
        * inspector/timeline-parse-html-expected.txt:
        * inspector/timeline-parse-html.html:
        * inspector/timeline-recalculate-styles-expected.txt:
        * inspector/timeline-recalculate-styles.html:
        * inspector/timeline-script-tag-1-expected.txt:
        * inspector/timeline-script-tag-1.html:
        * inspector/timeline-script-tag-2-expected.txt:
        * inspector/timeline-script-tag-2.html:
        * inspector/timeline-script-tag-2.js:
        * inspector/timeline-test.js:
        (initialize_Timeline.InspectorTest.performActionsAndPrint.step1):
        (initialize_Timeline.InspectorTest.performActionsAndPrint.step2):
        (initialize_Timeline.InspectorTest.performActionsAndPrint.step3):
        (initialize_Timeline.InspectorTest.performActionsAndPrint):
        (initialize_Timeline.InspectorTest.printTimelineRecords):
        (initialize_Timeline.InspectorTest._timelineResults):
        (initialize_Timeline.InspectorTest.dumpTimelineRecord):
        (initialize_Timeline.InspectorTest.dumpTimelineRecords):
        (initialize_Timeline.InspectorTest.printTimelineRecordProperties):
        (initialize_Timeline.InspectorTest._timelineAgentTypeToString):
        (initialize_Timeline):
        * inspector/timeline-trivial.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Johnny Ding  <jnd@chromium.org>

        Reviewed by Andreas Kling.

        Move the finiteness check into common code.

        Test covered by canvas/philip/tests/2d.path.isPointInPath.nonfinite.html

        * html/canvas/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::isPointInPath):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add some .messages.in and script files to WebKit2 projects

This is just for convenience. It doesn't affect the build.

* win/WebKit2.vcproj: Also let VS resort some files.
* win/WebKit2Generated.vcproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Regression: Back, Forward, Reload hidden in context menu
https://bugs.webkit.org/show_bug.cgi?id=54393

Reviewed by Gustavo Noronha Silva.

* page/ContextMenuController.cpp: Always show Back, Forward,
    Reload and Stop context menu items for the GTK+ port.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-02-14  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: chromium expectations update.

        * platform/chromium/inspector/timeline-network-resource-expected.txt:


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