1. 23 Sep, 2011 1 commit
    • commit-queue@webkit.org's avatar
      .: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests · 90680248
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      Tests: fast/dom/scroll-element-to-rect-centered.html
             fast/dom/scroll-element-to-rect.html
      
      * WebCore.exp.in:
      * page/FrameView.cpp:
      (WebCore::FrameView::scrollElementToRect):
      * page/FrameView.h:
      * testing/Internals.cpp:
      (WebCore::Internals::scrollElementToRect):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit/chromium: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      * public/WebView.h:
      (WebKit::WebView::scrollFocusedNodeIntoRect):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::scrollFocusedNodeIntoRect):
      
      Source/WebKit2: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      * fast/dom/scroll-element-to-rect-centered-expected.txt: Added.
      * fast/dom/scroll-element-to-rect-centered.html: Added.
      * fast/dom/scroll-element-to-rect-expected.txt: Added.
      * fast/dom/scroll-element-to-rect.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90680248
  2. 21 Sep, 2011 1 commit
    • jchaffraix@webkit.org's avatar
      Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled · 3b543a32
      jchaffraix@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=68133
      
      Reviewed by Darin Adler.
      
      .:
      
      * Source/autotools/symbols.filter: Added the mangled symbols needed for window.internals
      
      Source/WebCore:
      
      Tests: fast/css/webkit-mask-crash-fieldset-legend.html
             fast/css/webkit-mask-crash-figure.html
             fast/css/webkit-mask-crash-table.html
             fast/css/webkit-mask-crash-td-2.html
             fast/css/webkit-mask-crash-td.html
      
      GraphicsContext::getCTM crashes if called with a GraphicsContext that has painting
      disabled. RenderBox::paintMaskImages would thus crash if called in this condition.
      
      This change just modifies the different GraphicsContext::getCTM method to bail early
      if painting is disabled on the GraphicsContext. The rest of the change is exposing
      paintControlTints that exposes this.
      
      * WebCore.exp.in: Added symbols of the newly export window.internals function.
      
      * page/FrameView.cpp:
      (WebCore::FrameView::updateControlTints): Split this function in 2 so that
      I can expose the internal paintControlTints.
      
      (WebCore::FrameView::paintControlTints):
      This is the one exposed to Internals as we want to be testable regardless of
      whether the platform supports control tints.
      
      * page/FrameView.h: Added paintControlTints.
      
      * testing/Internals.cpp:
      (WebCore::Internals::paintControlTints):
      * testing/Internals.h:
      * testing/Internals.idl:
      Added a way to force a fake painting so that we can easily reproduce the bugs.
      
      * platform/graphics/cairo/GraphicsContextCairo.cpp:
      (WebCore::GraphicsContext::getCTM):
      * platform/graphics/cg/GraphicsContextCG.cpp:
      (WebCore::GraphicsContext::getCTM):
      * platform/graphics/qt/GraphicsContextQt.cpp:
      (WebCore::GraphicsContext::getCTM):
      * platform/graphics/skia/GraphicsContextSkia.cpp:
      (WebCore::GraphicsContext::getCTM):
      * platform/graphics/wince/GraphicsContextWinCE.cpp:
      (WebCore::GraphicsContext::getCTM):
      * platform/graphics/wx/GraphicsContextWx.cpp:
      (WebCore::GraphicsContext::getCTM):
      Fixed all our back-end to exit early if painting is disabled.
      
      Source/WebKit2:
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      Exported the new FrameView::paintControlTints function.
      
      LayoutTests:
      
      Those tests checks that we do not crash when calling internals.paintControlTints.
      
      * platform/mac/Skipped: Skipped 2 tests as they are hitting an ASSERT unrelated to
      this change on Mac.
      
      * fast/css/webkit-mask-crash-fieldset-legend-expected.txt: Added.
      * fast/css/webkit-mask-crash-fieldset-legend.html: Added.
      * fast/css/webkit-mask-crash-figure-expected.txt: Added.
      * fast/css/webkit-mask-crash-figure.html: Added.
      * fast/css/webkit-mask-crash-table-expected.txt: Added.
      * fast/css/webkit-mask-crash-table.html: Added.
      * fast/css/webkit-mask-crash-td-2-expected.txt: Added.
      * fast/css/webkit-mask-crash-td-2.html: Added.
      * fast/css/webkit-mask-crash-td-expected.txt: Added.
      * fast/css/webkit-mask-crash-td.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3b543a32
  3. 08 Sep, 2011 1 commit
    • wjmaclean@chromium.org's avatar
      [chromium] Add backend compositor support for rescaling (zooming) textures during zoom animation. · bcdc0689
      wjmaclean@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66472
      
      Source/WebCore:
      
      This patch contains plumbing from Internals to WebViewImpl that can be removed
      at a later time when the zoom animator code is complete.
      
      Reviewed by James Robinson.
      
      Test: platform/chromium/compositing/zoom-animator-scale-test.html
      
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      * page/Settings.h:
      (WebCore::Settings::setZoomAnimatorScale):
      (WebCore::Settings::zoomAnimatorScale):
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::LayerRendererChromium):
      (WebCore::LayerRendererChromium::drawLayersInternal):
      * platform/graphics/chromium/LayerRendererChromium.h:
      (WebCore::LayerRendererChromium::setZoomAnimatorScale):
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::CCLayerTreeHost):
      (WebCore::CCLayerTreeHost::commitTo):
      (WebCore::CCLayerTreeHost::setZoomAnimatorScale):
      (WebCore::CCLayerTreeHost::updateLayers):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
      (WebCore::CCLayerTreeHostImpl::setZoomAnimatorScale):
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
      * testing/Internals.cpp:
      (WebCore::Internals::setZoomAnimatorScale):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit/chromium:
      
      This patch contains plumbing from Internals to WebViewImpl that can be removed
      at a later time when the zoom animator code is complete.
      
      Reviewed by James Robinson.
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::setZoomLevel):
      (WebKit::WebViewImpl::setRootLayerNeedsDisplay):
      
      LayoutTests:
      
      Initial tests for zoomAnimatorChromium backend.
      
      Reviewed by James Robinson.
      
      * platform/chromium-gpu-linux/platform/chromium/compositing/zoom-animator-scale-test-expected.png: Added.
      * platform/chromium-gpu-linux/platform/chromium/compositing/zoom-animator-scale-test-expected.txt: Added.
      * platform/chromium/compositing/zoom-animator-scale-test.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcdc0689
  4. 07 Sep, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Add test infrastructure to test rubber-banding overhang drawing along with... · a6e510e0
      commit-queue@webkit.org authored
      Add test infrastructure to test rubber-banding overhang drawing along with layout tests for existing Chromium Mac overhang drawing in the non-gpu path.
      https://bugs.webkit.org/show_bug.cgi?id=67511
      
      Patch by Alexei Svitkine <asvitkine@chromium.org> on 2011-09-07
      Reviewed by Dimitri Glazkov.
      
      .:
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      Tests: platform/chromium-mac/rubberbanding/overhang-e.html
             platform/chromium-mac/rubberbanding/overhang-n.html
             platform/chromium-mac/rubberbanding/overhang-ne.html
             platform/chromium-mac/rubberbanding/overhang-nw.html
             platform/chromium-mac/rubberbanding/overhang-s.html
             platform/chromium-mac/rubberbanding/overhang-se.html
             platform/chromium-mac/rubberbanding/overhang-sw.html
             platform/chromium-mac/rubberbanding/overhang-w.html
      
      * WebCore.exp.in:
      * platform/ScrollableArea.h:
      * testing/Internals.cpp:
      (WebCore::Internals::setScrollViewPosition):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2:
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests:
      
      * platform/chromium-mac/rubberbanding: Added.
      * platform/chromium-mac/rubberbanding/overhang-e-expected.png: Added.
      * platform/chromium-mac/rubberbanding/overhang-e-expected.txt: Added.
      * platform/chromium-mac/rubberbanding/overhang-e.html: Added.
      * platform/chromium-mac/rubberbanding/overhang-n-expected.png: Added.
      * platform/chromium-mac/rubberbanding/overhang-n-expected.txt: Added.
      * platform/chromium-mac/rubberbanding/overhang-n.html: Added.
      * platform/chromium-mac/rubberbanding/overhang-ne-expected.png: Added.
      * platform/chromium-mac/rubberbanding/overhang-ne-expected.txt: Added.
      * platform/chromium-mac/rubberbanding/overhang-ne.html: Added.
      * platform/chromium-mac/rubberbanding/overhang-nw-expected.png: Added.
      * platform/chromium-mac/rubberbanding/overhang-nw-expected.txt: Added.
      * platform/chromium-mac/rubberbanding/overhang-nw.html: Added.
      * platform/chromium-mac/rubberbanding/overhang-s-expected.png: Added.
      * platform/chromium-mac/rubberbanding/overhang-s-expected.txt: Added.
      * platform/chromium-mac/rubberbanding/overhang-s.html: Added.
      * platform/chromium-mac/rubberbanding/overhang-se-expected.png: Added.
      * platform/chromium-mac/rubberbanding/overhang-se-expected.txt: Added.
      * platform/chromium-mac/rubberbanding/overhang-se.html: Added.
      * platform/chromium-mac/rubberbanding/overhang-sw-expected.png: Added.
      * platform/chromium-mac/rubberbanding/overhang-sw-expected.txt: Added.
      * platform/chromium-mac/rubberbanding/overhang-sw.html: Added.
      * platform/chromium-mac/rubberbanding/overhang-w-expected.png: Added.
      * platform/chromium-mac/rubberbanding/overhang-w-expected.txt: Added.
      * platform/chromium-mac/rubberbanding/overhang-w.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6e510e0
  5. 06 Sep, 2011 2 commits
    • rniwa@webkit.org's avatar
      fast/forms/suggested-value-crash.html crashes on Windows · 8f35f0e6
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67688
      
      Reviewed by Adam Barth.
      
      Source/WebCore: 
      
      The crash was caused because functions in internals were accessing uninitialized QualifiedNames.
      Fixed the bug by avoiding to link to inputTag and textareaTag. Instead, we resort to toInputElement
      and string comparison.
      
      * testing/Internals.cpp:
      (WebCore::Internals::wasLastChangeUserEdit):
      (WebCore::Internals::suggestedValue):
      (WebCore::Internals::setSuggestedValue):
      
      Source/WebKit2: 
      
      Removed sybmols for inputTag and textareaTag. Added the symbol for StringImpl::equal.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8f35f0e6
    • rniwa@webkit.org's avatar
      REGRESSION(r94274): FormManagerTest.PreviewForm and FillFormNonEmptyField fail on chromium · 73688cf4
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67453
      
      Reviewed by Kent Tamura.
      
      .: 
      
      Add symbols for internals.
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore: 
      
      Fixed the bug by updating inner text value in setSuggestedValue.
      
      Also added a suggestedValue and setSuggestedValue on window.internals for testing purposes.
      
      Test: fast/forms/suggested-value.html
      
      * WebCore.exp.in:
      * testing/Internals.cpp:
      (WebCore::Internals::suggestedValue):
      (WebCore::Internals::setSuggestedValue):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit/chromium: 
      
      Chromium code incorrectly calls Node::isFocusable without updating layout, and was hitting assertions.
      Fix the assertion failure (and a potential crash) by updating layout in WebCore::isFocusable.
      
      * src/WebNode.cpp:
      (WebKit::WebNode::isFocusable):
      
      Source/WebKit2: 
      
      Add symbols for internals.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests: 
      
      Added a regression test to ensure HTMLInputElement updates its inner text value when the suggested value is set.
      
      * fast/forms/suggested-value-expected.txt: Added.
      * fast/forms/suggested-value.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94586 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73688cf4
  6. 31 Aug, 2011 1 commit
    • keishi@webkit.org's avatar
      input color: onchange event is not fired when changing color from color chooser · 0a1f22e9
      keishi@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66848
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Test: fast/forms/color/input-color-onchange-event.html
      
      * WebCore.exp.in: Added calls used in Internals.cpp.
      * html/ColorInputType.cpp:
      (WebCore::ColorInputType::colorSelected): Dispatch change event.
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::connectToColorChooser): Added. Called from Internals::connectColorChooserClient.
      * html/HTMLInputElement.h:
      * testing/Internals.cpp:
      (WebCore::Internals::connectColorChooserClient): Added. Connects element as client to color chooser.
      (WebCore::Internals::selectColorInColorChooser): Added. Simulate color selection in color chooser.
      * testing/Internals.h:
      * testing/Internals.idl:
      
      LayoutTests:
      
      * fast/forms/color/input-color-onchange-event-expected.txt: Added.
      * fast/forms/color/input-color-onchange-event.html: Added. Tests if change event is fired when user selects color from color chooser.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0a1f22e9
  7. 30 Aug, 2011 1 commit
  8. 29 Aug, 2011 1 commit
    • rniwa@webkit.org's avatar
      Add a test for lastChangeWasUserEdit in HTMLInputElement and HTMLTextAreaElement · b3eabcbb
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67173
      
      Reviewed by Darin Adler.
      
      Source/WebCore: 
      
      Exposed HTMLInputElement::lastChangeWasUserEdit and HTMLTextAreaElement::lastChangeWasUserEdit
      via internals.wasLastChangeUserEdit(Element*, ExceptionCode&). The first argument must be
      an input element or a textarea element lastChangeWasUserEdit is called upon.
      
      Test: fast/forms/textfield-lastchange-was-useredit.html
      
      * testing/Internals.cpp:
      (WebCore::Internals::wasLastChangeUserEdit):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      LayoutTests: 
      
      Added some basic test for HTMLInputElement::lastChangeWasUserEdit and
      HTMLTextAreaElement::lastChangeWasUserEdit.
      
      * fast/forms/textfield-lastchange-was-useredit-expected.txt: Added.
      * fast/forms/textfield-lastchange-was-useredit.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3eabcbb
  9. 23 Aug, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Added support for momentarily revealing last typed character in password input. · dbd63aa3
      commit-queue@webkit.org authored
      Code change was partially based on Apple's iOS code and Samuel Nevala's work.
      https://bugs.webkit.org/show_bug.cgi?id=32509
      
      Patch by Chang Shu <cshu@webkit.org> on 2011-08-23
      Reviewed by Alexey Proskuryakov.
      
      Source/WebCore:
      
      * editing/InsertIntoTextNodeCommand.cpp:
      (WebCore::InsertIntoTextNodeCommand::doApply):
      * rendering/RenderText.cpp:
      (WebCore::SecureTextTimer::SecureTextTimer):
      (WebCore::SecureTextTimer::restartWithNewText):
      (WebCore::SecureTextTimer::invalidate):
      (WebCore::SecureTextTimer::lastTypedCharacterOffset):
      (WebCore::SecureTextTimer::fired):
      (WebCore::RenderText::willBeDestroyed):
      (WebCore::RenderText::setTextInternal):
      (WebCore::RenderText::secureText):
      (WebCore::RenderText::momentarilyRevealLastTypedCharacter):
      * rendering/RenderText.h:
      (WebCore::RenderText::isSecure):
      * testing/Internals.cpp:
      (WebCore::Internals::setPasswordEchoEnabled): Fixed some silly coding in Internals.
      (WebCore::Internals::setPasswordEchoDurationInSeconds):
      (WebCore::Internals::reset):
      
      LayoutTests:
      
      Updated failed expected files.
      
      * editing/input/password-echo-passnode-expected.txt:
      * editing/input/password-echo-passnode2-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dbd63aa3
  10. 19 Aug, 2011 1 commit
    • morrita@google.com's avatar
      .: Spell-checking doesn't recognize word boundaries on contests inserted by... · e6e56a6f
      morrita@google.com authored
      .: Spell-checking doesn't recognize word boundaries on contests inserted by execCommand('insertHTML')
      https://bugs.webkit.org/show_bug.cgi?id=65902
      
      Reviewed by Ryosuke Niwa.
      
      Add export for window.internals object.
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore: Spell-checking doesn't recognize word boundaries on contests inserted by execCommand('insertHTML')
      https://bugs.webkit.org/show_bug.cgi?id=65902
      
      Reviewed by Ryosuke Niwa.
      
      markMisspellingsAndBadGrammar() was using markSpelling() and markBadGrammar().
      But these are low-level API and caller should take care of word boundary.
      This change replaced these call with overloaded version of markMisspellingsAndBadGrammar(),
      which handles word boundary correctly.
      
      Test: editing/spelling/spelling-insert-html.html
      
      * WebCore.exp.in:
      * editing/Editor.cpp:
      (WebCore::Editor::markMisspellingsAndBadGrammar):
      * testing/Internals.cpp:
      (WebCore::Internals::markerCountOf): Added.
      (WebCore::Internals::markedRangeAt): Added.
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2: Spell-checking against execCommand() inserted HTML doesn't care word boundary.
      https://bugs.webkit.org/show_bug.cgi?id=65902
      
      Reviewed by Ryosuke Niwa.
      
      Add exports for window.internals object.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests: Spell-checking doesn't recognize word boundaries on contests inserted by execCommand('insertHTML')
      https://bugs.webkit.org/show_bug.cgi?id=65902
      
      Reviewed by Ryosuke Niwa.
      
      Existing expectation was wrong because of some markers on substrings of words.
      With this fix, Editor now rejects such markers.
      
      * editing/spelling/spelling-insert-html-expected.txt: Added.
      * editing/spelling/spelling-insert-html.html: Added.
      * platform/mac/editing/pasteboard/merge-after-delete-1-expected.png:
      * platform/mac/editing/pasteboard/merge-after-delete-2-expected.png:
      * platform/mac/editing/pasteboard/merge-after-delete-expected.png:
      * platform/mac/editing/pasteboard/merge-end-blockquote-expected.png:
      * platform/mac/editing/pasteboard/merge-end-list-expected.png:
      * platform/mac/editing/pasteboard/merge-end-table-expected.png:
      * platform/mac/editing/pasteboard/paste-text-008-expected.png:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6e56a6f
  11. 18 Aug, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Add support of setPasswordEchoEnabled and setPasswordEchoDuration for password echo feature · c8019c6e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66052
      
      Patch by Chang Shu <cshu@webkit.org> on 2011-08-18
      Reviewed by Alexey Proskuryakov.
      
      Source/WebCore:
      
      Added runtime settings in WebCore.
      Added support in window.internals for testing.
      
      Tests: editing/input/password-echo-passnode.html
             editing/input/password-echo-passnode2.html
             editing/input/password-echo-passnode3.html
             editing/input/password-echo-textnode.html
      
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      * page/Settings.h:
      (WebCore::Settings::setPasswordEchoEnabled):
      (WebCore::Settings::passwordEchoEnabled):
      (WebCore::Settings::setPasswordEchoDurationInSeconds):
      (WebCore::Settings::passwordEchoDurationInSeconds):
      * testing/Internals.cpp:
      (WebCore::Internals::Internals):
      (WebCore::Internals::setPasswordEchoEnabled):
      (WebCore::Internals::setPasswordEchoDurationInSeconds):
      (WebCore::Internals::reset):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit/qt:
      
      Enable password echo under the build flag.
      
      * Api/qwebsettings.cpp:
      (QWebSettingsPrivate::apply):
      
      LayoutTests:
      
      Added tests.
      
      * editing/input/password-echo-passnode-expected.txt: Added.
      * editing/input/password-echo-passnode.html: Added.
      * editing/input/password-echo-passnode2-expected.txt: Added.
      * editing/input/password-echo-passnode2.html: Added.
      * editing/input/password-echo-passnode3-expected.txt: Added.
      * editing/input/password-echo-passnode3.html: Added.
      * editing/input/password-echo-textnode-expected.txt: Added.
      * editing/input/password-echo-textnode.html: Added.
      * editing/input/resources: Added.
      * editing/input/resources/password-echo.js: Added.
      (secureChar):
      (secureText):
      (log):
      (assert):
      (run.else):
      (run):
      (init):
      * platform/wk2/Skipped: No support yet.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8019c6e
  12. 17 Aug, 2011 1 commit
    • chang.shu@nokia.com's avatar
      2011-08-16 Chang Shu <cshu@webkit.org> · 0999712a
      chang.shu@nokia.com authored
              Support reset in WebCore::Internals
              https://bugs.webkit.org/show_bug.cgi?id=66307
      
              Reviewed by Dimitri Glazkov.
      
              New tests will be added when function reset is implemented.
      
              Added framework code in WebCoreTestSupport. The real implementation of
              Internals::reset() depends on the need from the settings that require a reset.
      
              * testing/Internals.cpp:
              (WebCore::Internals::reset):
              * testing/Internals.h:
              * testing/js/WebCoreTestSupport.cpp:
              (WebCoreTestSupport::resetInternalsObject):
              * testing/js/WebCoreTestSupport.h:
              * testing/v8/WebCoreTestSupport.cpp:
              (WebCoreTestSupport::resetInternalsObject):
              * testing/v8/WebCoreTestSupport.h:
      
      2011-08-16  Chang Shu  <cshu@webkit.org>
      
              Support reset in WebCore::Internals
              https://bugs.webkit.org/show_bug.cgi?id=66307
      
              Reviewed by Dimitri Glazkov.
      
              Added framework code in WebKit.
      
              * public/WebTestingSupport.h:
              * src/WebTestingSupport.cpp:
              (WebKit::WebTestingSupport::resetInternalsObject):
      
      2011-08-16  Chang Shu  <cshu@webkit.org>
      
              Support reset in WebCore::Internals
              https://bugs.webkit.org/show_bug.cgi?id=66307
      
              Reviewed by Dimitri Glazkov.
      
              Added framework code in WebKit.
      
              * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
              (DumpRenderTreeSupportQt::resetInternalsObject):
              * WebCoreSupport/DumpRenderTreeSupportQt.h:
      
      2011-08-16  Chang Shu  <cshu@webkit.org>
      
              Support reset in WebCore::Internals
              https://bugs.webkit.org/show_bug.cgi?id=66307
      
              Reviewed by Dimitri Glazkov.
      
              Added call to resetInternalsObject in DRT.
      
              * DumpRenderTree/chromium/TestShell.cpp:
              (TestShell::resetTestController):
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (resetWebViewToConsistentStateBeforeTesting):
              * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
              (WebCore::WebPage::resetSettings):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0999712a
  13. 09 Aug, 2011 1 commit
    • enne@google.com's avatar
      Add testing for --force-compositing-mode to windows.internal · 4d373182
      enne@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=65777
      
      Reviewed by Adam Barth.
      
      .:
      
      Add exports for Document::settings().
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      Test: platform/chromium/compositing/force-compositing-mode/force-composite-empty.html
      
      Move initial initialization to settings caching function so that RLC
      picks up changes to the force compositing mode flag.
      
      * WebCore.exp.in:
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::RenderLayerCompositor):
      (WebCore::RenderLayerCompositor::cacheAcceleratedCompositingFlags):
      (WebCore::RenderLayerCompositor::updateCompositingLayers):
      * testing/Internals.cpp:
      (WebCore::Internals::setForceCompositingMode):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2:
      
      Add exports for Document::settings().
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests:
      
      Add empty page to test that the root gets a graphics layer.
      
      * platform/chromium/compositing/force-compositing-mode/force-composite-empty-expected.txt: Added.
      * platform/chromium/compositing/force-compositing-mode/force-composite-empty.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92697 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4d373182
  14. 01 Aug, 2011 2 commits
    • commit-queue@webkit.org's avatar
      .: REGRESSION (r39725?): Resources removed from document can not be freed... · 9acd5fe0
      commit-queue@webkit.org authored
      .: REGRESSION (r39725?): Resources removed from document can not be freed until the document is deleted
      https://bugs.webkit.org/show_bug.cgi?id=61006
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-08-01
      Reviewed by Antti Koivisto.
      
      Update exports for test harness.
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore: REGRESSION (r39725?): Resources removed from document can not be freed
      until the document is deleted
      https://bugs.webkit.org/show_bug.cgi?id=61006
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-08-01
      Reviewed by Antti Koivisto.
      
      Upon completing a load start a Timer to iterate through
      CachedResourceLoader's m_documentResources map to check for any items
      that have only one reference (thus being the reference in the map
      itself). The map should really be weak, but because the
      CachedResourceHandle achieves bookkeeping work in addition to
      reference counting, this is a simpler and more localized way to free
      the used memory while maintaining the other behaviour (when
      CachedResource is used as proxy).
      
      With this patch the testcase at
      https://bugs.webkit.org/attachment.cgi?id=93850 should no longer
      consume 400MB of ram on load. Test added for crash discovered in
      previous revision, but no tests for memory usage.
      
      Test: http/tests/inspector/network/disabled-cache-crash.html
      
      * WebCore.exp.in:
      * loader/cache/CachedResource.h:
      (WebCore::CachedResource::hasOneHandle):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::CachedResourceLoader):
      (WebCore::CachedResourceLoader::loadDone):
      (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
      * loader/cache/CachedResourceLoader.h:
      * testing/Internals.cpp:
      (WebCore::Internals::disableMemoryCache):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2: REGRESSION (r39725?): Resources removed from document can not be freed until the document is deleted
      https://bugs.webkit.org/show_bug.cgi?id=61006
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-08-01
      Reviewed by Antti Koivisto.
      
      Update exports for test harness.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests: https://bugs.webkit.org/show_bug.cgi?id=61006
      
      Test for CachedResourceLoader. Not caused by cache-disabling but very
      difficult to reproduce when cache is active, so use cache disable in
      inspector to exercise code.
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-08-01
      Reviewed by Antti Koivisto.
      
      * http/tests/inspector/network/disabled-cache-crash-expected.txt: Added.
      * http/tests/inspector/network/disabled-cache-crash.html: Added.
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92143 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9acd5fe0
    • hayato@chromium.org's avatar
      Add support for getting an element in shadow root by its id into a window.internals object. · 173c1ffd
      hayato@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=64587
      
      Reviewed by Hajime Morita.
      
      .:
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      Test: fast/dom/shadow/get-element-by-id-in-shadow-root.html
      
      * WebCore.exp.in:
      * testing/Internals.cpp:
      (WebCore::Internals::getElementByIdInShadowRoot):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2:
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests:
      
      * fast/dom/shadow/get-element-by-id-in-shadow-root-expected.txt: Added.
      * fast/dom/shadow/get-element-by-id-in-shadow-root.html: Added.
      * fast/dom/shadow/resources/create-dom.js: Added.
      (createShadow):
      (createDom):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92124 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      173c1ffd
  15. 30 Jul, 2011 1 commit
    • enrica@apple.com's avatar
      REGRESSION: culledInlineAbsoluteRects needs to translate a 0,0 point to absolute · 2e8c28fe
      enrica@apple.com authored
      coordinates so that the top left position is accurate.
      https://bugs.webkit.org/show_bug.cgi?id=65419
      <rdar://problem/9408862>
      
      Source/WebCore: 
      
      This patch fixes a regression introduced in r83075.
      Make sure that culledInlineAbsoluteRects still does
      a translation of a 0,0 point to absolute coordinates so that the top left position is
      accurate.
      This code path could not be tested via JavaScript. The patch
      extends the Internals object to be able to test this case.
      
      Reviewed by Dan Bernstein.
      
      Test: fast/inline/skipped-whitespace-boundingBox.html
      
      * WebCore.exp.in: Added some exports.
      * rendering/RenderInline.cpp:
      (WebCore::RenderInline::culledInlineAbsoluteRects):
      * testing/Internals.cpp:
      (WebCore::Internals::boundingBox):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      LayoutTests: 
      
      Reviewed by Dan Bernstein.
      
      * fast/inline/skipped-whitespace-boundingBox-expected.txt: Added.
      * fast/inline/skipped-whitespace-boundingBox.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e8c28fe
  16. 18 Jul, 2011 1 commit
    • morrita@google.com's avatar
      .: [ShadowContentElement] forwarded node should be able to access its hosting content element. · d534c6d8
      morrita@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=64251
      
      Reviewed by Dimitri Glazkov.
      
      Added GTK symbols for new window.internals methods.
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore: [ShadowContentElement] forwarded node should be able to access its hosting content element.
      https://bugs.webkit.org/show_bug.cgi?id=64251
      
      Reviewed by Dimitri Glazkov.
      
      - Introduced ShadowInclusionSet to manage included nodes to its includer content element.
        ShadowInclusionSet instance is owned by ShadowRoot.
      - Updated the set on inclusion list changes.
      - Used the set to retrieve the content element of NodeRenderingContext.
      
      There are also related refactoring and cleanup:
      - Renamed NodeRenderingContext::m_contentElement to m_includer
      - ShadowContentSelector::m_activeElement is no longer used, thus removed.
      
      Test: fast/dom/shadow/content-element-includer.html
      
      * WebCore.exp.in:
      * dom/NodeRenderingContext.cpp:
      (WebCore::NodeRenderingContext::NodeRenderingContext):
      (WebCore::NodeRenderingContext::nextRenderer):
      (WebCore::NodeRenderingContext::previousRenderer):
      * dom/NodeRenderingContext.h:
      (WebCore::NodeRenderingContext::includer):
      * dom/ShadowContentElement.cpp:
      (WebCore::removeFromSet):
      (WebCore::addToSet):
      (WebCore::ShadowContentElement::attach):
      (WebCore::ShadowContentElement::detach):
      * dom/ShadowContentElement.h:
      (WebCore::ShadowInclusionSet::add):
      (WebCore::ShadowInclusionSet::remove):
      (WebCore::ShadowInclusionSet::isEmpty):
      (WebCore::ShadowInclusionSet::Translator::hash):
      (WebCore::ShadowInclusionSet::Translator::equal):
      (WebCore::ShadowInclusionSet::Hash::hash):
      (WebCore::ShadowInclusionSet::Hash::equal):
      (WebCore::ShadowInclusionSet::find):
      * dom/ShadowContentSelector.cpp:
      (WebCore::ShadowContentSelector::ShadowContentSelector):
      (WebCore::ShadowContentSelector::selectInclusion):
      * dom/ShadowContentSelector.h:
      * dom/ShadowRoot.cpp:
      (WebCore::ShadowRoot::~ShadowRoot):
      (WebCore::ShadowRoot::includerFor):
      (WebCore::ShadowRoot::inclusions):
      (WebCore::ShadowRoot::ensureInclusions):
      * dom/ShadowRoot.h:
      (WebCore::toShadowRoot):
      * testing/Internals.cpp:
      (WebCore::Internals::includerFor):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2: [ShadowContentElement] forwarded node should be able to access its hosting content element.
      https://bugs.webkit.org/show_bug.cgi?id=64251
      
      Reviewed by Dimitri Glazkov.
      
      Exported additional symbols for window.internals object.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests: [ShadowContentElement] forwarded node should be able to access its hosting content element.
      https://bugs.webkit.org/show_bug.cgi?id=64251
      
      Reviewed by Dimitri Glazkov.
      
      - Added a new test.
      - Updated expectations. This change make ShadowContentElement availability on NodeRenderingContext
        more strict. that makes some redundant node disappeared.
      
      * fast/dom/shadow/content-element-includer-expected.txt: Added.
      * fast/dom/shadow/content-element-includer.html: Added.
      * platform/chromium-win/fast/html/details-nested-2-expected.txt:
      * platform/gtk/fast/html/details-nested-2-expected.txt:
      * platform/mac/fast/html/details-nested-2-expected.txt:
      * platform/qt/fast/html/details-nested-2-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d534c6d8
  17. 14 Jul, 2011 1 commit
    • morrita@google.com's avatar
      Unreviewed, rolling out r90976, r90981, and r90985. · 3d1224e7
      morrita@google.com authored
      http://trac.webkit.org/changeset/90976
      http://trac.webkit.org/changeset/90981
      http://trac.webkit.org/changeset/90985
      https://bugs.webkit.org/show_bug.cgi?id=64251
      
      build break
      
      .:
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * dom/NodeRenderingContext.cpp:
      (WebCore::NodeRenderingContext::NodeRenderingContext):
      (WebCore::NodeRenderingContext::nextRenderer):
      (WebCore::NodeRenderingContext::previousRenderer):
      * dom/NodeRenderingContext.h:
      * dom/ShadowContentElement.cpp:
      (WebCore::ShadowContentElement::attach):
      (WebCore::ShadowContentElement::detach):
      * dom/ShadowContentElement.h:
      * dom/ShadowContentSelector.cpp:
      (WebCore::ShadowContentSelector::ShadowContentSelector):
      (WebCore::ShadowContentSelector::selectInclusion):
      (WebCore::ShadowContentSelector::willAttachContentFor):
      (WebCore::ShadowContentSelector::didAttachContent):
      (WebCore::ShadowContentSelector::activeElement):
      * dom/ShadowContentSelector.h:
      * dom/ShadowRoot.cpp:
      (WebCore::ShadowRoot::~ShadowRoot):
      (WebCore::ShadowRoot::activeContentElement):
      * dom/ShadowRoot.h:
      * testing/Internals.cpp:
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2:
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests:
      
      * fast/dom/shadow/content-element-includer-expected.txt: Removed.
      * fast/dom/shadow/content-element-includer.html: Removed.
      * platform/chromium-win/fast/html/details-nested-2-expected.txt:
      * platform/gtk/fast/html/details-nested-2-expected.txt:
      * platform/mac/fast/html/details-nested-2-expected.txt:
      * platform/qt/fast/html/details-nested-2-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d1224e7
  18. 13 Jul, 2011 1 commit
    • morrita@google.com's avatar
      .: [ShadowContentElement] forwarded node should be able to access its hosting content element. · 3b337f86
      morrita@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=64251
      
      Reviewed by Dimitri Glazkov.
      
      Added GTK symbols for new window.internals methods.
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore: [ShadowContentElement] forwarded node should be able to access its hosting content element.
      https://bugs.webkit.org/show_bug.cgi?id=64251
      
      Reviewed by Dimitri Glazkov.
      
      - Introduced ShadowInclusionSet to manage included nodes to its includer content element.
        ShadowInclusionSet instance is owned by ShadowRoot.
      - Updated the set on inclusion list changes.
      - Used the set to retrieve the content element of NodeRenderingContext.
      
      There are also related refactoring and cleanup:
      - Renamed NodeRenderingContext::m_contentElement to m_includer
      - ShadowContentSelector::m_activeElement is no longer used, thus removed.
      
      Test: fast/dom/shadow/content-element-includer.html
      
      * WebCore.exp.in:
      * dom/NodeRenderingContext.cpp:
      (WebCore::NodeRenderingContext::NodeRenderingContext):
      (WebCore::NodeRenderingContext::nextRenderer):
      (WebCore::NodeRenderingContext::previousRenderer):
      * dom/NodeRenderingContext.h:
      (WebCore::NodeRenderingContext::includer):
      * dom/ShadowContentElement.cpp:
      (WebCore::removeFromSet): Added
      (WebCore::addToSet): Added
      (WebCore::ShadowContentElement::attach):
      (WebCore::ShadowContentElement::detach):
      * dom/ShadowContentElement.h:
      (WebCore::ShadowInclusionSet::add):
      (WebCore::ShadowInclusionSet::remove):
      (WebCore::ShadowInclusionSet::isEmpty):
      (WebCore::ShadowInclusionSet::Translator::hash):
      (WebCore::ShadowInclusionSet::Translator::equal):
      (WebCore::ShadowInclusionSet::Hash::hash):
      (WebCore::ShadowInclusionSet::Hash::equal):
      (WebCore::ShadowInclusionSet::find):
      * dom/ShadowContentSelector.cpp:
      (WebCore::ShadowContentSelector::ShadowContentSelector):
      (WebCore::ShadowContentSelector::selectInclusion):
      * dom/ShadowContentSelector.h:
      * dom/ShadowRoot.cpp:
      (WebCore::ShadowRoot::~ShadowRoot):
      (WebCore::ShadowRoot::includerFor): Replaced activeElement()
      (WebCore::ShadowRoot::inclusions): Added
      (WebCore::ShadowRoot::ensureInclusions): Added
      * dom/ShadowRoot.h:
      (WebCore::toShadowRoot):
      * testing/Internals.cpp:
      (WebCore::Internals::includerFor):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2: [ShadowContentElement] forwarded node should be able to access its hosting content element.
      https://bugs.webkit.org/show_bug.cgi?id=64251
      
      Reviewed by Dimitri Glazkov.
      
      Exported additional symbols for window.internals object.
      
      * win/WebKit2.def:
      
      LayoutTests: [ShadowContentElement] forwarded node should be able to access its hosting content element.
      https://bugs.webkit.org/show_bug.cgi?id=64251
      
      Reviewed by Dimitri Glazkov.
      
      - Added a new test.
      - Updated expectations. This change make ShadowContentElement availability on NodeRenderingContext
        more strict. that makes some redundant node disappeared.
      
      * fast/dom/shadow/content-element-includer-expected.txt: Added.
      * fast/dom/shadow/content-element-includer.html: Added.
      * platform/chromium-win/fast/html/details-nested-2-expected.txt:
      * platform/gtk/fast/html/details-nested-2-expected.txt:
      * platform/mac/fast/html/details-nested-2-expected.txt:
      * platform/qt/fast/html/details-nested-2-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3b337f86
  19. 05 Jul, 2011 1 commit
    • vsevik@chromium.org's avatar
      2011-07-05 Vsevolod Vlasov <vsevik@chromium.org> · d8b27104
      vsevik@chromium.org authored
              Web Inspector: Show content for plugin requests in network panel.
              https://bugs.webkit.org/show_bug.cgi?id=30080
      
              Added GTK symbols for new window.internals methods.
      
              Reviewed by Pavel Feldman.
      
              * Source/autotools/symbols.filter:
      2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Web Inspector: Show content for plugin requests in network panel.
              https://bugs.webkit.org/show_bug.cgi?id=30080
      
              Added tests for plugin content saving and replacing in NetworkResourcesData.
              Adjusted older tests to use new window.internals method setInspectorResourcesDataSizeLimits
              to ensure NetworkResourcesData is in the correct state before test.
      
              Reviewed by Pavel Feldman.
      
              * http/tests/inspector/network/network-content-replacement-embed-expected.txt: Added.
              * http/tests/inspector/network/network-content-replacement-embed.html: Added.
              * http/tests/inspector/network/network-content-replacement-xhr-expected.txt: Added.
              * http/tests/inspector/network/network-content-replacement-xhr.html: Added.
              * http/tests/inspector/network/network-embed-expected.txt: Added.
              * http/tests/inspector/network/network-embed.html: Added.
              * http/tests/inspector/network/network-xhr-async-expected.txt:
              * http/tests/inspector/network/network-xhr-async.html:
              * http/tests/inspector/network/network-xhr-sync-expected.txt:
              * http/tests/inspector/network/network-xhr-sync.html:
              * http/tests/inspector/network/resources/cp1251.xml: Added.
              * http/tests/inspector/network/resources/plugin-data.php: Added.
              * http/tests/inspector/network/resources/resource.php:
              * http/tests/inspector/network/resources/utf8.xml: Added.
              * platform/chromium/test_expectations.txt:
      2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Web Inspector: Show content for plugin requests in network panel.
              https://bugs.webkit.org/show_bug.cgi?id=30080
      
              Now the data from didReceiveData callback is passed to inspector.
              It is then saved in NetworkResourcesData structure for plugin requests.
              Added window.internals.setInspectorResourcesDataSizeLimits() method
              for testing replacement logic.
      
              Reviewed by Pavel Feldman.
      
              Tests: http/tests/inspector/network/network-content-replacement-embed.html
                     http/tests/inspector/network/network-content-replacement-xhr.html
                     http/tests/inspector/network/network-embed.html
      
              * WebCore.exp.in:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::setResourcesDataSizeLimitsFromInternals):
              * inspector/InspectorController.h:
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::didReceiveDataImpl):
              * inspector/InspectorInstrumentation.h:
              (WebCore::InspectorInstrumentation::didReceiveData):
              * inspector/InspectorResourceAgent.cpp:
              (WebCore::InspectorResourceAgent::didReceiveResponse):
              (WebCore::InspectorResourceAgent::didReceiveData):
              (WebCore::InspectorResourceAgent::didFinishLoading):
              (WebCore::InspectorResourceAgent::setInitialXHRContent):
              (WebCore::InspectorResourceAgent::setResourcesDataSizeLimitsFromInternals):
              (WebCore::InspectorResourceAgent::getResourceContent):
              * inspector/InspectorResourceAgent.h:
              * inspector/NetworkResourcesData.cpp:
              (WebCore::NetworkResourcesData::ResourceData::ResourceData):
              (WebCore::NetworkResourcesData::ResourceData::setContent):
              (WebCore::NetworkResourcesData::ResourceData::purgeContent):
              (WebCore::NetworkResourcesData::ResourceData::createDecoder):
              (WebCore::NetworkResourcesData::ResourceData::dataLength):
              (WebCore::NetworkResourcesData::ResourceData::appendData):
              (WebCore::NetworkResourcesData::ResourceData::decodeDataToContent):
              (WebCore::NetworkResourcesData::NetworkResourcesData):
              (WebCore::NetworkResourcesData::responseReceived):
              (WebCore::NetworkResourcesData::setResourceContent):
              (WebCore::NetworkResourcesData::maybeAddResourceData):
              (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
              (WebCore::NetworkResourcesData::data):
              (WebCore::NetworkResourcesData::clear):
              (WebCore::NetworkResourcesData::setResourcesDataSizeLimits):
              (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
              (WebCore::NetworkResourcesData::ensureFreeSpace):
              * inspector/NetworkResourcesData.h:
              (WebCore::NetworkResourcesData::ResourceData::hasContent):
              (WebCore::NetworkResourcesData::ResourceData::content):
              (WebCore::NetworkResourcesData::ResourceData::decoder):
              (WebCore::NetworkResourcesData::ResourceData::buffer):
              (WebCore::NetworkResourcesData::ResourceData::setBuffer):
              (WebCore::NetworkResourcesData::ResourceData::hasData):
              * inspector/front-end/Resource.js:
              (WebInspector.Resource.prototype.get contentEncoded):
              * inspector/front-end/ResourcePreviewView.js:
              (WebInspector.ResourcePreviewView.prototype.contentLoaded):
              (WebInspector.ResourcePreviewView.prototype._createEmptyView):
              (WebInspector.ResourcePreviewView.prototype._createPreviewView):
              * inspector/front-end/ResourceView.js:
              (WebInspector.ResourceView.hasTextContent):
              * loader/DocumentThreadableLoader.cpp:
              (WebCore::DocumentThreadableLoader::didReceiveData):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::willLoadMediaElementURL):
              (WebCore::FrameLoader::commitProvisionalLoad):
              (WebCore::FrameLoader::loadResourceSynchronously):
              (WebCore::FrameLoader::loadedResourceFromMemoryCache):
              * loader/ResourceLoadNotifier.cpp:
              (WebCore::ResourceLoadNotifier::didReceiveData):
              (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
              (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
              * loader/ResourceLoadNotifier.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::didReceiveData):
              * testing/Internals.cpp:
              (WebCore::Internals::setInspectorResourcesDataSizeLimits):
              * testing/Internals.h:
              * testing/Internals.idl:
      2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Web Inspector: Show content for plugin requests in network panel.
              https://bugs.webkit.org/show_bug.cgi?id=30080
      
              Added win symbols for new window.internals methods.
      
              Reviewed by Pavel Feldman.
      
              * win/WebKit2.def:
              * win/WebKit2CFLite.def:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90389 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d8b27104
  20. 04 Jul, 2011 2 commits
    • commit-queue@webkit.org's avatar
      2011-07-04 Sheriff Bot <webkit.review.bot@gmail.com> · 1e1df61f
      commit-queue@webkit.org authored
              Unreviewed, rolling out r90373.
              http://trac.webkit.org/changeset/90373
              https://bugs.webkit.org/show_bug.cgi?id=63917
      
              Breaks Qt Linux Release minimal (Requested by vsevik on
              #webkit).
      
              * Source/autotools/symbols.filter:
      2011-07-04  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r90373.
              http://trac.webkit.org/changeset/90373
              https://bugs.webkit.org/show_bug.cgi?id=63917
      
              Breaks Qt Linux Release minimal (Requested by vsevik on
              #webkit).
      
              * http/tests/inspector/network/network-content-replacement-embed-expected.txt: Removed.
              * http/tests/inspector/network/network-content-replacement-embed.html: Removed.
              * http/tests/inspector/network/network-content-replacement-xhr-expected.txt: Removed.
              * http/tests/inspector/network/network-content-replacement-xhr.html: Removed.
              * http/tests/inspector/network/network-embed-expected.txt: Removed.
              * http/tests/inspector/network/network-embed.html: Removed.
              * http/tests/inspector/network/network-xhr-async-expected.txt:
              * http/tests/inspector/network/network-xhr-async.html:
              * http/tests/inspector/network/network-xhr-sync-expected.txt:
              * http/tests/inspector/network/network-xhr-sync.html:
              * http/tests/inspector/network/resources/cp1251.xml: Removed.
              * http/tests/inspector/network/resources/plugin-data.php: Removed.
              * http/tests/inspector/network/resources/resource.php:
              * http/tests/inspector/network/resources/utf8.xml: Removed.
              * platform/chromium/test_expectations.txt:
      2011-07-04  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r90373.
              http://trac.webkit.org/changeset/90373
              https://bugs.webkit.org/show_bug.cgi?id=63917
      
              Breaks Qt Linux Release minimal (Requested by vsevik on
              #webkit).
      
              * WebCore.exp.in:
              * inspector/InspectorController.cpp:
              * inspector/InspectorController.h:
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
              * inspector/InspectorInstrumentation.h:
              (WebCore::InspectorInstrumentation::didReceiveContentLength):
              * inspector/InspectorResourceAgent.cpp:
              (WebCore::InspectorResourceAgent::didReceiveResponse):
              (WebCore::InspectorResourceAgent::didReceiveContentLength):
              (WebCore::InspectorResourceAgent::didFinishLoading):
              (WebCore::InspectorResourceAgent::setInitialXHRContent):
              (WebCore::InspectorResourceAgent::getResourceContent):
              * inspector/InspectorResourceAgent.h:
              * inspector/NetworkResourcesData.cpp:
              (WebCore::NetworkResourcesData::ResourceData::ResourceData):
              (WebCore::NetworkResourcesData::ResourceData::content):
              (WebCore::NetworkResourcesData::ResourceData::appendContent):
              (WebCore::NetworkResourcesData::ResourceData::purgeContent):
              (WebCore::NetworkResourcesData::NetworkResourcesData):
              (WebCore::NetworkResourcesData::responseReceived):
              (WebCore::NetworkResourcesData::addResourceContent):
              (WebCore::NetworkResourcesData::data):
              (WebCore::NetworkResourcesData::clear):
              (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
              (WebCore::NetworkResourcesData::ensureFreeSpace):
              * inspector/NetworkResourcesData.h:
              (WebCore::NetworkResourcesData::ResourceData::hasContent):
              (WebCore::NetworkResourcesData::ResourceData::setIsContentPurged):
              (WebCore::NetworkResourcesData::ResourceData::textEncodingName):
              (WebCore::NetworkResourcesData::ResourceData::setTextEncodingName):
              * inspector/front-end/Resource.js:
              * inspector/front-end/ResourcePreviewView.js:
              (WebInspector.ResourcePreviewView.prototype.contentLoaded):
              (WebInspector.ResourcePreviewView.prototype._createInnerView):
              * inspector/front-end/ResourceView.js:
              (WebInspector.ResourceView.hasTextContent):
              * loader/DocumentThreadableLoader.cpp:
              (WebCore::DocumentThreadableLoader::didReceiveData):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::willLoadMediaElementURL):
              (WebCore::FrameLoader::commitProvisionalLoad):
              (WebCore::FrameLoader::loadResourceSynchronously):
              (WebCore::FrameLoader::loadedResourceFromMemoryCache):
              * loader/ResourceLoadNotifier.cpp:
              (WebCore::ResourceLoadNotifier::didReceiveData):
              (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
              (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
              * loader/ResourceLoadNotifier.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::didReceiveData):
              * testing/Internals.cpp:
              * testing/Internals.h:
              * testing/Internals.idl:
      2011-07-04  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r90373.
              http://trac.webkit.org/changeset/90373
              https://bugs.webkit.org/show_bug.cgi?id=63917
      
              Breaks Qt Linux Release minimal (Requested by vsevik on
              #webkit).
      
              * win/WebKit2.def:
              * win/WebKit2CFLite.def:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e1df61f
    • vsevik@chromium.org's avatar
      2011-07-04 Vsevolod Vlasov <vsevik@chromium.org> · 169a9b5d
      vsevik@chromium.org authored
              Web Inspector: Show content for plugin requests in network panel.
              https://bugs.webkit.org/show_bug.cgi?id=30080
      
              Reviewed by Pavel Feldman.
      
              * Source/autotools/symbols.filter:
      2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Web Inspector: Show content for plugin requests in network panel.
              https://bugs.webkit.org/show_bug.cgi?id=30080
      
              Reviewed by Pavel Feldman.
      
              * http/tests/inspector/network/network-content-replacement-embed-expected.txt: Added.
              * http/tests/inspector/network/network-content-replacement-embed.html: Added.
              * http/tests/inspector/network/network-content-replacement-xhr-expected.txt: Added.
              * http/tests/inspector/network/network-content-replacement-xhr.html: Added.
              * http/tests/inspector/network/network-embed-expected.txt: Added.
              * http/tests/inspector/network/network-embed.html: Added.
              * http/tests/inspector/network/network-xhr-async-expected.txt:
              * http/tests/inspector/network/network-xhr-async.html:
              * http/tests/inspector/network/network-xhr-sync-expected.txt:
              * http/tests/inspector/network/network-xhr-sync.html:
              * http/tests/inspector/network/resources/cp1251.xml: Added.
              * http/tests/inspector/network/resources/plugin-data.php: Added.
              * http/tests/inspector/network/resources/resource.php:
              * http/tests/inspector/network/resources/utf8.xml: Added.
              * platform/chromium/test_expectations.txt:
      2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Web Inspector: Show content for plugin requests in network panel.
              https://bugs.webkit.org/show_bug.cgi?id=30080
      
              Reviewed by Pavel Feldman.
      
              Tests: http/tests/inspector/network/network-content-replacement-embed.html
                     http/tests/inspector/network/network-content-replacement-xhr.html
                     http/tests/inspector/network/network-embed.html
      
              * WebCore.exp.in:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::setResourcesDataSizeLimitsFromInternals):
              * inspector/InspectorController.h:
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::didReceiveDataImpl):
              * inspector/InspectorInstrumentation.h:
              (WebCore::InspectorInstrumentation::didReceiveData):
              * inspector/InspectorResourceAgent.cpp:
              (WebCore::InspectorResourceAgent::didReceiveResponse):
              (WebCore::InspectorResourceAgent::didReceiveData):
              (WebCore::InspectorResourceAgent::didFinishLoading):
              (WebCore::InspectorResourceAgent::setInitialXHRContent):
              (WebCore::InspectorResourceAgent::setResourcesDataSizeLimitsFromInternals):
              (WebCore::InspectorResourceAgent::getResourceContent):
              * inspector/InspectorResourceAgent.h:
              * inspector/NetworkResourcesData.cpp:
              (WebCore::NetworkResourcesData::ResourceData::ResourceData):
              (WebCore::NetworkResourcesData::ResourceData::setContent):
              (WebCore::NetworkResourcesData::ResourceData::purgeContent):
              (WebCore::NetworkResourcesData::ResourceData::createDecoder):
              (WebCore::NetworkResourcesData::ResourceData::dataLength):
              (WebCore::NetworkResourcesData::ResourceData::appendData):
              (WebCore::NetworkResourcesData::ResourceData::decodeDataToContent):
              (WebCore::NetworkResourcesData::NetworkResourcesData):
              (WebCore::NetworkResourcesData::responseReceived):
              (WebCore::NetworkResourcesData::setResourceContent):
              (WebCore::NetworkResourcesData::maybeAddResourceData):
              (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
              (WebCore::NetworkResourcesData::data):
              (WebCore::NetworkResourcesData::clear):
              (WebCore::NetworkResourcesData::setResourcesDataSizeLimits):
              (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
              (WebCore::NetworkResourcesData::ensureFreeSpace):
              * inspector/NetworkResourcesData.h:
              (WebCore::NetworkResourcesData::ResourceData::hasContent):
              (WebCore::NetworkResourcesData::ResourceData::content):
              (WebCore::NetworkResourcesData::ResourceData::decoder):
              (WebCore::NetworkResourcesData::ResourceData::buffer):
              (WebCore::NetworkResourcesData::ResourceData::setBuffer):
              (WebCore::NetworkResourcesData::ResourceData::hasData):
              * inspector/front-end/Resource.js:
              (WebInspector.Resource.prototype.get contentEncoded):
              * inspector/front-end/ResourcePreviewView.js:
              (WebInspector.ResourcePreviewView.prototype.contentLoaded):
              (WebInspector.ResourcePreviewView.prototype._createEmptyView):
              (WebInspector.ResourcePreviewView.prototype._createPreviewView):
              * inspector/front-end/ResourceView.js:
              (WebInspector.ResourceView.hasTextContent):
              * loader/DocumentThreadableLoader.cpp:
              (WebCore::DocumentThreadableLoader::didReceiveData):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::willLoadMediaElementURL):
              (WebCore::FrameLoader::commitProvisionalLoad):
              (WebCore::FrameLoader::loadResourceSynchronously):
              (WebCore::FrameLoader::loadedResourceFromMemoryCache):
              * loader/ResourceLoadNotifier.cpp:
              (WebCore::ResourceLoadNotifier::didReceiveData):
              (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
              (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
              * loader/ResourceLoadNotifier.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::didReceiveData):
              * testing/Internals.cpp:
              (WebCore::Internals::setInspectorResourcesDataSizeLimits):
              * testing/Internals.h:
              * testing/Internals.idl:
      2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Web Inspector: Show content for plugin requests in network panel.
              https://bugs.webkit.org/show_bug.cgi?id=30080
      
              Reviewed by Pavel Feldman.
      
              * win/WebKit2.def:
              * win/WebKit2CFLite.def:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      169a9b5d
  21. 24 Jun, 2011 1 commit
    • dominicc@chromium.org's avatar
      2011-06-24 Dominic Cooney <dominicc@chromium.org> · 958d2e44
      dominicc@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              Convert shadow DOM-related tests to use window.internals
              https://bugs.webkit.org/show_bug.cgi?id=61671
      
              * Source/autotools/symbols.filter: Export symbols for GTK.
      2011-06-24  Dominic Cooney  <dominicc@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Convert shadow DOM-related tests to use window.internals
              https://bugs.webkit.org/show_bug.cgi?id=61671
      
              Update tests to use internals.{ensureShadowRoot, shadowRoot,
              shadowPseudoId, removeShadowRoot} instead of layoutTestController.
      
              * fast/dom/HTMLKeygenElement/keygen-expected.txt:
              * fast/dom/HTMLKeygenElement/keygen.html:
              * fast/dom/HTMLMeterElement/meter-clone-expected.txt:
              * fast/dom/HTMLMeterElement/meter-clone.html:
              * fast/dom/HTMLProgressElement/progress-clone-expected.txt:
              * fast/dom/HTMLProgressElement/progress-clone.html:
              * fast/dom/shadow/activeelement-should-be-shadowhost.html:
              * fast/dom/shadow/create-content-element.html:
              * fast/dom/shadow/gc-shadow-expected.txt:
              * fast/dom/shadow/gc-shadow.html:
              * fast/dom/shadow/layout-tests-can-access-shadow-expected.txt: shadowRoot of non-element throws now, so verify new behavior.
              * fast/dom/shadow/layout-tests-can-access-shadow.html:
              * fast/dom/shadow/nodetype.html:
              * fast/dom/shadow/tab-order-iframe-and-shadow.html:
              * fast/events/shadow-boundary-crossing.html:
              * fast/forms/resources/common.js:
              (getValidationMessageBubbleNode):
              * fast/html/clone-keygen-expected.txt:
              * fast/html/clone-keygen.html:
              * fast/html/clone-range-expected.txt:
              * fast/html/clone-range.html:
              * fast/html/details-clone.html:
              * fullscreen/video-controls-override-expected.txt:
              * fullscreen/video-controls-override.html:
              * media/audio-controls-do-not-fade-out.html:
              * media/media-controls.js:
              (mediaControlsButtonCoordinates):
              * media/video-controls-in-media-document.html:
              * platform/win/Skipped: shadowRoot and friends now available on win.
      2011-06-24  Dominic Cooney  <dominicc@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Convert shadow DOM-related tests to use window.internals
              https://bugs.webkit.org/show_bug.cgi?id=61671
      
              * WebCore.exp.in: Exports for symbols used by WebCoreTestSupport.
              * testing/Internals.cpp: The new home of shadowRoot and friends.
              (WebCore::Internals::ensureShadowRoot):
              (WebCore::Internals::shadowRoot):
              (WebCore::Internals::removeShadowRoot):
              (WebCore::Internals::shadowPseudoId):
              * testing/Internals.h:
              * testing/Internals.idl:
      2011-06-24  Dominic Cooney  <dominicc@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Convert shadow DOM-related tests to use window.internals
              https://bugs.webkit.org/show_bug.cgi?id=61671
      
              Remove shadow DOM-related methods from Chromium API. These are not
              required any more.
      
              * public/WebElement.h:
              * src/WebElement.cpp:
      2011-06-24  Dominic Cooney  <dominicc@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Convert shadow DOM-related tests to use window.internals
              https://bugs.webkit.org/show_bug.cgi?id=61671
      
              Remove shadow-DOM related methods from GTK DRT API. These are not
              required any more.
      
              * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
              * WebCoreSupport/DumpRenderTreeSupportGtk.h:
      2011-06-24  Dominic Cooney  <dominicc@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Convert shadow DOM-related tests to use window.internals
              https://bugs.webkit.org/show_bug.cgi?id=61671
      
              Remove shadow DOM-related methods from Mac API. These are not
              required any more.
      
              * DOM/WebDOMOperations.mm:
              * DOM/WebDOMOperationsPrivate.h:
      2011-06-24  Dominic Cooney  <dominicc@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Convert shadow-DOM related tests to use window.internals
              https://bugs.webkit.org/show_bug.cgi?id=61671
      
              Remove shadow-DOM related methods from Qt DRT API. These are not
              required any more.
      
              * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
              * WebCoreSupport/DumpRenderTreeSupportQt.h:
      2011-06-24  Dominic Cooney  <dominicc@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Convert shadow DOM-related tests to use window.internals
              https://bugs.webkit.org/show_bug.cgi?id=61671
      
              Remove shadow DOM-related methods from WebKit2 API. These are not
              required any more.
      
              * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
              * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
              * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
              * win/WebKit2.def: Re-exports for symbols used by WebCoreTestSupport.
              * win/WebKit2CFLite.def: Same for Cairo.
      2011-06-24  Dominic Cooney   <dominicc@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Convert shadow DOM-related tests to use window.internals
              https://bugs.webkit.org/show_bug.cgi?id=61671
      
              Remove ensureShadowRoot, shadowRoot, shadowPseudoId and
              removeShadowRoot from layoutTestController; these have been
              replaced by equivalents in window.internals instead.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
              * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
              * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      958d2e44
  22. 22 Jun, 2011 1 commit
    • japhet@chromium.org's avatar
      2011-06-22 Nate Chapin <japhet@chromium.org> · 94a630a0
      japhet@chromium.org authored
              Reviewed by Adam Barth.
      
              Add symbols required for window.internals.
              https://bugs.webkit.org/show_bug.cgi?id=62066
      
              * Source/autotools/symbols.filter:
      2011-06-22  Nate Chapin  <japhet@chromium.org>
      
              Reviewed by Adam Barth.
      
              Test updates for https://bugs.webkit.org/show_bug.cgi?id=62066.
      
              * fast/preloader/scan-body-from-head-import.html: Use window.internals.
              * fast/preloader/scan-body-from-head-script.html: Use window.internals.
              * http/tests/loading/cross-origin-XHR-willLoadRequest-expected.txt:
              * http/tests/loading/cross-origin-XHR-willLoadRequest.html:
              * http/tests/loading/preload-append-scan-expected.txt:
              * http/tests/loading/preload-append-scan.php: Use window.internals.
              * http/tests/misc/favicon-loads-with-icon-loading-override-expected.txt:
              * http/tests/misc/link-rel-icon-beforeload-expected.txt:
              * platform/chromium-linux/fast/preloader/scan-body-from-head-script-expected.txt:  Removed.
      2011-06-22  Nate Chapin  <japhet@chromium.org>
      
              Reviewed by Adam Barth.
      
              Don't let all subresources keep isLoadingInAPISense() from
              returning false, only requests that affect
              CachedResourceRequest::requestCount().
      
              Also, add a callback to Internals to determine whether
              a resource has been preloaded.
      
              https://bugs.webkit.org/show_bug.cgi?id=62066
      
              * WebCore.exp.in:
              * dom/Document.cpp: Add m_loadEventFinished.
              * dom/Document.h:
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::isLoadingInAPISense):
              * loader/cache/CachedResourceLoader.cpp:
              (WebCore::CachedResourceLoader::isPreloaded):
              * loader/cache/CachedResourceLoader.h:
              * testing/Internals.cpp:
              (WebCore::Internals::isPreloaded):
              * testing/Internals.h:
              * testing/Internals.idl:
      2011-06-22  Nate Chapin  <japhet@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add win symbols for new window.internals functionality.
              https://bugs.webkit.org/show_bug.cgi?id=62066
      
              * win/WebKit2.def:
      2011-06-22  Nate Chapin  <japhet@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add libsoup to libWebCoreInternals build.
              https://bugs.webkit.org/show_bug.cgi?id=62066
      
              * GNUmakefile.am:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94a630a0
  23. 19 Jun, 2011 1 commit
    • morrita@google.com's avatar
      2011-06-19 MORITA Hajime <morrita@google.com> · 7837bc86
      morrita@google.com authored
              Reviewed by Dimitri Glazkov.
      
              The internals object should have createShadowContentElement()
              https://bugs.webkit.org/show_bug.cgi?id=62432
      
              * Source/autotools/symbols.filter: Added some more symbols necessary for
              window.internals to function to the global symbol list.
      
      2011-06-19  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Dimitri Glazkov.
      
              The internals object should have createShadowContentElement()
              https://bugs.webkit.org/show_bug.cgi?id=62432
      
              * fast/dom/shadow/create-content-element-expected.txt: Added.
              * fast/dom/shadow/create-content-element.html: Added.
      2011-06-19  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Dimitri Glazkov.
      
              The internals object should have createShadowContentElement()
              https://bugs.webkit.org/show_bug.cgi?id=62432
      
              This change:
              - added Internals::createShadowContentElement(), which creates,
                ShadowContentElement instance which includes all host children,
              - added Internals::elementRenderTreeAsText() to help content layout testing, and
              - Unabstracted ShadowContentElement by giving a default shouldInclude() implementation.
      
              Test: fast/dom/shadow/create-content-element.html
      
              * WebCore.exp.in:
              * dom/ShadowContentElement.cpp:
              (WebCore::ShadowContentElement::create): Added.
              (WebCore::ShadowContentElement::ShadowContentElement):
              (WebCore::ShadowContentElement::~ShadowContentElement):
              (WebCore::ShadowContentElement::shouldInclude): Gave a default implementation which always returns true.
              * dom/ShadowContentElement.h:
              * html/HTMLSummaryElement.cpp:
              (WebCore::SummaryContentElement::SummaryContentElement):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::externalRepresentation): Factored out for supportin per-element render tree dump.
              * rendering/RenderTreeAsText.h:
              * testing/Internals.cpp:
              (WebCore::Internals::createShadowContentElement): Added.
              (WebCore::Internals::elementRenderTreeAsText): dded.
              * testing/Internals.h:
              * testing/Internals.idl:
      2011-06-19  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Dimitri Glazkov.
      
              The internals object should have createShadowContentElement()
              https://bugs.webkit.org/show_bug.cgi?id=62432
      
              * win/WebKit2.def: Added some more symbols necessary for
              window.internals to function to the global symbol list.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7837bc86
  24. 02 Jun, 2011 1 commit
    • dglazkov@chromium.org's avatar
      2011-06-02 Dimitri Glazkov <dglazkov@chromium.org> · b4a8037d
      dglazkov@chromium.org authored
              Reviewed by Darin Adler.
      
              Add build logistics and plumbing for window.internals object.
              https://bugs.webkit.org/show_bug.cgi?id=60313
      
              * fast/dom/Window/script-tests/window-property-descriptors.js: Added internals object to list of properties to skip.
              * fast/dom/Window/window-properties.html: Ditto.
              * fast/dom/script-tests/prototype-inheritance-2.js: Ditto.
              * fast/dom/script-tests/prototype-inheritance.js: Ditto.
              * fast/harness/internals-object-expected.txt: Added.
              * fast/harness/internals-object.html: Added.
              * platform/gtk/Skipped: Skipped the newly added test until platform supports window.internals.
              * platform/mac-wk2/Skipped: Ditto.
              * platform/qt/Skipped: Ditto.
              * platform/win/Skipped: Ditto.
      2011-06-02  Dimitri Glazkov  <dglazkov@chromium.org>
      
              Reviewed by Darin Adler.
      
              Add build logistics and plumbing for window.internals object.
              https://bugs.webkit.org/show_bug.cgi?id=60313
      
              Test: fast/harness/internals-object.html
      
              * Configurations/WebCoreTestSupport.xcconfig: Added.
              * DerivedSources.make: Added support for generating from Internals.idl.
              * WebCore.gyp/WebCore.gyp: Added new webcore_test_support library.
              * WebCore.gypi: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Added WebCoreTestSupport library.
              * testing/Internals.cpp: Added.
              * testing/Internals.h: Added.
              * testing/Internals.idl: Added.
              * testing/js/WebCoreTestSupport.cpp: Added.
              * testing/js/WebCoreTestSupport.h: Added.
              * testing/v8/WebCoreTestSupport.cpp: Added.
              * testing/v8/WebCoreTestSupport.h: Added.
      2011-06-02  Dimitri Glazkov  <dglazkov@chromium.org>
      
              Reviewed by Darin Adler.
      
              Add build logistics and plumbing for window.internals object.
              https://bugs.webkit.org/show_bug.cgi?id=60313
      
              * WebKit.gyp: Added linking new webkit_test_support library.
              * public/WebTestingSupport.h: Added.
              * src/WebTestingSupport.cpp: Added.
      2011-06-02  Dimitri Glazkov  <dglazkov@chromium.org>
      
              Reviewed by Darin Adler.
      
              Add build logistics and plumbing for window.internals object.
              https://bugs.webkit.org/show_bug.cgi?id=60313
      
              * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Added linking new WebCoreTestSupport library.
              * DumpRenderTree/chromium/TestShell.cpp:
              (TestShell::bindJSObjectsToWindow): Added injection code.
              * DumpRenderTree/mac/FrameLoadDelegate.mm:
              (-[FrameLoadDelegate didClearWindowObjectInStandardWorldForFrame:]): Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4a8037d
  25. 16 Feb, 2011 1 commit
    • jorlow@chromium.org's avatar
      2011-02-16 David Grogan <dgrogan@chromium.org> · 6c8254d7
      jorlow@chromium.org authored
              Reviewed by Jeremy Orlow.
      
              indexeddb: make setVersion fire blocked event if other connections are open
              https://bugs.webkit.org/show_bug.cgi?id=53728
      
              Tests: storage/indexeddb/set_version_blocked.html
                     storage/indexeddb/set_version_queue.html
      
              * WebCore.gypi:
              * bindings/js/JSEventCustom.cpp:
              (WebCore::toJS):
              * bindings/v8/custom/V8EventCustom.cpp:
              (WebCore::toV8):
              * dom/Event.cpp:
              (WebCore::Event::isIDBVersionChangeEvent):
              * dom/Event.h:
              * dom/EventNames.h:
              * dom/EventTarget.cpp:
              (WebCore::EventTarget::toIDBVersionChangeRequest):
              * dom/EventTarget.h:
              * storage/IDBCallbacks.h:
              * storage/IDBDatabase.cpp:
              (WebCore::IDBDatabase::setVersion):
              (WebCore::IDBDatabase::close):
              * storage/IDBDatabase.h:
              * storage/IDBDatabase.idl:
              * storage/IDBDatabaseBackendImpl.cpp:
              (WebCore::IDBDatabaseBackendImpl::PendingSetVersionCall::create):
              (WebCore::IDBDatabaseBackendImpl::PendingSetVersionCall::version):
              (WebCore::IDBDatabaseBackendImpl::PendingSetVersionCall::callbacks):
              (WebCore::IDBDatabaseBackendImpl::PendingSetVersionCall::PendingSetVersionCall):
              (WebCore::IDBDatabaseBackendImpl::IDBDatabaseBackendImpl):
              (WebCore::IDBDatabaseBackendImpl::setVersion):
              (WebCore::IDBDatabaseBackendImpl::open):
              (WebCore::IDBDatabaseBackendImpl::close):
              * storage/IDBDatabaseBackendImpl.h:
              * storage/IDBDatabaseBackendInterface.h:
              * storage/IDBFactoryBackendImpl.cpp:
              (WebCore::IDBFactoryBackendImpl::open):
              * storage/IDBRequest.cpp:
              (WebCore::IDBRequest::onBlocked):
              (WebCore::IDBRequest::dispatchEvent):
              (WebCore::IDBRequest::source):
              * storage/IDBRequest.h:
              * storage/IDBVersionChangeEvent.cpp: Copied from Source/WebKit/chromium/src/WebIDBCallbacksImpl.h.
              (WebCore::IDBVersionChangeEvent::create):
              (WebCore::IDBVersionChangeEvent::IDBVersionChangeEvent):
              (WebCore::IDBVersionChangeEvent::~IDBVersionChangeEvent):
              (WebCore::IDBVersionChangeEvent::version):
              * storage/IDBVersionChangeEvent.h: Copied from Source/WebKit/chromium/src/WebIDBCallbacksImpl.h.
              (WebCore::IDBVersionChangeEvent::isIDBVersionChangeEvent):
              * storage/IDBVersionChangeEvent.idl: Added.
              * storage/IDBVersionChangeRequest.cpp: Copied from Source/WebKit/chromium/src/WebIDBCallbacksImpl.h.
              (WebCore::IDBVersionChangeRequest::create):
              (WebCore::IDBVersionChangeRequest::IDBVersionChangeRequest):
              (WebCore::IDBVersionChangeRequest::~IDBVersionChangeRequest):
              (WebCore::IDBVersionChangeRequest::onBlocked):
              * storage/IDBVersionChangeRequest.h: Copied from Source/WebKit/chromium/src/WebIDBCallbacksImpl.h.
              * storage/IDBVersionChangeRequest.idl: Copied from Source/WebKit/chromium/src/WebIDBCallbacksImpl.h.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6c8254d7
  26. 08 Jan, 2011 1 commit
  27. 28 May, 2010 1 commit
    • jorlow@chromium.org's avatar
      2010-05-27 Jeremy Orlow <jorlow@chromium.org> · 6d85cb87
      jorlow@chromium.org authored
              Reviewed by Steve Block.
      
              Add IndexedDB's IDBIndex
              https://bugs.webkit.org/show_bug.cgi?id=39850
      
              Flesh out IDBIndex as much as possible until Andrei finishes
              his patch to get around passing Frame*'s all around.  I also
              cleaned up a bunch of existing files as I noticed style
              violations (while basing my new files off of the old).
      
              Not hooked up enough to test.  Will add tests soon.
      
              * Android.derived.jscbindings.mk
              * Android.derived.v8bindings.mk
              * Android.mk
              * CMakeLists.txt
              * DerivedSources.cpp
              * DerivedSources.make
              * GNUmakefile.am
              * WebCore.pri
              * WebCore.pro
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj
              * WebCore.xcodeproj/project.pbxproj
              * bindings/js/JSIDBAnyCustom.cpp:
              (WebCore::toJS):
              * bindings/v8/custom/V8IDBAnyCustom.cpp:
              (WebCore::toV8):
              * storage/IDBAny.cpp:
              (WebCore::IDBAny::idbIndexRequest):
              (WebCore::IDBAny::set):
              * storage/IDBAny.h:
              (WebCore::IDBAny::):
              * storage/IDBCallbacks.h:
              * storage/IDBDatabase.h:
              * storage/IDBDatabaseError.h:
              (WebCore::IDBDatabaseError::):
              * storage/IDBDatabaseError.idl:
              * storage/IDBDatabaseException.h:
              * storage/IDBDatabaseException.idl:
              * storage/IDBDatabaseImpl.cpp:
              * storage/IDBDatabaseImpl.h:
              * storage/IDBDatabaseRequest.cpp:
              * storage/IDBDatabaseRequest.h:
              * storage/IDBDatabaseRequest.idl:
              * storage/IDBIndex.h: Added.
              (WebCore::IDBIndex::~IDBIndex):
              * storage/IDBIndexImpl.cpp: Added.
              (WebCore::IDBIndexImpl::IDBIndexImpl):
              (WebCore::IDBIndexImpl::~IDBIndexImpl):
              * storage/IDBIndexImpl.h: Added.
              (WebCore::IDBIndexImpl::create):
              (WebCore::IDBIndexImpl::name):
              (WebCore::IDBIndexImpl::keyPath):
              (WebCore::IDBIndexImpl::unique):
              * storage/IDBIndexRequest.cpp: Added.
              (WebCore::IDBIndexRequest::IDBIndexRequest):
              (WebCore::IDBIndexRequest::~IDBIndexRequest):
              * storage/IDBIndexRequest.h: Added.
              (WebCore::IDBIndexRequest::create):
              (WebCore::IDBIndexRequest::name):
              (WebCore::IDBIndexRequest::keyPath):
              (WebCore::IDBIndexRequest::unique):
              * storage/IDBIndexRequest.idl: Added.
              * storage/IDBObjectStore.cpp:
              (WebCore::IDBObjectStore::IDBObjectStore):
              (WebCore::IDBObjectStore::~IDBObjectStore):
              (WebCore::IDBObjectStore::indexNames):
              (WebCore::IDBObjectStore::createIndex):
              (WebCore::IDBObjectStore::index):
              (WebCore::IDBObjectStore::removeIndex):
              * storage/IDBObjectStore.h:
              * storage/IDBObjectStoreRequest.cpp:
              (WebCore::IDBObjectStoreRequest::IDBObjectStoreRequest):
              (WebCore::IDBObjectStoreRequest::name):
              (WebCore::IDBObjectStoreRequest::keyPath):
              (WebCore::IDBObjectStoreRequest::indexNames):
              (WebCore::IDBObjectStoreRequest::createIndex):
              (WebCore::IDBObjectStoreRequest::index):
              (WebCore::IDBObjectStoreRequest::removeIndex):
              * storage/IDBObjectStoreRequest.h:
              * storage/IDBObjectStoreRequest.idl:
              * storage/IDBRequest.cpp:
              (WebCore::IDBRequest::onSuccess):
              * storage/IDBRequest.h:
              * storage/IndexedDatabaseRequest.idl:
      2010-05-27  Jeremy Orlow  <jorlow@chromium.org>
      
              Reviewed by Steve Block.
      
              Add IndexedDB's IDBIndex
              https://bugs.webkit.org/show_bug.cgi?id=39850
      
              Add WebKit layer for IDBIndex.
      
              * WebKit.gyp:
              * public/WebCommon.h:
              * public/WebIDBCallbacks.h:
              (WebKit::WebIDBCallbacks::onError):
              (WebKit::WebIDBCallbacks::onSuccess):
              * public/WebIDBDatabase.h:
              * public/WebIDBIndex.h: Added.
              (WebKit::WebIDBIndex::~WebIDBIndex):
              (WebKit::WebIDBIndex::name):
              (WebKit::WebIDBIndex::keyPath):
              (WebKit::WebIDBIndex::unique):
              * src/IDBCallbacksProxy.cpp:
              (WebCore::IDBCallbacksProxy::onSuccess):
              * src/IDBCallbacksProxy.h:
              * src/IDBDatabaseProxy.cpp:
              * src/IDBDatabaseProxy.h:
              * src/IDBIndexProxy.cpp: Added.
              (WebCore::IDBIndexProxy::create):
              (WebCore::IDBIndexProxy::IDBIndexProxy):
              (WebCore::IDBIndexProxy::~IDBIndexProxy):
              (WebCore::IDBIndexProxy::name):
              (WebCore::IDBIndexProxy::keyPath):
              (WebCore::IDBIndexProxy::unique):
              * src/IDBIndexProxy.h: Added.
              * src/WebIDBCallbacksImpl.cpp:
              (WebCore::WebIDBCallbacksImpl::onSuccess):
              * src/WebIDBCallbacksImpl.h:
              * src/WebIDBDatabaseImpl.cpp:
              * src/WebIDBDatabaseImpl.h:
              * src/WebIDBIndexImpl.cpp: Added.
              (WebKit::WebIDBIndexImpl::WebIDBIndexImpl):
              (WebKit::WebIDBIndexImpl::~WebIDBIndexImpl):
              (WebKit::WebIDBIndexImpl::name):
              (WebKit::WebIDBIndexImpl::keyPath):
              (WebKit::WebIDBIndexImpl::unique):
              * src/WebIDBIndexImpl.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d85cb87
  28. 29 Jan, 2010 1 commit
    • jorlow@chromium.org's avatar
      2010-01-29 Jeremy Orlow <jorlow@chromium.org> · d1ae3238
      jorlow@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              A first step towards the Indexed Database API
              https://bugs.webkit.org/show_bug.cgi?id=34342
      
              Add runtime enable support for Indexed Database API.
      
              * features.gypi:
              * public/WebRuntimeFeatures.h:
              * src/WebRuntimeFeatures.cpp:
              (WebKit::WebRuntimeFeatures::enableIndexedDatabase):
              (WebKit::WebRuntimeFeatures::isIndexedDatabaseEnabled):
      2010-01-29  Jeremy Orlow  <jorlow@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              A first step towards the Indexed Database API
              https://bugs.webkit.org/show_bug.cgi?id=34342
      
              Flesh out the first part of Indexed Database API.
              Currently only compiles with v8 + chromium for now.
              Completely non-functional, but it seems best to do
              this in chunks.
      
              No tests because nothing works yet.
      
              * Configurations/FeatureDefines.xcconfig:
              * WebCore.gypi:
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/DOMObjectsInclude.h:
              * bindings/v8/DerivedSourcesAllInOne.cpp:
              * bindings/v8/RuntimeEnabledFeatures.cpp:
              * bindings/v8/RuntimeEnabledFeatures.h:
              (WebCore::RuntimeEnabledFeatures::setIndexedDatabaseEnabled):
              (WebCore::RuntimeEnabledFeatures::indexedDatabaseEnabled):
              * bindings/v8/V8Index.cpp:
              * bindings/v8/V8Index.h:
              * bindings/v8/custom/V8DOMWindowCustom.cpp:
              (WebCore::V8DOMWindow::IndexedDBEnabled):
              * bindings/v8/custom/V8IDBRequestCustom.cpp: Added.
              (WebCore::V8IDBRequest::resultAccessorGetter):
              * bindings/v8/custom/V8IndexedDatabaseRequestCustom.cpp: Added.
              (WebCore::V8IndexedDatabaseRequest::openCallback):
              * dom/EventNames.h:
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::indexedDB):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
              * storage/IDBDatabaseError.h: Added.
              (WebCore::IDBDatabaseError::create):
              (WebCore::IDBDatabaseError::~IDBDatabaseError):
              (WebCore::IDBDatabaseError::code):
              (WebCore::IDBDatabaseError::setCode):
              (WebCore::IDBDatabaseError::message):
              (WebCore::IDBDatabaseError::setMessage):
              (WebCore::IDBDatabaseError::IDBDatabaseError):
              * storage/IDBDatabaseError.idl: Added.
              * storage/IDBDatabaseException.h: Added.
              (WebCore::IDBDatabaseException::create):
              (WebCore::IDBDatabaseException::~IDBDatabaseException):
              (WebCore::IDBDatabaseException::code):
              (WebCore::IDBDatabaseException::setCode):
              (WebCore::IDBDatabaseException::message):
              (WebCore::IDBDatabaseException::setMessage):
              (WebCore::IDBDatabaseException::IDBDatabaseException):
              * storage/IDBDatabaseException.idl: Added.
              * storage/IDBRequest.cpp: Added.
              (WebCore::IDBRequest::IDBRequest):
              (WebCore::IDBRequest::~IDBRequest):
              (WebCore::IDBRequest::abort):
              (WebCore::IDBRequest::eventTargetData):
              (WebCore::IDBRequest::ensureEventTargetData):
              * storage/IDBRequest.h: Added.
              (WebCore::IDBRequest::create):
              (WebCore::IDBRequest::readyState):
              (WebCore::IDBRequest::error):
              (WebCore::IDBRequest::result):
              (WebCore::IDBRequest::scriptExecutionContext):
              (WebCore::IDBRequest::toIDBRequest):
              (WebCore::IDBRequest::refEventTarget):
              (WebCore::IDBRequest::derefEventTarget):
              * storage/IDBRequest.idl: Added.
              * storage/IndexedDatabaseRequest.cpp: Added.
              (WebCore::IndexedDatabaseRequest::IndexedDatabaseRequest):
              (WebCore::IndexedDatabaseRequest::~IndexedDatabaseRequest):
              (WebCore::IndexedDatabaseRequest::open):
              * storage/IndexedDatabaseRequest.h: Added.
              (WebCore::IndexedDatabaseRequest::create):
              (WebCore::IndexedDatabaseRequest::request):
              * storage/IndexedDatabaseRequest.idl: Added.
      2010-01-29  Jeremy Orlow  <jorlow@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              A first step towards the Indexed Database API
              https://bugs.webkit.org/show_bug.cgi?id=34342
      
              Add Indexed Database API
      
              * configure.ac:
      2010-01-29  Jeremy Orlow  <jorlow@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              A first step towards the Indexed Database API
              https://bugs.webkit.org/show_bug.cgi?id=34342
      
              Add indexed database API.
      
              * Scripts/build-webkit:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1ae3238
  29. 23 Dec, 2009 1 commit
    • zimmermann@webkit.org's avatar
      2009-12-23 Nikolas Zimmermann <nzimmermann@rim.com> · 0794fbb6
      zimmermann@webkit.org authored
              Reviewed by Eric Seidel.
      
              Reverse JS GenerateConstructor logic
              https://bugs.webkit.org/show_bug.cgi?id=32910
      
              Make 'GenerateConstructor' the default setting for all classes, defined in IDL files. The flag is now obsolete and
              can be removed from all IDL files in a follow-up patch. Add new 'OmitConstructor' flag, that allows to restore the
              old default behaviour: do not generate JSFoobarConstructor class.
      
              No change in functionality, despite the fact that we're generating a lot more constructors now, as they have to
              be exposed through DOMWindow.idl -- this can be done per affected class in follow-up patches. Especially the SVG
              classes have to be exposed, most of them are missing JS constructors so far.
      
              As side effect HTMLOptionsCollection is now correctly exposing its constructor, thus fixing a test in fast/dom/wrapper-classes.html
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0794fbb6
  30. 14 May, 2009 1 commit
    • kov@webkit.org's avatar
      2009-05-14 Ben Murdoch <benm@google.com> · 4a35f85f
      kov@webkit.org authored
              Reviewed by Darin Adler.
      
              Add more ENABLE_DATABASE guards.
              https://bugs.webkit.org/show_bug.cgi?id=25616
      
              See also https://bugs.webkit.org/show_bug.cgi?id=24776 (original set of guards)
      
              * bindings/js/JSSQLResultSetRowListCustom.cpp:
              * bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
              * bindings/v8/custom/V8CustomSQLStatementCallback.h:
              * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
              * bindings/v8/custom/V8CustomSQLStatementErrorCallback.h:
              * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
              * bindings/v8/custom/V8CustomSQLTransactionCallback.h:
              * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
              * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h:
              * bindings/v8/custom/V8DatabaseCustom.cpp:
              * bindings/v8/custom/V8SQLResultSetRowListCustom.cpp:
              * bindings/v8/custom/V8SQLTransactionCustom.cpp:
              * storage/Database.cpp:
              * storage/DatabaseDetails.h:
              * storage/OriginUsageRecord.cpp:
              * storage/OriginUsageRecord.h:
              * storage/SQLError.h:
              * storage/SQLError.idl:
              * storage/SQLResultSet.cpp:
              * storage/SQLResultSet.h:
              * storage/SQLResultSet.idl:
              * storage/SQLResultSetRowList.cpp:
              * storage/SQLResultSetRowList.h:
              * storage/SQLResultSetRowList.idl:
              * storage/SQLStatementCallback.h:
              * storage/SQLStatementErrorCallback.h:
              * storage/SQLTransactionCallback.h:
              * storage/SQLTransactionErrorCallback.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4a35f85f
  31. 04 Feb, 2009 1 commit
  32. 31 Oct, 2007 1 commit
    • andersca's avatar
      Reviewed by Darin. · 5a5889b6
      andersca authored
              Add new SQLError implementation.
              
              * DerivedSources.make:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * storage/SQLError.h: Added.
              (WebCore::SQLError::SQLError):
              (WebCore::SQLError::code):
              (WebCore::SQLError::message):
              * storage/SQLError.idl: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a5889b6
  33. 19 Oct, 2007 1 commit
    • beidson's avatar
      JavaScriptCore: · e5def340
      beidson authored
      2007-10-19  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Sam
      
              Queue -> Deque! and small style tweaks
      
              * JavaScriptCore.vcproj/WTF/WTF.vcproj:
              * JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
              * wtf/Deque.h: Added.
              (WTF::DequeNode::DequeNode):
              (WTF::Deque::Deque):
              (WTF::Deque::~Deque):
              (WTF::Deque::size):
              (WTF::Deque::isEmpty):
              (WTF::Deque::append):
              (WTF::Deque::prepend):
              (WTF::Deque::first):
              (WTF::Deque::last):
              (WTF::Deque::removeFirst):
              (WTF::Deque::clear):
              * wtf/Queue.h: Removed.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Oliver
      
              Added a simple LinkedList based Queue to wtf
              We can make a better, more sophisticated an efficient one later, but have
              needed one for some time, now!
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * wtf/Queue.h: Added.
              (WTF::QueueNode::QueueNode):
              (WTF::Queue::Queue):
              (WTF::Queue::~Queue):
              (WTF::Queue::size):
              (WTF::Queue::isEmpty):
              (WTF::Queue::append):
              (WTF::Queue::prepend):
              (WTF::Queue::first):
              (WTF::Queue::last):
              (WTF::Queue::removeFirst):
              (WTF::Queue::clear):
      
      WebCore:
      2007-10-19  Brady Eidson  <beidson@apple.com>
              Reviewed by Anders
      
              Windows specific changes, as well as renaming Queue -> Deque
      
              * ForwardingHeaders/wtf/Deque.h: Added.
              * ForwardingHeaders/wtf/Queue.h: Removed.
              * platform/win/FileSystemWin.cpp:
              (WebCore::fileSize):
              (WebCore::fileExists):
              (WebCore::deleteFile):
              (WebCore::pathByAppendingComponent):
              (WebCore::fileSystemRepresentation):
              (WebCore::makeAllDirectories):
              (WebCore::homeDirectoryPath):
              * storage/Database.h:
              * storage/DatabaseThread.cpp:
              (WebCore::DatabaseThread::documentGoingAway):
              (WebCore::DatabaseThread::databaseGoingAway):
              (WebCore::DatabaseThread::dispatchNextTaskIdentifier):
              (WebCore::DatabaseThread::scheduleTask):
              (WebCore::DatabaseThread::scheduleImmediateTask):
              * storage/DatabaseThread.h:
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Tim and Anders
      
              Preliminary support for HTML5 local database storage (http://www.whatwg.org/specs/web-apps/current-work/)
      
              The specification is still in flux but the fundamentals are pretty solid and we can start using and testing
              this implementation even while filing bugs to track changes in the spec as it becomes more final
      
              There are some implementation details in this patch that seem unused or useless, but they remain in place
              while the spec is in flux and might go one way or another.
      
              * platform/Logging.cpp: Add StorageAPI logging channel
              * platform/Logging.h:
      
              * storage/Database.cpp: Added.
              (WebCore::Database::databaseInfoTableName):
              (WebCore::databaseVersionKey):
              (WebCore::Database::openDatabase): C++ version of the window.openDatabase() javascript API
              (WebCore::Database::Database):
              (WebCore::Database::~Database):
              (WebCore::Database::openAndVerifyVersion):
              (WebCore::retrieveTextResultFromDatabase):
              (WebCore::Database::getVersionFromDatabase):
              (WebCore::setTextValueInDatabase):
              (WebCore::Database::setVersionInDatabase):
              (WebCore::Database::databaseThreadGoingAway): May be removed in the future
              (WebCore::Database::disableAuthorizer): For internal (WebInspector) use to get around the authorizer's restrictions
              (WebCore::Database::enableAuthorizer):
              (WebCore::Database::guidForOriginAndName): Candidate for refactoring and/or moving to the database tracker.
                The GUID for each database identifier is currently for tracking the database version, but might be rescoped in the future
              (WebCore::Database::resetAuthorizer):
              (WebCore::Database::performPolicyChecks): Currently, the only post-executeSql policy check planned is the origin size usage
              (WebCore::Database::scheduleDatabaseCallback):
              (WebCore::Database::performOpenAndVerify):
              (WebCore::Database::performChangeVersion):
              (WebCore::Database::performExecuteSql):
              (WebCore::Database::performCloseTransaction):
              (WebCore::Database::performGetTableNames):
              (WebCore::Database::version): C++ version of the javascript API
              (WebCore::Database::changeVersion): Ditto
              (WebCore::Database::executeSql): Ditto
              (WebCore::Database::closeTransaction): Ditto
              (WebCore::Database::tableNames): For internal (WebInspector) use
              (WebCore::Database::deliverAllPendingCallbacks):
              (WebCore::Database::deliverPendingCallbacks):
              * storage/Database.h: Added.
              (WebCore::Database::databaseDebugName): For debug logging purposes
              * storage/Database.idl: Added.
      
              * storage/DatabaseAuthorizer.cpp: Added.
                The DatabaseAuthorizer is used to both prevent the script from doing "illegal" things in sql as well as
                tracking when effects certain sql statements might have (such as increasing the size of the database)
              (WebCore::DatabaseAuthorizer::DatabaseAuthorizer):
              (WebCore::DatabaseAuthorizer::reset):
              (WebCore::DatabaseAuthorizer::createTable):
              (WebCore::DatabaseAuthorizer::createTempTable):
              (WebCore::DatabaseAuthorizer::dropTable):
              (WebCore::DatabaseAuthorizer::dropTempTable):
              (WebCore::DatabaseAuthorizer::allowAlterTable):
              (WebCore::DatabaseAuthorizer::createIndex):
              (WebCore::DatabaseAuthorizer::createTempIndex):
              (WebCore::DatabaseAuthorizer::dropIndex):
              (WebCore::DatabaseAuthorizer::dropTempIndex):
              (WebCore::DatabaseAuthorizer::createTrigger):
              (WebCore::DatabaseAuthorizer::createTempTrigger):
              (WebCore::DatabaseAuthorizer::dropTrigger):
              (WebCore::DatabaseAuthorizer::dropTempTrigger):
              (WebCore::DatabaseAuthorizer::createVTable):
              (WebCore::DatabaseAuthorizer::dropVTable):
              (WebCore::DatabaseAuthorizer::allowDelete):
              (WebCore::DatabaseAuthorizer::allowInsert):
              (WebCore::DatabaseAuthorizer::allowUpdate):
              (WebCore::DatabaseAuthorizer::allowRead):
              (WebCore::DatabaseAuthorizer::allowAnalyze):
              (WebCore::DatabaseAuthorizer::allowPragma):
              (WebCore::DatabaseAuthorizer::allowAttach):
              (WebCore::DatabaseAuthorizer::allowDetach):
              (WebCore::DatabaseAuthorizer::allowFunction):
              (WebCore::DatabaseAuthorizer::disable):
              (WebCore::DatabaseAuthorizer::enable):
              (WebCore::DatabaseAuthorizer::denyBasedOnTableName): Don't allow access to the __WebKit meta info table as
                it should be invisible to scripts
              * storage/DatabaseAuthorizer.h: Added.
              (WebCore::DatabaseAuthorizer::lastActionWasInsert):
              (WebCore::DatabaseAuthorizer::lastActionIncreasedSize):
      
              * storage/DatabaseCallback.cpp: Added.
                Generic item to queue up for callbacks on the main thread for database activities that take place on
                a secondary thread
              (WebCore::DatabaseChangeVersionCallback::DatabaseChangeVersionCallback):
              (WebCore::DatabaseChangeVersionCallback::performCallback):
              (WebCore::DatabaseExecuteSqlCallback::DatabaseExecuteSqlCallback):
              (WebCore::DatabaseExecuteSqlCallback::performCallback):
              * storage/DatabaseCallback.h: Added.
              (WebCore::DatabaseCallback::~DatabaseCallback):
              (WebCore::DatabaseChangeVersionCallback::~DatabaseChangeVersionCallback):
              (WebCore::DatabaseExecuteSqlCallback::~DatabaseExecuteSqlCallback):
      
              * storage/DatabaseTask.h: Added.
                Generic work-item to be queued up on the background database thread
              (WebCore::DatabaseTask::isComplete):
              (WebCore::DatabaseOpenTask::exceptionCode):
              (WebCore::DatabaseOpenTask::openSuccessful):
              (WebCore::DatabaseTableNamesTask::tableNames):
              * storage/DatabaseTask.cpp: Added.
              (WebCore::DatabaseTask::DatabaseTask):
              (WebCore::DatabaseTask::~DatabaseTask):
              (WebCore::DatabaseTask::performTask):
              (WebCore::DatabaseTask::lockForSynchronousScheduling): Used when the main thread needs this task accomplished
                synchronously
              (WebCore::DatabaseTask::waitForSynchronousCompletion):
      
              (WebCore::DatabaseOpenTask::DatabaseOpenTask):
              (WebCore::DatabaseOpenTask::doPerformTask):
      
              (WebCore::DatabaseExecuteSqlTask::DatabaseExecuteSqlTask):
              (WebCore::DatabaseExecuteSqlTask::doPerformTask):
      
              (WebCore::DatabaseChangeVersionTask::DatabaseChangeVersionTask):
              (WebCore::DatabaseChangeVersionTask::doPerformTask):
      
              (WebCore::DatabaseTableNamesTask::DatabaseTableNamesTask):
              (WebCore::DatabaseTableNamesTask::doPerformTask):
      
              * storage/DatabaseThread.cpp: Added.
                The current design is that each Document will have its own DatabaseThread.  This makes scripts on each
                individual document more response at the cost of adding more threads and potentially creating concurrency
                issues when the same database is open twice from two different documents
              (WebCore::DatabaseThread::DatabaseThread):
              (WebCore::DatabaseThread::~DatabaseThread):
              (WebCore::DatabaseThread::start):
              (WebCore::DatabaseThread::documentGoingAway): Called to shut the thread down when the document is destroyed
              (WebCore::DatabaseThread::databaseGoingAway): Remove all pending tasks for this database
              (WebCore::DatabaseThread::databaseThreadStart):
              (WebCore::DatabaseThread::databaseThread):
              (WebCore::DatabaseThread::dispatchNextTaskIdentifier):
              (WebCore::DatabaseThread::scheduleTask):
              (WebCore::DatabaseThread::scheduleImmediateTask): Schedule a task that gets to "cut to the front of the line" when
                the main thread requires a task be performed synchronously
              (WebCore::DatabaseThread::wakeWorkThread):
              * storage/DatabaseThread.h: Added.
      
              * storage/DatabaseTracker.cpp: Added.
                The DatabaseTracker is the master management of all databases.  It will keep track of the filename for a given
                unique database, keep track of the total disk usage per-origin, and policys per database/origin
              (WebCore::DatabaseTracker::setDatabasePath):
              (WebCore::DatabaseTracker::databasePath):
              (WebCore::DatabaseTracker::tracker):
              (WebCore::DatabaseTracker::DatabaseTracker):
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::populateOrigins):
              (WebCore::DatabaseTracker::origins):
              (WebCore::DatabaseTracker::databaseNamesForOrigin):
              (WebCore::DatabaseTracker::addDatabase):
              (WebCore::DatabaseTracker::deleteAllDatabases):
              (WebCore::DatabaseTracker::deleteAllDatabasesForOrigin):
              * storage/DatabaseTracker.h: Added.
      
              * storage/SQLCallback.h: Added. C++ version of the javascript executeSql() callback
              (WebCore::SQLCallback::~SQLCallback):
              * storage/SQLCallback.idl: Added.
      
              * storage/SQLResultSet.cpp: Added. C++ version of the javascript SQLResultSet object
              (WebCore::SQLResultSet::SQLResultSet):
              (WebCore::SQLResultSet::insertId):
              (WebCore::SQLResultSet::rowsAffected):
              (WebCore::SQLResultSet::errorCode):
              (WebCore::SQLResultSet::error):
              (WebCore::SQLResultSet::rows):
              (WebCore::SQLResultSet::setInsertId):
              (WebCore::SQLResultSet::setRowsAffected):
              (WebCore::SQLResultSet::setErrorCode):
              (WebCore::SQLResultSet::setErrorMessage):
              * storage/SQLResultSet.h: Added.
              * storage/SQLResultSet.idl: Added.
      
              * storage/SQLResultSetRowList.cpp: Added. C++ version of the javascript SQLResultSetRowList object
              (WebCore::SQLResultSetRowList::length):
              * storage/SQLResultSetRowList.h: Added.
              (WebCore::SQLResultSetRowList::columnNames):
              (WebCore::SQLResultSetRowList::values):
              (WebCore::SQLResultSetRowList::addColumn):
              (WebCore::SQLResultSetRowList::addResult):
              * storage/SQLResultSetRowList.idl: Added.
      
              * storage/VersionChangeCallback.h: Added. C++ version of the javascript changeVersion() callback
              (WebCore::VersionChangeCallback::~VersionChangeCallback):
              * storage/VersionChangeCallback.idl: Added.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Oliver + Same
      
              Forwarding header for the new wtf/Queue.h
      
              * ForwardingHeaders/wtf/Queue.h: Added.
      
      2007-10-19  Anders Carlsson <beidson@apple.com>
      
             	Reviewed by Sam Weinig
      
             	Most of the Javascript binding support for the Storage API
      
             	* bindings/js/JSCustomSQLCallback.cpp: Added.
             	(WebCore::JSCustomSQLCallback::JSCustomSQLCallback):
             	(WebCore::JSCustomSQLCallback::handleEvent):
             	* bindings/js/JSCustomSQLCallback.h: Added.
      		Add JSCustomSQLCallback which is an SQLCallback implementation that dispatches
      		handleEvent to a JS function or a JS object with a handleEvent function.
      
             	* bindings/js/JSCustomVersionChangeCallback.cpp: Added.
             	(WebCore::JSCustomVersionChangeCallback::JSCustomVersionChangeCallback):
             	(WebCore::JSCustomVersionChangeCallback::handleEvent):
             	* bindings/js/JSCustomVersionChangeCallback.h: Added.
      		Add JSCustomSQLCallback which is an SQLCallback implementation that dispatches
      		handleEvent to a JS function or a JS object with a handleEvent function.
      
             	* bindings/js/JSDatabaseCustom.cpp: Added.
             	(WebCore::JSDatabase::executeSql):
      		Custom implementation of executeSql that takes an array of parameters.
      
             	(WebCore::JSDatabase::changeVersion):
      		Custom implementation of changeVersion.
      
             	* bindings/js/JSSQLResultSetRowListCustom.cpp: Added.
             	(WebCore::JSSQLResultSetRowList::item):
      		Custom method that returns a JS object that corresponds to a given row in the database.
      
             	* bindings/scripts/CodeGeneratorJS.pm:
      
             	* page/DOMWindow.cpp:
             	(WebCore::DOMWindow::openDatabase):
             	* page/DOMWindow.h:
             	* page/DOMWindow.idl:
      		Add openDatabase implementation.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Oliver
      
              Added tons of utility to the FileSystem abstractions, including moving
              some stuff over from IconDatabase
      
              * platform/FileSystem.h:
      
              * platform/cf/FileSystemCF.cpp: Added.
              (WebCore::fileSystemRepresentation):
      
              * platform/mac/FileSystemMac.mm:
      
              * platform/posix/FileSystemPOSIX.cpp: Added.
              (WebCore::fileExists):
              (WebCore::deleteFile):
              (WebCore::fileSize):
              (WebCore::pathByAppendingComponent):
              (WebCore::makeAllDirectories):
      
      2007-10-19  Timothy Hatcher  <timothy@apple.com>
      
              Reviewed by Adam Roben
      
              Preliminary Web Inspector support for the Storage API
              (This patch does not include the support artwork)
      
              * page/InspectorController.cpp:
              (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
              (WebCore::InspectorDatabaseResource::setScriptObject):
              (WebCore::databaseTableNames): Return the table names for a Database object.
              (WebCore::InspectorController::setWindowVisible):
              (WebCore::InspectorController::windowScriptObjectAvailable):
              (WebCore::InspectorController::populateScriptResources):
              (WebCore::InspectorController::addDatabaseScriptResource): Add the script object for the database.
              (WebCore::InspectorController::removeDatabaseScriptResource): Remove the script object for the database.
              (WebCore::InspectorController::clearDatabaseScriptResources): Remove all the database resources.
              (WebCore::InspectorController::didCommitLoad): Call clearDatabaseScriptResources().
              (WebCore::InspectorController::didOpenDatabase): Make a new InspectorDatabaseResource and add it to m_databaseResources.
              * page/InspectorController.h:
              * page/inspector/Database.js: Added.
              * page/inspector/DatabasePanel.js: Added.
              * page/inspector/ResourceCategory.js: Make resource categories assume less about the resource.
              * page/inspector/inspector.css: Add styles for the database panel.
              * page/inspector/inspector.html: Include DatabasePanel.js
              * page/inspector/inspector.js: Support for adding and removing Database resources.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Tim Hatcher
      
              Added support for Chrome prompts required by the Storage API
      
              * page/Chrome.cpp:
              (WebCore::Chrome::runDatabaseSizeLimitPrompt):
              * page/Chrome.h:
              * page/ChromeClient.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Contributions and Review by Anders
      
              Various SQLite tweaks in preparation for the storage API
      
              * loader/icon/SQLDatabase.cpp:
              (WebCore::SQLDatabase::~SQLDatabase):
              (WebCore::SQLDatabase::authorizerFunction): Static callback from sqlite for authorizer functions
              (WebCore::SQLDatabase::setAuthorizer):
              (WebCore::SQLDatabase::lock):
              (WebCore::SQLDatabase::unlock):
              * loader/icon/SQLDatabase.h:
      
              * loader/icon/SQLStatement.cpp:
              (WebCore::SQLStatement::prepare): Switch to prepare16_v2
              (WebCore::SQLStatement::bindDouble): Added
              (WebCore::SQLStatement::bindValue): Bind a wrapped SQLValue object (described later)
              (WebCore::SQLStatement::bindParameterCount): Accessor to the sqlite3 API for validating statements
              * loader/icon/SQLStatement.h:
              (WebCore::SQLStatement::isPrepared):
      
              * platform/sql/SQLAuthorizer.cpp: Added.  Fully virtual interface to implement your own SQLite authorizer
              * platform/sql/SQLAuthorizer.h: Added.
              (WebCore::SQLAuthorizer::~SQLAuthorizer):
              (WebCore::SQLAuthorizer::createTable):
              (WebCore::SQLAuthorizer::createTempTable):
              (WebCore::SQLAuthorizer::dropTable):
              (WebCore::SQLAuthorizer::dropTempTable):
              (WebCore::SQLAuthorizer::allowAlterTable):
              (WebCore::SQLAuthorizer::createIndex):
              (WebCore::SQLAuthorizer::createTempIndex):
              (WebCore::SQLAuthorizer::dropIndex):
              (WebCore::SQLAuthorizer::dropTempIndex):
              (WebCore::SQLAuthorizer::createTrigger):
              (WebCore::SQLAuthorizer::createTempTrigger):
              (WebCore::SQLAuthorizer::dropTrigger):
              (WebCore::SQLAuthorizer::dropTempTrigger):
              (WebCore::SQLAuthorizer::createView):
              (WebCore::SQLAuthorizer::createTempView):
              (WebCore::SQLAuthorizer::dropView):
              (WebCore::SQLAuthorizer::dropTempView):
              (WebCore::SQLAuthorizer::createVTable):
              (WebCore::SQLAuthorizer::dropVTable):
              (WebCore::SQLAuthorizer::allowDelete):
              (WebCore::SQLAuthorizer::allowInsert):
              (WebCore::SQLAuthorizer::allowUpdate):
              (WebCore::SQLAuthorizer::allowTransaction):
              (WebCore::SQLAuthorizer::allowSelect):
              (WebCore::SQLAuthorizer::allowRead):
              (WebCore::SQLAuthorizer::allowAttach):
              (WebCore::SQLAuthorizer::allowDetach):
              (WebCore::SQLAuthorizer::allowReindex):
              (WebCore::SQLAuthorizer::allowAnalyze):
              (WebCore::SQLAuthorizer::allowFunction):
      
              * platform/sql/SQLValue.cpp: Added.  Contains a value for a SQLite database that can be one of a few types.
                For now, just a String or a double
              (WebCore::SQLValue::SQLValue):
              (WebCore::SQLValue::string):
              (WebCore::SQLValue::number):
              * platform/sql/SQLValue.h: Added.
              (WebCore::SQLValue::):
              (WebCore::SQLValue::SQLValue):
              (WebCore::SQLValue::type):
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Maciej
      
              Changed IconDatabase over to use new FileSystem apis
      
              * loader/icon/IconDatabase.cpp:
              (WebCore::IconDatabase::open):
      
      WebKit:
      
              Reviewed by Tim Hatcher
      
              Added support for Chrome prompts required by the Storage API
              Added support API for future managing of databases from the WebKit client
              Added preference and initialization for the databases path
      
              * Misc/WebDatabaseManager.h: Added.  WebDatabaseManager is how a WebKit application can list and
                remove the current available databases
              * Misc/WebDatabaseManager.mm: Added.
              (+[WebDatabaseManager origins]):
              (+[WebDatabaseManager databasesWithOrigin:]):
              (+[WebDatabaseManager deleteAllDatabases]):
              (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
              (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]):
              (WebKitSetWebDatabasesPathIfNecessary): Setup the database path
              * Misc/WebDatabaseManagerPrivate.h: Added.
      
              * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for
                an origin exceeding its size limit
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::runDatabaseSizeLimitPrompt):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebUIDelegate.h:
      
              * WebView/WebView.mm:
              (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path
              * WebView/WebViewInternal.h:
      
      WebKitSite:
      
              Reviewed by Tim Hatcher
      
              Sample database API usage
      
              * misc/DatabaseExample.html: Added.
      
      WebKit/win:
      
              Reviewed by Anders
      
              Keep windows building with new Chrome additions
      
              * WebChromeClient.cpp:
              * WebChromeClient.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5def340
  34. 18 Jun, 2007 2 commits
    • weinig's avatar
      WebCore: · 8b5bc0db
      weinig authored
              Reviewed by Beth.
      
              Fix build and update licenses. 
      
              * WebCore.xcodeproj/project.pbxproj:
              * page/BarInfo.cpp:
              * page/BarInfo.h:
              * page/BarInfo.idl:
              * page/Screen.cpp:
              (WebCore::Screen::height):
              (WebCore::Screen::width):
              (WebCore::Screen::colorDepth):
              (WebCore::Screen::pixelDepth):
              (WebCore::Screen::availLeft):
              (WebCore::Screen::availTop):
              (WebCore::Screen::availHeight):
              (WebCore::Screen::availWidth):
              * page/Screen.h:
              * page/Screen.idl:
      
      WebKit:
      
              Reviewed by Beth.
      
              Build fix.
      
              * WebCoreSupport/WebChromeClient.mm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b5bc0db
    • weinig's avatar
      Reviewed by Geoff. · 6f399844
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14211
              Move the BarInfo object out of the JS bindings
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_window.cpp:
              (KJS::WindowPrivate::WindowPrivate):
              (KJS::Window::mark):
              (KJS::Window::getValueProperty):
              (KJS::Window::clearHelperObjectProperties):
              (KJS::Window::disconnectFrame):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * page/BarInfo.cpp: Added.
              (WebCore::BarInfo::BarInfo):
              (WebCore::BarInfo::disconnectFrame):
              (WebCore::BarInfo::visible):
              * page/BarInfo.h: Added.
              (WebCore::BarInfo::):
              * page/BarInfo.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::~DOMWindow):
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::locationbar):
              (WebCore::DOMWindow::menubar):
              (WebCore::DOMWindow::personalbar):
              (WebCore::DOMWindow::scrollbars):
              (WebCore::DOMWindow::statusbar):
              (WebCore::DOMWindow::toolbar):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f399844
  35. 12 Jun, 2007 1 commit
  36. 07 Jul, 2006 1 commit
    • darin's avatar
      Reviewed by Adele. · 22a690e4
      darin authored
              - fix some license mistakes
      
              * LICENSE-APPLE: Added more years of publication to the copyright here.
      
              * html/CanvasGradient.idl: Corrected license on this file. It had the wrong one.
              * html/CanvasPattern.idl: Ditto.
              * html/CanvasRenderingContext2D.idl: Ditto.
              * html/HTMLCanvasElement.idl: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22a690e4