1. 06 Feb, 2010 6 commits
  2. 05 Feb, 2010 34 commits
    • eric@webkit.org's avatar
      2010-02-05 James Hawkins <jhawkins@chromium.org> · f0ff4bec
      eric@webkit.org authored
              Reviewed by David Levin.
      
              [Chromium] Remove an unused forward declaration in WebKitClient.h.
      
              https://bugs.webkit.org/show_bug.cgi?id=34622
      
              * public/WebKitClient.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54448 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f0ff4bec
    • kdecker@apple.com's avatar
      Reviewed by Mark Rowe. · 7c332e91
      kdecker@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=34661
              <rdar://problem/7614067> REGRESSION (Safari 4.0-> Safari 4.0.4): NPP_SetWindow no longer sets a clipRect of (0,0,0,0) when it becomes hidden
              
              * Plugins/Hosted/WebHostedNetscapePluginView.mm:
              (-[WebHostedNetscapePluginView updateAndSetWindow]): When clipping out NPDrawingModelCoreAnimation plug-ins, provide a zero'd out clipRect.
              * Plugins/WebBaseNetscapePluginView.h: Moved superviewsHaveSuperviews to the base class.
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): Added to the base class; extracted from WebNetscapePluginView.
              (-[WebBaseNetscapePluginView shouldClipOutPlugin]): Added new method with code extracted from WebNetscapePluginView.
              * Plugins/WebNetscapePluginView.mm:
              (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]): When clipping out NPDrawingModelCoreAnimation plug-ins, provide a zero'd out clipRect.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54447 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      7c332e91
    • enrica@apple.com's avatar
      Horizontal scrollbar works in reverse at milliondollarcu.be · 6ac6e802
      enrica@apple.com authored
      <rdar://problem/7556121>
      https://bugs.webkit.org/show_bug.cgi?id=33848
              
      Reviewed by Simon Fraser.
      
      Added a manual test.
      
      * manual-tests/win: Added.
      * manual-tests/win/horizontal-scroll-composited.html: Added.
      * platform/graphics/win/WKCACFLayerRenderer.cpp:
      (WebCore::WKCACFLayerRenderer::setScrollFrame):
      (WebCore::WKCACFLayerRenderer::setRootChildLayer):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54446 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      6ac6e802
    • ossy@webkit.org's avatar
      Rubber-stamped by Kenneth Rohde Christiansen. · 130b30b0
      ossy@webkit.org authored
      [Qt] Missing fast/frames/flattening/resources/frameset-flattening-subframe-resize.html
      https://bugs.webkit.org/show_bug.cgi?id=34662
      
      * platform/qt/Skipped: fast/frames/flattening/frameset-flattening-subframe-resize.html skipped until fix.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54445 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      130b30b0
    • ossy@webkit.org's avatar
      Rubber-stamped by Kenneth Rohde Christiansen. · 6dd04e74
      ossy@webkit.org authored
      Update expected results after r54441 to make buildbot happy.
      
      * platform/qt/fast/frames/flattening/frameset-flattening-advanced-expected.txt: Updated.
      * platform/qt/fast/frames/flattening/frameset-flattening-subframesets-expected.txt: Updated.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54444 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      6dd04e74
    • eric@webkit.org's avatar
      2010-02-05 James Hawkins <jhawkins@chromium.org> · 2acb357f
      eric@webkit.org authored
              Reviewed by Darin Fisher.
      
              Implement WebInputElement::isActivatedSubmit().
      
              https://bugs.webkit.org/show_bug.cgi?id=34623
      
              * public/WebInputElement.h:
              * src/WebInputElement.cpp:
              (WebKit::WebInputElement::isActivatedSubmit):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54443 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      2acb357f
    • eric@webkit.org's avatar
      2010-02-05 Ryan Leavengood <leavengood@gmail.com> · c0bf4d2b
      eric@webkit.org authored
              Reviewed by David Levin.
      
              Implementation of GlyphPage::fill() for Haiku port.
              https://bugs.webkit.org/show_bug.cgi?id=34527
      
              Covered by existing tests.
      
              * platform/graphics/haiku/GlyphPageTreeNodeHaiku.cpp
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54442 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c0bf4d2b
    • kenneth@webkit.org's avatar
      Unreviewed, missed in earlier commit. · f7de5703
      kenneth@webkit.org authored
      Add expected frame flattening results for Qt.
      
      * platform/qt/fast/frames/flattening/frameset-flattening-advanced-expected.txt: Added.
      * platform/qt/fast/frames/flattening/frameset-flattening-grid-expected.txt: Added.
      * platform/qt/fast/frames/flattening/frameset-flattening-simple-expected.txt: Added.
      * platform/qt/fast/frames/flattening/frameset-flattening-subframe-resize-expected.txt: Added.
      * platform/qt/fast/frames/flattening/frameset-flattening-subframesets-expected.txt: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54441 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f7de5703
    • kenneth@webkit.org's avatar
      Implement flattening of framesets · 22a870b3
      kenneth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=32717
      
      Reviewed by Dave Hyatt.
      
      WebCore:
      
      The following patch, builds ontop of Antti Koivisto's frameset
      flattening code from the iPhone source, which itself is based on
      the old Nokia Series 60 source.
      
      Layout tests have been added to test the functionality and the original
      code which has then been fixed to make these pass, as well as support
      frameset grids.
      
      Tests: fast/frames/flattening/frameset-flattening-advanced.html
             fast/frames/flattening/frameset-flattening-grid.html
             fast/frames/flattening/frameset-flattening-simple.html
             fast/frames/flattening/frameset-flattening-subframe-resize.html
             fast/frames/flattening/frameset-flattening-subframesets.html
      
      * page/FrameView.cpp:
      (WebCore::FrameView::layout):
      (WebCore::FrameView::scheduleRelayout):
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      (WebCore::Settings::setFrameSetFlatteningEnabled):
      * page/Settings.h:
      (WebCore::Settings::frameSetFlatteningEnabled):
      * rendering/RenderFrame.cpp:
      (WebCore::RenderFrame::layoutWithFlattening):
      * rendering/RenderFrame.h:
      * rendering/RenderFrameSet.cpp:
      (WebCore::RenderFrameSet::layout):
      (WebCore::RenderFrameSet::positionFramesWithFlattening):
      (WebCore::RenderFrameSet::flattenFrameSet):
      (WebCore::RenderFrameSet::userResize):
      * rendering/RenderFrameSet.h:
      
      WebKit/qt:
      
      Privately export the setFrameSetFlatteningEnabled setting for
      use with the Qt DRT.
      
      * Api/qwebpage.cpp:
      (qt_drt_setFrameSetFlatteningEnabled):
      (QWebPagePrivate::core):
      * Api/qwebpage_p.h:
      
      WebKitTools:
      
      Add support for testing frame flattening with the Qt DRT
      
      * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
      (LayoutTestController::setFrameSetFlatteningEnabled):
      * DumpRenderTree/qt/LayoutTestControllerQt.h:
      
      LayoutTests:
      
      Frameset flattening layout test, plus expected result for Qt.
      
      * fast/frames/flattening/frameset-flattening-advanced.html: Added.
      * fast/frames/flattening/frameset-flattening-grid.html: Added.
      * fast/frames/flattening/frameset-flattening-simple.html: Added.
      * fast/frames/flattening/frameset-flattening-subframe-resize.html: Added.
      * fast/frames/flattening/frameset-flattening-subframesets.html: Added.
      * fast/frames/flattening/resources/frameset-flattening-subframe-resize.html: Added.
      * platform/qt/fast/frames/flattening/frameset-flattening-advanced-expected.txt: Added.
      * platform/qt/fast/frames/flattening/frameset-flattening-grid-expected.txt: Added.
      * platform/qt/fast/frames/flattening/frameset-flattening-simple-expected.txt: Added.
      * platform/qt/fast/frames/flattening/frameset-flattening-subframe-resize-expected.txt: Added.
      * platform/qt/fast/frames/flattening/frameset-flattening-subframesets-expected.txt: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54440 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      22a870b3
    • cjerdonek@webkit.org's avatar
      Provided a way in check-webkit-style to specify filter rules · e11f0f73
      cjerdonek@webkit.org authored
      on a per file or folder basis, via a configuration variable.
      
      Reviewed by Shinichiro Hamaji.
      
      https://bugs.webkit.org/show_bug.cgi?id=33684
      
      * Scripts/webkitpy/style/checker.py:
        - Added _PATH_RULES_SPECIFIER configuration variable.
        - In ProcessorOptions class--
          - Changed the CategoryFilter attribute to FilterConfiguration.
          - Added path parameter to is_reportable().
        - Renamed ArgumentDefaults filter_rules attribute to
          base_filter_rules.
        - Updated ArgumentPrinter class.
        - Added filter rule validation to ArgumentParser (instead of
          in CategoryFilter constructor).
      
      * Scripts/webkitpy/style/checker_unittest.py:
        - Updated unit tests as necessary.
        - Added unit tests for PATH_RULES_SPECIFIER.
      
      * Scripts/webkitpy/style/error_handlers.py:
        - Updated DefaultStyleErrorHandler to use file path when
          calling is_reportable().
      
      * Scripts/webkitpy/style/error_handlers_unittest.py:
        - Updated unit tests as necessary.
      
      * Scripts/webkitpy/style/filter.py:
        - Marked CategoryFilter internal with an underscore.
        - Removed argument validation from CategoryFilter.
        - Added FilterConfiguration class.
      
      * Scripts/webkitpy/style/filter_unittest.py:
        - Updated CategoryFilterTest class.
        - Added FilterConfigurationTest unit tests.
      
      * Scripts/webkitpy/style/processors/cpp.py:
        - Removed _is_test_filename() code.
        - Removed hard-coded path checks from check_include_line().
      
      * Scripts/webkitpy/style/processors/cpp_unittest.py:
        - Removed three unit tests related to exempted files.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54439 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e11f0f73
    • simon.fraser@apple.com's avatar
      2010-02-05 Simon Fraser <simon.fraser@apple.com> · 100b3fd5
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              Changing display type of parent of input on focus causes input field to not receive key events
              https://bugs.webkit.org/show_bug.cgi?id=34620
              <rdar://problem/7584572>
      
              When layout affects a text input, the RenderTextControl gets destroyed and
              recreated, which in turn makes a new innerTextElement. However, if the text field was
              focused, the VisibleSelection is left pointing to the old innerTextElement, so text
              input no longer works.
      
              The fix is to call updateFocusAppearanceSoon() when attaching the input element,
              which will update the selection if necessary.
      
              Test: fast/forms/restore-selection-after-layout.html
      
              * dom/Document.h: Add a paramter to updateFocusAppearanceSoon() and a member variable,
              m_updateFocusAppearanceRestoresSelection, to store its value until the timer fires.
              * dom/Document.cpp:
              (WebCore::Document::Document): Initialize m_updateFocusAppearanceRestoresSelection
              (WebCore::Document::updateFocusAppearanceSoon): New restorePreviousSelection parameter.
              (WebCore::Document::updateFocusAppearanceTimerFired): Pass m_updateFocusAppearanceRestoresSelection down.
              * dom/Element.cpp:
              (WebCore::Element::attach): Call updateFocusAppearanceSoon() with false.
              * dom/Element.h: The updateFocusAppearanceSoonAfterAttach() was undefined.
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::attach): Call document()->updateFocusAppearanceSoon() with true.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54438 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      100b3fd5
    • kenneth@webkit.org's avatar
      [Qt] Apply the command line options as settings to the graphics system. · 117eb99e
      kenneth@webkit.org authored
      Reviewed by Ariya Hidayat.
      
      * QtLauncher/main.cpp:
      (LauncherWindow::LauncherWindow):
      (requiresGraphicsView):
      (LauncherApplication::handleUserOptions):
      * QtLauncher/webview.h:
      (WebViewGraphicsBased::setItemCacheMode):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54437 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      117eb99e
    • pfeldman@chromium.org's avatar
      2010-02-05 Pavel Feldman <pfeldman@chromium.org> · 8cb9c735
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: simplify cookies view, introduce DataGrid::autoSizeColumns.
      
              https://bugs.webkit.org/show_bug.cgi?id=34646
      
              * inspector/front-end/CookieItemsView.js:
              (WebInspector.CookieItemsView):
              (WebInspector.CookieItemsView.prototype.show):
              (WebInspector.CookieItemsView.prototype._update):
              (WebInspector.CookieItemsView.prototype._updateWithCookies):
              (WebInspector.CookieItemsView.prototype._filterCookiesForDomain):
              (WebInspector.CookieItemsView.prototype._createDataGrid):
              (WebInspector.CookieItemsView.prototype._populateDataGrid.expiresCompare):
              (WebInspector.CookieItemsView.prototype._populateDataGrid):
              (WebInspector.CookieItemsView.prototype._createSimpleDataGrid):
              (WebInspector.CookieItemsView.prototype._populateSimpleDataGrid):
              (WebInspector.CookieItemsView.prototype._deleteCookieCallback):
              (WebInspector.CookieItemsView.prototype._refreshButtonClicked):
              * inspector/front-end/DOMStorageItemsView.js:
              (WebInspector.DOMStorageItemsView.prototype._showDOMStorageEntries):
              (WebInspector.DOMStorageItemsView.prototype._dataGridForDOMStorageEntries):
              * inspector/front-end/DataGrid.js:
              (WebInspector.DataGrid):
              (WebInspector.DataGrid.prototype.autoSizeColumns):
              * inspector/front-end/DatabaseQueryView.js:
              (WebInspector.DatabaseQueryView.prototype._queryFinished):
              * inspector/front-end/DatabaseTableView.js:
              (WebInspector.DatabaseTableView.prototype._queryFinished):
              * inspector/front-end/StoragePanel.js:
              (WebInspector.StoragePanel.prototype.dataGridForResult):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54436 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8cb9c735
    • pfeldman@chromium.org's avatar
      2010-02-04 Pavel Feldman <pfeldman@chromium.org> · de3b60df
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: group cookies by frame, show total
              cookies size, allow sorting cookie table.
      
              https://bugs.webkit.org/show_bug.cgi?id=34617
      
              * English.lproj/localizedStrings.js:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::deleteCookie):
              * inspector/front-end/CookieItemsView.js:
              (WebInspector.CookieItemsView):
              (WebInspector.CookieItemsView.prototype.update):
              (WebInspector.CookieItemsView.prototype._updateWithCookies):
              (WebInspector.CookieItemsView.prototype._cookiesForDomain):
              (WebInspector.CookieItemsView.prototype.dataGridForCookies):
              (WebInspector.CookieItemsView.prototype._createNodes):
              (WebInspector.CookieItemsView.prototype._sortData.localeCompare):
              (WebInspector.CookieItemsView.prototype._sortData.numberCompare):
              (WebInspector.CookieItemsView.prototype._sortData.expiresCompare):
              (WebInspector.CookieItemsView.prototype._sortData):
              * inspector/front-end/StoragePanel.js:
              (WebInspector.StoragePanel.prototype.showCookies):
              (WebInspector.CookieSidebarTreeElement):
              (WebInspector.CookieSidebarTreeElement.prototype.onselect):
              (WebInspector.CookieSidebarTreeElement.prototype.get subtitle):
              (WebInspector.CookieSidebarTreeElement.prototype.set subtitle):
              * inspector/front-end/inspector.js:
              (WebInspector.updateResource):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54435 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      de3b60df
    • eric@webkit.org's avatar
      2010-02-05 Maxime Simone <simon.maxime@gmail.com> · 7143c196
      eric@webkit.org authored
              Reviewed by David Levin.
      
              More robust conversion from BString to String for Haiku port.
              https://bugs.webkit.org/show_bug.cgi?id=34527
      
              Covered by existing tests.
      
              * platform/text/haiku/StringHaiku.cpp: Fixed include order, Improved coversion from BString.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54434 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      7143c196
    • sfalken@apple.com's avatar
      Windows build fix. · b095dcfd
      sfalken@apple.com authored
      Reviewed by Adam Roben.
      
      * WebCore.vcproj/WebCore.make:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54430 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b095dcfd
    • ossy@webkit.org's avatar
      Rubber-stamped by Kenneth Rohde Christiansen. · c3a246dc
      ossy@webkit.org authored
      Reviewed by Dirk Schulze.
      
      [Qt] Modifying SVG path dumping to equal to other ports
      https://bugs.webkit.org/show_bug.cgi?id=33784
      
      WebCore: 
      
      * platform/graphics/qt/PathQt.cpp:
      (WebCore::Path::debugString): Path dumping style is aproached to Mac.
      
      LayoutTests: 
      
      Expected files updated.
      
      * platform/qt/svg/css/arrow-with-shadow-expected.txt:
      * platform/qt/svg/css/circle-in-mask-with-shadow-expected.txt:
      * platform/qt/svg/css/clippath-with-shadow-expected.txt:
      * platform/qt/svg/css/mask-with-shadow-expected.txt:
      * platform/qt/svg/css/path-with-shadow-expected.txt:
      * platform/qt/svg/css/stars-with-shadow-expected.txt:
      * platform/qt/svg/custom/empty-mask-expected.txt:
      * platform/qt/svg/custom/gradient-userSpaceOnUse-with-percentage-expected.txt:
      * platform/qt/svg/custom/marker-opacity-expected.txt:
      * platform/qt/svg/custom/marker-referencePoint-expected.txt:
      * platform/qt/svg/custom/marker-strokeWidth-changes-expected.txt:
      * platform/qt/svg/custom/mask-with-default-value-expected.txt:
      * platform/qt/svg/custom/relative-sized-content-expected.txt:
      * platform/qt/svg/custom/relative-sized-deep-shadow-tree-content-expected.txt:
      * platform/qt/svg/custom/relative-sized-shadow-tree-content-expected.txt:
      * platform/qt/svg/custom/relative-sized-shadow-tree-content-with-symbol-expected.txt:
      * platform/qt/svg/custom/relative-sized-use-on-symbol-expected.txt:
      * platform/qt/svg/custom/transformedMaskFails-expected.txt:
      * platform/qt/svg/custom/use-on-symbol-inside-pattern-expected.txt:
      * platform/qt/svg/filters/feComposite-expected.txt:
      * platform/qt/svg/filters/feGaussianBlur-expected.txt:
      * platform/qt/svg/filters/feMerge-expected.txt:
      * platform/qt/svg/filters/feMerge-wrong-input-expected.txt:
      * platform/qt/svg/filters/feOffset-expected.txt:
      * platform/qt/svg/filters/feTile-expected.txt:
      * platform/qt/svg/filters/shadow-on-filter-expected.txt:
      * platform/qt/svg/filters/shadow-on-rect-with-filter-expected.txt:
      * platform/qt/svg/filters/subRegion-one-effect-expected.txt:
      * platform/qt/svg/filters/subRegion-two-effects-expected.txt:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54429 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c3a246dc
    • ggaren@apple.com's avatar
      2010-02-05 Kwang Yul Seo <skyul@company100.net> · 0f6e4ea2
      ggaren@apple.com authored
              Reviewed by Alexey Proskuryakov.
      
              Don't call CRASH() in fastMalloc and fastCalloc when the requested memory size is 0
              https://bugs.webkit.org/show_bug.cgi?id=34569
      
              With USE_SYSTEM_MALLOC=1, fastMalloc and fastCalloc call CRASH()
              if the return value of malloc and calloc is 0.
              
              However, these functions can return 0 when the request size is 0.
              Libc manual says, "If size is 0, then malloc() returns either NULL,
              or a unique pointer value that can later be successfully passed to free()."
              Though malloc returns a unique pointer in most systems,
              0 can be returned in some systems. For instance, BREW's MALLOC returns 0
              when size is 0.
      
              If malloc or calloc returns 0 due to allocation size, increase the size
              to 1 and try again.
      
              * wtf/FastMalloc.cpp:
              (WTF::fastMalloc):
              (WTF::fastCalloc):
      2010-02-05  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
      
              Reviewed by Gustavo Noronha.
      
              Add a GStreamer HTTP/HTTPS source, using WebKit infrastructure
              https://bugs.webkit.org/show_bug.cgi?id=34317
      
              * GNUmakefile.am:
              * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
              (WebCore::mediaPlayerPrivateSourceChangedCallback):
              (WebCore::doGstInit):
              * platform/graphics/gtk/WebKitWebSourceGStreamer.cpp:
              * platform/graphics/gtk/WebKitWebSourceGStreamer.h:
              Add a GStreamer HTTP/HTTPS source, using the WebKit infrastructure.
              This makes sure that referer, cookies, authentication information
              and all kinds of other context are passed to GStreamer for websites
              like Vimeo or YouTube.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54428 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      0f6e4ea2
    • kov@webkit.org's avatar
      2010-02-05 Sebastian Dröge <sebastian.droege@collabora.co.uk> · 99d92be4
      kov@webkit.org authored
              Reviewed by Gustavo Noronha.
      
              Add a GStreamer HTTP/HTTPS source, using WebKit infrastructure
              https://bugs.webkit.org/show_bug.cgi?id=34317
      
              * GNUmakefile.am:
              * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
              (WebCore::mediaPlayerPrivateSourceChangedCallback):
              (WebCore::doGstInit):
              * platform/graphics/gtk/WebKitWebSourceGStreamer.cpp:
              * platform/graphics/gtk/WebKitWebSourceGStreamer.h:
              Add a GStreamer HTTP/HTTPS source, using the WebKit infrastructure.
              This makes sure that referer, cookies, authentication information
              and all kinds of other context are passed to GStreamer for websites
              like Vimeo or YouTube.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54427 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      99d92be4
    • vestbo@webkit.org's avatar
      [Qt] Fix build on Windows · 8c030dbf
      vestbo@webkit.org authored
      Reviewed by Kenneth Rohde Christiansen.
      
      DerivedSources for our API headers failed on Windows,
      due to Windows not accepting ; as a command separator,
      not needing quotes for echo, and needing < and > escaped.
      
      We now detect Windows and set these quote markers and
      escape markers accordingly, as well as use && for separating
      individual commands.
      
      * Api/DerivedSources.pro:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54426 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8c030dbf
    • japhet@chromium.org's avatar
      2010-02-05 Nate Chapin <japhet@chromium.org> · 8cd356e7
      japhet@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              [V8] Clean up code for getting a v8::FunctionTemplate.
              
              https://bugs.webkit.org/show_bug.cgi?id=34606
      
              * bindings/scripts/CodeGeneratorV8.pm: Making GetTemplate() public
              * bindings/v8/V8Binding.cpp:
              (WebCore::configureTemplate):
              * bindings/v8/V8DOMWrapper.cpp: Remove getTemplate(), use V8ClassIndex::getTemplate() instead.
              (WebCore::V8DOMWrapper::getConstructor):
              (WebCore::V8DOMWrapper::instantiateV8Object):
              * bindings/v8/V8DOMWrapper.h:
              (WebCore::V8DOMWrapper::lookupDOMWrapper):
              * bindings/v8/V8Index.cpp: Remove duplicate caching of FunctionTemplates.
              (WebCore::V8ClassIndex::getTemplate):
              * bindings/v8/V8Index.h:
              * bindings/v8/WorkerContextExecutionProxy.cpp:
              (WebCore::WorkerContextExecutionProxy::toV8):
              * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
              (WebCore::v8HTMLAudioElementConstructorCallback):
              (WebCore::V8HTMLAudioElementConstructor::GetTemplate):
              * bindings/v8/custom/V8HTMLAudioElementConstructor.h:
              * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
              (WebCore::v8HTMLImageElementConstructorCallback):
              (WebCore::V8HTMLImageElementConstructor::GetTemplate):
              * bindings/v8/custom/V8HTMLImageElementConstructor.h:
              * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp:
              (WebCore::v8HTMLOptionElementConstructorCallback):
              (WebCore::V8HTMLOptionElementConstructor::GetTemplate):
              * bindings/v8/custom/V8HTMLOptionElementConstructor.h:
              * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
              (WebCore::createInjectedScriptHostV8Wrapper):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54425 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8cd356e7
    • ossy@webkit.org's avatar
      Rubber-stamped by Tor Arne Vestbø. · b055355d
      ossy@webkit.org authored
      [Qt] fast/css/dashboard-regions-attr-crash.html skipped,
      because ENABLE_DASHBOARD_SUPPORT=0 is the default option.
      
      * platform/qt/Skipped:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54424 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b055355d
    • eric@webkit.org's avatar
      2010-02-05 Simon Hausmann <simon.hausmann@nokia.com> · 9227eb2e
      eric@webkit.org authored
              Reviewed by Tor Arne Vestbø.
      
              Add .gitattributes file to tell git about files with Windows linefeeds
              https://bugs.webkit.org/show_bug.cgi?id=34645
      
              On Windows git defaults to "true" for core.autocrlf, meaning all text
              files in the working directory are converted from CRLF to LF on checkin
              time. Some files present in the repository have been checked in with
              CRLF linefeeds and git should not try to convert them. The added
              .gitattributes file tells git to not do any CRLF conversion.
      
              * .gitattributes: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54423 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9227eb2e
    • hausmann@webkit.org's avatar
      [Qt] Build break in QtWebkit on Symbian · 9d799ed9
      hausmann@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=34597
      
      Patch by Siddharth Mathur <siddharth.mathur@nokia.com> on 2010-02-05
      Reviewed by Ariya Hidayat.
      
      * plugins/PluginView.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54422 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9d799ed9
    • yurys@chromium.org's avatar
      2010-02-05 Yury Semikhatsky <yurys@chromium.org> · 995e481f
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              - Use SerializedScriptValue for passing data between injected script and
              inspector frontend.
              - Remove custom JSON implementation from the instpector utility script.
              - Make sure that only objects created in the same ScriptState can be values
              of ScriptObject/Array properties and arguments to ScriptFunctionCall. We don't
              want ScriptObjects to leak between contexts.
              - Use ScriptState of the 'this' object in ScriptFunctionCall instead of passing
              it as additional parameter.
      
              https://bugs.webkit.org/show_bug.cgi?id=33592
      
              * bindings/js/JSInjectedScriptHostCustom.cpp:
              (WebCore::JSInjectedScriptHost::reportDidDispatchOnInjectedScript):
              * bindings/js/ScriptArray.cpp:
              (WebCore::ScriptArray::set):
              * bindings/js/ScriptFunctionCall.cpp:
              (WebCore::ScriptFunctionCall::ScriptFunctionCall):
              (WebCore::ScriptFunctionCall::appendArgument):
              * bindings/js/ScriptFunctionCall.h:
              * bindings/js/ScriptObject.cpp:
              (WebCore::ScriptObject::set):
              * bindings/js/ScriptValue.cpp:
              (WebCore::ScriptValue::serialize):
              (WebCore::ScriptValue::deserialize):
              * bindings/js/ScriptValue.h:
              * bindings/v8/ScriptArray.cpp:
              (WebCore::ScriptArray::set):
              * bindings/v8/ScriptFunctionCall.cpp:
              (WebCore::ScriptFunctionCall::ScriptFunctionCall):
              (WebCore::ScriptFunctionCall::appendArgument):
              * bindings/v8/ScriptFunctionCall.h:
              * bindings/v8/ScriptObject.cpp:
              (WebCore::ScriptObject::set):
              * bindings/v8/ScriptState.h:
              * bindings/v8/ScriptValue.cpp:
              (WebCore::ScriptValue::serialize):
              (WebCore::deserialize):
              * bindings/v8/ScriptValue.h:
              * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
              (WebCore::V8InjectedScriptHost::reportDidDispatchOnInjectedScriptCallback):
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::dispatch):
              (WebCore::InjectedScript::callFrames):
              (WebCore::InjectedScript::wrapForConsole):
              (WebCore::InjectedScript::releaseWrapperObjectGroup):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::reportDidDispatchOnInjectedScript):
              * inspector/InjectedScriptHost.h:
              * inspector/InjectedScriptHost.idl:
              * inspector/InspectorBackend.cpp:
              (WebCore::InspectorBackend::dispatchOnInjectedScript):
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::setFrontendProxyObject):
              (WebCore::InspectorController::didPause):
              (WebCore::InspectorController::didEvaluateForTestInFrontend):
              * inspector/InspectorFrontend.cpp:
              (WebCore::InspectorFrontend::InspectorFrontend):
              (WebCore::InspectorFrontend::newScriptArray):
              (WebCore::InspectorFrontend::newScriptObject):
              (WebCore::InspectorFrontend::populateFrontendSettings):
              (WebCore::InspectorFrontend::updateConsoleMessageExpiredCount):
              (WebCore::InspectorFrontend::addConsoleMessage):
              (WebCore::InspectorFrontend::updateConsoleMessageRepeatCount):
              (WebCore::InspectorFrontend::updateResource):
              (WebCore::InspectorFrontend::removeResource):
              (WebCore::InspectorFrontend::didGetResourceContent):
              (WebCore::InspectorFrontend::updateFocusedNode):
              (WebCore::InspectorFrontend::setAttachedWindow):
              (WebCore::InspectorFrontend::addRecordToTimeline):
              (WebCore::InspectorFrontend::parsedScriptSource):
              (WebCore::InspectorFrontend::failedToParseScriptSource):
              (WebCore::InspectorFrontend::addProfileHeader):
              (WebCore::InspectorFrontend::setRecordingProfile):
              (WebCore::InspectorFrontend::didGetProfileHeaders):
              (WebCore::InspectorFrontend::didGetProfile):
              (WebCore::InspectorFrontend::pausedScript):
              (WebCore::InspectorFrontend::setDocument):
              (WebCore::InspectorFrontend::setDetachedRoot):
              (WebCore::InspectorFrontend::setChildNodes):
              (WebCore::InspectorFrontend::childNodeCountUpdated):
              (WebCore::InspectorFrontend::childNodeInserted):
              (WebCore::InspectorFrontend::childNodeRemoved):
              (WebCore::InspectorFrontend::attributesUpdated):
              (WebCore::InspectorFrontend::didRemoveNode):
              (WebCore::InspectorFrontend::didGetChildNodes):
              (WebCore::InspectorFrontend::didApplyDomChange):
              (WebCore::InspectorFrontend::didGetEventListenersForNode):
              (WebCore::InspectorFrontend::didGetCookies):
              (WebCore::InspectorFrontend::didDispatchOnInjectedScript):
              (WebCore::InspectorFrontend::addDatabase):
              (WebCore::InspectorFrontend::selectDatabase):
              (WebCore::InspectorFrontend::didGetDatabaseTableNames):
              (WebCore::InspectorFrontend::addDOMStorage):
              (WebCore::InspectorFrontend::selectDOMStorage):
              (WebCore::InspectorFrontend::didGetDOMStorageEntries):
              (WebCore::InspectorFrontend::didSetDOMStorageItem):
              (WebCore::InspectorFrontend::didRemoveDOMStorageItem):
              (WebCore::InspectorFrontend::updateDOMStorage):
              (WebCore::InspectorFrontend::addNodesToSearchResult):
              (WebCore::InspectorFrontend::contextMenuItemSelected):
              (WebCore::InspectorFrontend::evaluateForTestInFrontend):
              (WebCore::InspectorFrontend::callSimpleFunction):
              * inspector/InspectorFrontend.h:
              (WebCore::InspectorFrontend::scriptState):
              * inspector/front-end/InjectedScript.js:
              (injectedScriptConstructor):
              (injectedScriptConstructor.):
              * inspector/front-end/InjectedScriptAccess.js:
              (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName.myCallback):
              (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName):
              (InjectedScriptAccess._installHandler):
              * inspector/front-end/inspector.js:
              (WebInspector.pausedScript):
              (WebInspector.addConsoleMessage):
      
      2010-02-05  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Remove unused inmport of ScriptFunctionCall.h
      
              https://bugs.webkit.org/show_bug.cgi?id=33592
      
              * Api/qwebelement.cpp:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54421 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      995e481f
    • vestbo@webkit.org's avatar
      [Qt] Generate convenience headers (QWebView, etc) using qmake · 28786fe1
      vestbo@webkit.org authored
      Reviewed by Simon Hausmann.
      
      In Qt this is done using syncqt, but we use a pro-file instead
      that generates makefile-rules for each of the extra headers.
      
      These extra headers are installed alongside the normal headers.
      
      WebCore:
      
      * WebCore.pro: Use headers.pri based on DerivedSources instead
      of the one previously checked in in the source tree.
      
      WebKit/qt:
      
      * Api/DerivedSources.pro: Added. List of headers + pro file magic
      * Api/headers.pri: Removed, list of headers is now in the above file
      
      WebKitTools:
      
      * Scripts/webkitdirs.pm: Run qmake and make on new API-DerivedSources
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54420 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      28786fe1
    • zoltan@webkit.org's avatar
      Don't call CRASH() in fastMalloc and fastCalloc when the requested memory size is 0 · 4fb1c034
      zoltan@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=34569
      
      Patch by Kwang Yul Seo <skyul@company100.net> on 2010-02-05
      Reviewed by Alexey Proskuryakov.
      
      With USE_SYSTEM_MALLOC=1, fastMalloc and fastCalloc call CRASH()
      if the return value of malloc and calloc is 0.
              
      However, these functions can return 0 when the request size is 0.
      Libc manual says, "If size is 0, then malloc() returns either NULL,
      or a unique pointer value that can later be successfully passed to free()."
      Though malloc returns a unique pointer in most systems,
      0 can be returned in some systems. For instance, BREW's MALLOC returns 0
      when size is 0.
      
      If malloc or calloc returns 0 due to allocation size, increase the size
      to 1 and try again.
      
      * wtf/FastMalloc.cpp:
      (WTF::fastMalloc):
      (WTF::fastCalloc):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54419 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      4fb1c034
    • abecsi@webkit.org's avatar
      2010-02-05 Andras Becsi <abecsi@webkit.org> · 9c85e808
      abecsi@webkit.org authored
              Unreviewed typo fix.
      
              Fix wrong whitespace alignment introduced in r54342.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54418 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9c85e808
    • eric@webkit.org's avatar
      2010-02-05 Mikhail Naganov <mnaganov@chromium.org> · bb17ae4c
      eric@webkit.org authored
              Reviewed by Pavel Feldman.
      
              Enable JAVASCRIPT_DEBUGGER in chromium port.
      
              https://bugs.webkit.org/show_bug.cgi?id=34638
      
              * page/Console.cpp:
              * page/Console.h:
              * page/Console.idl:
      2010-02-05  Mikhail Naganov  <mnaganov@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Enable JAVASCRIPT_DEBUGGER in chromium port.
      
              https://bugs.webkit.org/show_bug.cgi?id=34638
      
              * features.gypi:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54417 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bb17ae4c
    • kenneth@webkit.org's avatar
      Rubberstamped by Oliver Hunt. · c696ef82
      kenneth@webkit.org authored
      [Qt] Make it possible to choose whether the launcher should
      use the traditional QWidget based QWebView or the newer
      QGraphics based QGraphicsWebView on a QGraphicsView.
      
      * QtLauncher/main.cpp:
      (LauncherWindow::LauncherWindow):
      (LauncherWindow::eventFilter):
      (LauncherWindow::loadStarted):
      (LauncherWindow::print):
      (LauncherWindow::screenshot):
      (LauncherWindow::setEditable):
      (LauncherWindow::setupUI):
      (main):
      * QtLauncher/webview.cpp:
      (WebViewGraphicsBased::WebViewGraphicsBased):
      (WebViewGraphicsBased::resizeEvent):
      (GraphicsWebView::mousePressEvent):
      (GraphicsWebView::contextMenuEvent):
      * QtLauncher/webview.h:
      (WebViewTraditional::WebViewTraditional):
      (GraphicsWebView::GraphicsWebView):
      (WebViewGraphicsBased::setPage):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54416 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c696ef82
    • eric@webkit.org's avatar
      2010-02-05 Pavel Feldman <pfeldman@chromium.org> · 90e6d0c7
      eric@webkit.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: Tab width for javascript source is 8, should be 4
      
              https://bugs.webkit.org/show_bug.cgi?id=31248
      
              * inspector/front-end/SourceFrame.js:
              (WebInspector.SourceFrame):
              * inspector/front-end/TextEditorModel.js:
              (WebInspector.TextEditorModel.prototype.set replaceTabsWithSpaces):
              (WebInspector.TextEditorModel.prototype._innerSetText):
              (WebInspector.TextEditorModel.prototype._replaceTabsIfNeeded):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54415 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      90e6d0c7
    • ukai@chromium.org's avatar
      2010-02-05 Fumitoshi Ukai <ukai@chromium.org> · e543d4f2
      ukai@chromium.org authored
              Reviewed by Alexey Proskuryakov.
      
              send() should return false, after frame that opened a WebSokcet is detached
              https://bugs.webkit.org/show_bug.cgi?id=34630
      
              * websocket/tests/send-after-close-on-unload-expected.txt: Added.
              * websocket/tests/send-after-close-on-unload.html: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54414 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e543d4f2
    • tony@chromium.org's avatar
      2010-02-05 Tony Chang <tony@chromium.org> · e387c2e0
      tony@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=24872
              Add a test to make sure copying from a list and pasting into a list
              keeps the list at the same indention level rather than nesting.
      
              * editing/pasteboard/paste-list-002-expected.txt: Added.
              * editing/pasteboard/paste-list-002.html: Added.
      2010-02-05  Tony Chang  <tony@chromium.org>
      
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=24872
              When pasting a list into another list should not indent another level.
              If the cursor is at the beginning of the line, it should insert the
              list items before the current list item.  If the cursor is at the end
              of the line, it should insert the list items after the current list item.
      
              This matches Firefox and IE and makes the common activity of reordering a list
              work as expected.
      
              This also adds a small helper method (isListItem) to htmlediting.h.
      
              Test: editing/pasteboard/paste-list-002.html
      
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::doApply):
              (WebCore::ReplaceSelectionCommand::insertAsListItems):
              * editing/ReplaceSelectionCommand.h:
              * editing/htmlediting.cpp:
              (WebCore::isListItem):
              (WebCore::appendedSublist):
              * editing/htmlediting.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54413 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e387c2e0
    • vestbo@webkit.org's avatar
      [Qt] Make 'make -f Makefile.DerivedSources qmake' work · 8387aafd
      vestbo@webkit.org authored
      Reviewed by Lars Knoll.
      
      Previously this target ended up generating a file named
      Makefile.DerivedSources.DerivedSources, and so on.
      
      * DerivedSources.pro:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54412 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8387aafd