1. 19 May, 2013 1 commit
    • andersca@apple.com's avatar
      Remove link prerendering code · a82aee4a
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116415
      
      Reviewed by Darin Adler.
      
      .:
      
      This code was only used by Chromium and is dead now.
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      This code was only used by Chromium and is dead now.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/Document.cpp:
      (WebCore::Document::Document):
      * dom/Document.h:
      (WebCore):
      (Document):
      * dom/EventNames.h:
      (WebCore):
      * html/HTMLLinkElement.cpp:
      * html/HTMLLinkElement.h:
      * html/LinkRelAttribute.cpp:
      (WebCore::LinkRelAttribute::LinkRelAttribute):
      * html/LinkRelAttribute.h:
      (LinkRelAttribute):
      * loader/LinkLoader.cpp:
      (WebCore::LinkLoader::~LinkLoader):
      (WebCore::LinkLoader::loadLink):
      (WebCore::LinkLoader::released):
      * loader/LinkLoader.h:
      (WebCore):
      (LinkLoader):
      * loader/LinkLoaderClient.h:
      (LinkLoaderClient):
      * loader/Prerenderer.cpp: Removed.
      * loader/Prerenderer.h: Removed.
      * loader/PrerendererClient.cpp: Removed.
      * loader/PrerendererClient.h: Removed.
      * platform/PrerenderClient.h: Removed.
      * platform/PrerenderHandle.h: Removed.
      
      Source/WebKit/blackberry:
      
      This code was only used by Chromium and is dead now.
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WebKit/mac:
      
      This code was only used by Chromium and is dead now.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      This code was only used by Chromium and is dead now.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      This code was only used by Chromium and is dead now.
      
      * wtf/FeatureDefines.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a82aee4a
  2. 08 Dec, 2012 1 commit
    • gavinp@chromium.org's avatar
      Add status events on <link rel=prerender> elements. · c62cd107
      gavinp@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=96474
      
      Reviewed by Adam Barth.
      
      The new PrerenderStatusEvent is sent to link elements when
      prerenders are started by the embedder, and also sent when they
      are stopped. Pages using this feature can now serialize launching
      prerenders, and track timing performance.
      
      Source/Platform:
      
      * chromium/public/WebPrerender.h:
      (WebKit::WebPrerender::WebPrerender):
      (WebKit::WebPrerender::operator=):
      (WebPrerender):
      
      Source/WebCore:
      
      Tested in a new WebKitUnitTest for the chromium port.
      
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/EventNames.h:
      (WebCore):
      * html/HTMLLinkElement.cpp:
      (WebCore):
      (WebCore::HTMLLinkElement::didStartLinkPrerender):
      (WebCore::HTMLLinkElement::didStopLinkPrerender):
      (WebCore::HTMLLinkElement::didSendLoadForLinkPrerender):
      (WebCore::HTMLLinkElement::didSendDOMContentLoadedForLinkPrerender):
      * html/HTMLLinkElement.h:
      (HTMLLinkElement):
      * loader/LinkLoader.cpp:
      (WebCore::LinkLoader::didStartPrerender):
      (WebCore):
      (WebCore::LinkLoader::didStopPrerender):
      (WebCore::LinkLoader::didSendLoadForPrerender):
      (WebCore::LinkLoader::didSendDOMContentLoadedForPrerender):
      (WebCore::LinkLoader::loadLink):
      * loader/LinkLoader.h:
      (LinkLoader):
      * loader/LinkLoaderClient.h:
      (LinkLoaderClient):
      * loader/Prerenderer.cpp:
      (WebCore::Prerenderer::render):
      * loader/Prerenderer.h:
      (WebCore):
      (Prerenderer):
      * platform/PrerenderClient.h: Copied from Source/WebCore/loader/LinkLoaderClient.h.
      (WebCore):
      (PrerenderClient):
      (WebCore::PrerenderClient::~PrerenderClient):
      * platform/PrerenderHandle.h:
      (WebCore):
      (PrerenderHandle):
      * platform/chromium/Prerender.cpp:
      (WebCore::Prerender::Prerender):
      (WebCore::Prerender::removeClient):
      (WebCore):
      (WebCore::Prerender::add):
      (WebCore::Prerender::cancel):
      (WebCore::Prerender::abandon):
      (WebCore::Prerender::didStartPrerender):
      (WebCore::Prerender::didStopPrerender):
      (WebCore::Prerender::didSendLoadForPrerender):
      (WebCore::Prerender::didSendDOMContentLoadedForPrerender):
      * platform/chromium/Prerender.h:
      (WebKit):
      (WebCore):
      (Prerender):
      * platform/chromium/PrerenderHandle.cpp:
      (WebCore::PrerenderHandle::create):
      (WebCore::PrerenderHandle::PrerenderHandle):
      (WebCore::PrerenderHandle::~PrerenderHandle):
      (WebCore::PrerenderHandle::removeClient):
      (WebCore):
      * platform/chromium/support/WebPrerender.cpp:
      (WebKit::WebPrerender::toPrerender):
      (WebKit):
      (WebKit::WebPrerender::assign):
      (WebKit::WebPrerender::isNull):
      (WebKit::WebPrerender::didStartPrerender):
      (WebKit::WebPrerender::didStopPrerender):
      (WebKit::WebPrerender::didSendLoadForPrerender):
      (WebKit::WebPrerender::didSendDOMContentLoadedForPrerender):
      
      Source/WebKit/chromium:
      
      * WebKit.gyp:
      * WebKit.gypi:
      * tests/FrameTestHelpers.cpp:
      (WebKit::FrameTestHelpers::createWebView):
      (FrameTestHelpers):
      (WebKit::FrameTestHelpers::createWebViewAndLoad):
      * tests/FrameTestHelpers.h:
      (FrameTestHelpers):
      * tests/PrerenderingTest.cpp: Added.
      * tests/data/prerender/multiple_prerenders.html: Added.
      * tests/data/prerender/single_prerender.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c62cd107
  3. 17 Jun, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-06-17 Gavin Peters <gavinp@chromium.org> · af5124d0
      commit-queue@webkit.org authored
              Reviewed by Adam Barth.
      
              refactor HTMLLinkElement to allow Link header implementation
              https://bugs.webkit.org/show_bug.cgi?id=51941
      
              This change moves the LinkRelAttribute helper struct into its own
              file in html/, since the LinkRelAttribute is used by the LinkLoader,
              and leaving it in HTMLLinkElement would have been too circular for
              my tastes.
      
              The new LinkLoader class contains the loader code for icons, dns
              prefetching and prefetch/prerender/subresource into a common
              LinkLoader.  This is a step in getting the Link header working in
              WebKit, as discussed in webkit-dev For more information, see
              thread "beforeload & link
              (esp rel prefetch)".
      
              No new tests, since this is a refactoring.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * html/HTMLLinkElement.cpp:
              (WebCore::HTMLLinkElement::HTMLLinkElement):
              (WebCore::HTMLLinkElement::~HTMLLinkElement):
              (WebCore::HTMLLinkElement::parseMappedAttribute):
              (WebCore::HTMLLinkElement::shouldLoadLink):
              (WebCore::HTMLLinkElement::process):
              (WebCore::HTMLLinkElement::linkLoaded):
              (WebCore::HTMLLinkElement::linkLoadingErrored):
              * html/HTMLLinkElement.h:
              * html/LinkRelAttribute.cpp: Added.
              (WebCore::LinkRelAttribute::LinkRelAttribute):
              * html/LinkRelAttribute.h: Added.
              * html/parser/HTMLPreloadScanner.cpp:
              (WebCore::HTMLNames::PreloadTask::relAttributeIsStyleSheet):
              * loader/LinkLoader.cpp: Added.
              (WebCore::LinkLoader::LinkLoader):
              (WebCore::LinkLoader::~LinkLoader):
              (WebCore::LinkLoader::linkLoadedTimerFired):
              (WebCore::LinkLoader::notifyFinished):
              (WebCore::LinkLoader::loadLink):
              * loader/LinkLoader.h: Added.
              * loader/LinkLoaderClient.h: Added.
              (WebCore::LinkLoaderClient::~LinkLoaderClient):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89146 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af5124d0
  4. 22 Mar, 2011 1 commit
    • tkent@chromium.org's avatar
      2011-03-22 Kent Tamura <tkent@chromium.org> · b1d0b76c
      tkent@chromium.org authored
              Reviewed by Eric Seidel.
      
              REGRESSION(r80096): Number type input unexpectedly rounds fractional values
              https://bugs.webkit.org/show_bug.cgi?id=56367
      
              Introduce clampToInteger(unsigned).
      
              * wtf/MathExtras.h:
              (clampToInteger): Added.
      2011-03-22  Kent Tamura  <tkent@chromium.org>
      
              Reviewed by Eric Seidel.
      
              REGRESSION(r80096): Number type input unexpectedly rounds fractional values
              https://bugs.webkit.org/show_bug.cgi?id=56367
      
              Because the default value of the maximum fractional digits of NSNumberFormatter
              and ICU NumberFormat is 3, the value 0.55555 is rounded to 0.556 in a
              localized representation. This bug affects only in Mac and Chromium.
      
              To fix this bug,
               - Add "maximum fractional digits" parameter to formatLocalizedNumber(), and
               - NumberInputType::visibleValue uses parseToDoubleForNumberTypeWithDecimalPlaces()
                instead of parseToDoubleForNumberType().
      
              No automated tests because the behavior is locale-dependent. This change
              updates a manual test.
      
              * html/NumberInputType.cpp:
              (WebCore::NumberInputType::visibleValue):
                Use parseToDoubleForNumberTypeWithDecimalPlaces() and passing fractional
                part length to formatLocalizedNumber().
              * manual-tests/input-number-localization.html:
                Update the test to cover this change.
              * platform/text/LocalizedNumber.h: Add a parameter to formatLocalizedNumber().
              * platform/text/LocalizedNumberICU.cpp:
              (WebCore::formatLocalizedNumber): Call setMaximumFractionalDigits().
              * platform/text/LocalizedNumberNone.cpp:
              (WebCore::formatLocalizedNumber):
              * platform/text/mac/LocalizedNumberMac.mm:
              (WebCore::formatLocalizedNumber): Call setMaximumFractionalDigits().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1d0b76c
  5. 01 Mar, 2011 1 commit
    • tkent@chromium.org's avatar
      Support localized numbers in <input type=number> · c945b6c5
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=42484
      
      Reviewed by Dimitri Glazkov.
      
      Source/WebCore:
      
      This change adds support of localized numbers in <input type=number>.
      This affects only the UI, and not HTMLInputElement::value.
      
      - Remove the keyboard input restriction feature because it is hard to
        retrieve characters usable for localized numbers in ICU.
      
      - Separate convertFromVisibleValue() from sanitizeValue().
        sanitizeValue() is used for not only converting a renderer value to a
        DOM value.
      
      - Implement LocalizedNumber functions for ICU and NSNumberFormatter.
        It is used only in Chromium for now.
      
      Test: manual-tests/input-number-localization.html
      
      * WebCore.gypi: Use LocalizedNumberICU.cpp.
      * WebCore.xcodeproj/project.pbxproj:
        Add LocalizedNumberMac.mm and remove LocalizedNumberNone.cpp.
      * dom/InputElement.h: Introduce convertFromVisibleValue().
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::convertFromVisibleValue):
      * html/HTMLInputElement.h:
      * html/InputType.cpp:
      (WebCore::InputType::convertFromVisibleValue):
      * html/InputType.h:
      * html/NumberInputType.cpp: Remove isHTMLNumberCharacter(),
        isNumberCharacter(), and handleBeforeTextInsertedEvent() because we
        remove the keyboard input restriction feature for type=number.
      (WebCore::NumberInputType::convertFromVisibleValue):
      (WebCore::NumberInputType::sanitizeValue):
      * html/NumberInputType.h:
      * manual-tests/input-number-localization.html: Add a manual test because
        the behavior depends on the current locale.
      * platform/text/LocalizedNumber.h: Remove isLocalizedNumberCharacter().
      * platform/text/LocalizedNumberICU.cpp:
        Implement LocalizedNumber functions with ICU NumberFormat.
      (WebCore::createFormatterForCurrentLocale):
      (WebCore::parseLocalizedNumber):
      (WebCore::formatLocalizedNumber):
      * platform/text/LocalizedNumberNone.cpp: Remove isLocalizedNumberCharacter().
      * platform/text/mac/LocalizedNumberMac.mm:
        Implement LocalizedNumber functions with NSNumberFormatter.
      (WebCore::parseLocalizedNumber):
      (WebCore::formatLocalizedNumber):
      * rendering/RenderTextControlSingleLine.cpp:
      (WebCore::RenderTextControlSingleLine::subtreeHasChanged):
      * wml/WMLInputElement.h:
      (WebCore::WMLInputElement::convertFromVisibleValue):
        Implemented as a function doing nothing.
      
      LayoutTests:
      
      Update an existing test because of removing the keyboard input
      restriction feature.
      
      * fast/forms/input-number-keyoperation-expected.txt:
      * fast/forms/script-tests/input-number-keyoperation.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80096 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c945b6c5
  6. 25 Jan, 2011 1 commit
    • tkent@chromium.org's avatar
      API to support localized numbers for <input type=number> · a2a0e4ec
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=45730
      
      Reviewed by Dimitri Glazkov.
      
      Introduce platform/text/LocalizedNumber.h, and
      LocalizedNumberNone.cpp, which is an empty implementation of the
      functions in LocalizedNumber.h.  We use LocalizedNumberNone.cpp in
      all platforms for now.
      
      A string in a type=number field is parsed as a localized number
      first. If the parsing fails, it is parsed as the HTML5 number.
      
      We introduce HTMLInputElement::visibleValue(). It represents a value
      which should be drawn by a renderer. HTMLInputElement::value() always
      returns a number formatted for HTML5, and visibleValue() may return a
      localized number.
      
      No new tests because this doesn't change any behavior.
      
      * Android.mk: Add LocalizedNumber.h and/or LocalizedNumberNone.cpp.
      * CMakeLists.txt: ditto.
      * GNUmakefile.am: ditto.
      * WebCore.gypi: ditto.
      * WebCore.pro: ditto.
      * WebCore.vcproj/WebCore.vcproj: ditto.
      * WebCore.xcodeproj/project.pbxproj: ditto.
      * dom/InputElement.h: Add visibleValue().
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::visibleValue): Added.  Just call InputType::visibleValue().
      * html/HTMLInputElement.h: Declare visibleValue().
      * html/InputType.cpp:
      (WebCore::InputType::visibleValue): Add the default implementation of
        visibleValue(), which returns HTMLInputElement::value().
      * html/InputType.h: Add declarations.
      * html/NumberInputType.cpp:
      (WebCore::isHTMLNumberCharacter): Renamed from isNumberCharacter().
      (WebCore::isNumberCharacter): Calls isLocalizedNumberCharacter() and isHTMLNumberCharacter().
      (WebCore::NumberInputType::visibleValue):
        Returns a localized number string produced by formatLocalizedNumber().
      (WebCore::NumberInputType::isAcceptableValue): Calls parseLocalizedNumber().
      (WebCore::NumberInputType::sanitizeValue): Calls parseLocalizedNumber().
      * html/NumberInputType.h: Add declarations.
      * platform/text/LocalizedNumber.h: Added.
      * platform/text/LocalizedNumberNone.cpp: Added.
      (WebCore::parseLocalizedNumber):
      (WebCore::formatLocalizedNumber):
      (WebCore::isLocalizedNumberCharacter):
      * rendering/RenderTextControlSingleLine.cpp:
      (WebCore::RenderTextControlSingleLine::updateFromElement):
        Calls InputElement::visibleValue() instead of value().
      * wml/WMLInputElement.h:
      (WebCore::WMLInputElement::visibleValue): Added. It just calls value().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a2a0e4ec
  7. 08 Jan, 2011 1 commit
  8. 10 Nov, 2010 1 commit
    • ossy@webkit.org's avatar
      2010-11-10 Csaba Osztrogonác <ossy@webkit.org> · 37441860
      ossy@webkit.org authored
              Reviewed by David Hyatt.
      
              HTML5 Ruby support should be mandatory feature
              https://bugs.webkit.org/show_bug.cgi?id=49272
      
              Remove Ruby as optional feature.
      
              * Configurations/FeatureDefines.xcconfig:
              * JavaScriptCorePrefix.h:: Touch it to avoid incremental build failure on Windows.
      2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
      
              Reviewed by David Hyatt.
      
              HTML5 Ruby support should be mandatory feature
              https://bugs.webkit.org/show_bug.cgi?id=49272
      
              Remove Ruby as optional feature.
      
              * features.gypi:
      2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
      
              Reviewed by David Hyatt.
      
              HTML5 Ruby support should be mandatory feature
              https://bugs.webkit.org/show_bug.cgi?id=49272
      
              * WebKitPrefix.h: Touch it to avoid incremental build failure on Windows.
      2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
      
              Reviewed by David Hyatt.
      
              HTML5 Ruby support should be mandatory feature
              https://bugs.webkit.org/show_bug.cgi?id=49272
      
              Remove Ruby as optional feature.
      
              * Configurations/FeatureDefines.xcconfig:
      2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
      
              Reviewed by David Hyatt.
      
              HTML5 Ruby support should be mandatory feature
              https://bugs.webkit.org/show_bug.cgi?id=49272
      
              Remove Ruby as optional feature.
      
              * win/tools/vsprops/FeatureDefines.vsprops:
              * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
      
              Reviewed by David Hyatt.
      
              HTML5 Ruby support should be mandatory feature
              https://bugs.webkit.org/show_bug.cgi?id=49272
      
              Remove Ruby as optional feature.
      
              * Configurations/FeatureDefines.xcconfig:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCorePrefix.h: Touch WebCorePrefix.h to avoid incremental build failure on Windows.
              * config.h: Touch config.h to avoid incremental build failure on Windows.
              * features.pri:
              * html/HTMLTagNames.in:
              * rendering/RenderBlock.cpp: Remove ENABLE_RUBY guard.
              (WebCore::canMergeContiguousAnonymousBlocks):
              * rendering/RenderObject.cpp: Remove ENABLE_RUBY guard.
              (WebCore::RenderObject::createObject):
              * rendering/RenderRuby.cpp: Remove ENABLE_RUBY guard.
              * rendering/RenderRuby.h: Remove ENABLE_RUBY guard.
              * rendering/RenderRubyBase.cpp: Remove ENABLE_RUBY guard.
              * rendering/RenderRubyBase.h: Remove ENABLE_RUBY guard.
              * rendering/RenderRubyRun.cpp: Remove ENABLE_RUBY guard.
              * rendering/RenderRubyRun.h: Remove ENABLE_RUBY guard.
              * rendering/RenderRubyText.cpp: Remove ENABLE_RUBY guard.
              * rendering/RenderRubyText.h: Remove ENABLE_RUBY guard.
      2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
      
              Reviewed by David Hyatt.
      
              HTML5 Ruby support should be mandatory feature
              https://bugs.webkit.org/show_bug.cgi?id=49272
      
              Remove Ruby as optional feature.
      
              * cmake/OptionsEfl.cmake:
              * cmakeconfig.h.cmake:
              * configure.ac:
      2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
      
              Reviewed by David Hyatt.
      
              HTML5 Ruby support should be mandatory feature
              https://bugs.webkit.org/show_bug.cgi?id=49272
      
              Remove Ruby as optional feature.
      
              * Scripts/build-webkit:
      2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
      
              Reviewed by David Hyatt.
      
              HTML5 Ruby support should be mandatory feature
              https://bugs.webkit.org/show_bug.cgi?id=49272
      
              Remove Ruby as optional feature.
      
              * Configurations/FeatureDefines.xcconfig:
              * WebKit2Prefix.h: Touch it to avoid incremental build failure on Windows.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37441860
  9. 14 Feb, 2010 1 commit
  10. 11 Feb, 2010 1 commit
    • mjs@apple.com's avatar
      2010-02-08 Maciej Stachowiak <mjs@apple.com> · 33a393c9
      mjs@apple.com authored
              Reviewed by Cameron Zwarich.
      
              Restore ENABLE_RUBY flag so vendors can ship with Ruby disabled if they choose.
              https://bugs.webkit.org/show_bug.cgi?id=34698
      
              * Configurations/FeatureDefines.xcconfig:
      2010-02-08  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Cameron Zwarich.
      
              Restore ENABLE_RUBY flag so vendors can ship with Ruby disabled if they choose.
              https://bugs.webkit.org/show_bug.cgi?id=34698
      
              * win/tools/vsprops/FeatureDefines.vsprops:
      2010-02-08  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Cameron Zwarich.
      
              Restore ENABLE_RUBY flag so vendors can ship with Ruby disabled if they choose.
              https://bugs.webkit.org/show_bug.cgi?id=34698
      
              * Configurations/FeatureDefines.xcconfig:
      2010-02-08  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Cameron Zwarich.
      
              Restore ENABLE_RUBY flag so vendors can ship with Ruby disabled if they choose.
              https://bugs.webkit.org/show_bug.cgi?id=34698
      
              * Configurations/FeatureDefines.xcconfig:
              * DerivedSources.make:
              * GNUmakefile.am:
              * html/HTMLTagNames.in: Make the ruby-related tag names conditional.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::createObject): ifdef the code that would create ruby elements.
              * rendering/RenderObject.h: ditto above
              * rendering/RenderRuby.cpp: ifdef this whole file
              * rendering/RenderRuby.h: ditto
              * rendering/RenderRubyBase.cpp: ditto
              * rendering/RenderRubyBase.h: ditto
              * rendering/RenderRubyRun.cpp: ditto
              * rendering/RenderRubyRun.h: ditto
              * rendering/RenderRubyText.cpp: ditto
              * rendering/RenderRubyText.h: ditto
      2010-02-08  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Cameron Zwarich.
      
              Restore ENABLE_RUBY flag so vendors can ship with Ruby disabled if they choose.
              https://bugs.webkit.org/show_bug.cgi?id=34698
      
              * configure.ac:
      2010-02-08  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Cameron Zwarich.
      
              Restore ENABLE_RUBY flag so vendors can ship with Ruby disabled if they choose.
              https://bugs.webkit.org/show_bug.cgi?id=34698
      
              * Scripts/build-webkit:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33a393c9
  11. 01 Nov, 2009 1 commit
    • rolandsteiner@chromium.org's avatar
      Bug 28420 - Implement HTML5 <ruby> rendering · 58b328f6
      rolandsteiner@chromium.org authored
      (https://bugs.webkit.org/show_bug.cgi?id=28420)
      
      Reviewed by Dave Hyatt.
      
      First rudimentary implementation of HTML5 ruby rendering support.
      
      WebCore: 
      
      Following the HTML 5 spec, the box object model for a <ruby> element allows several runs of ruby
      bases with their respective ruby texts looks as follows:
      
      1 RenderRuby object, corresponding to the whole <ruby> HTML element
           1+ RenderRubyRun (anonymous)
               0 or 1 RenderRubyText - shuffled to the front in order to re-use existing block layouting
                   0-n inline object(s)
               0 or 1 RenderRubyBase - contains the inline objects that make up the ruby base
                   1-n inline object(s)
      
      Note: <rp> elements are defined as having 'display:none' and thus normally are not assigned a renderer.
              
      New layout tests will be committed in a follow-up patch under fast/ruby.
      
      Makefiles, etc.
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.xcodeproj/project.pbxproj:
      
      CSS
      * css/html.css: Added <ruby> and <rt>
      
      Existing render files:
      * rendering/RenderBlock.cpp: make moveChild a member function moveChildTo
      (WebCore::RenderBlock::moveChildTo):
      (WebCore::RenderBlock::makeChildrenNonInline):
      (WebCore::RenderBlock::removeChild):
      * rendering/RenderBlock.h:
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::createObject): instantiate ruby renderers based on element name
      * rendering/RenderObject.h: add query methods for ruby renderers
      (WebCore::RenderObject::isRuby):
      (WebCore::RenderObject::isRubyBase):
      (WebCore::RenderObject::isRubyRun):
      (WebCore::RenderObject::isRubyText):
      
      New ruby renderers:
      * rendering/RenderRuby.cpp: Added.
      (WebCore::lastRubyRun):
      (WebCore::findRubyRunParent):
      (WebCore::RenderRubyAsInline::RenderRubyAsInline):
      (WebCore::RenderRubyAsInline::~RenderRubyAsInline):
      (WebCore::RenderRubyAsInline::isChildAllowed):
      (WebCore::RenderRubyAsInline::addChild):
      (WebCore::RenderRubyAsInline::removeChild):
      (WebCore::RenderRubyAsBlock::RenderRubyAsBlock):
      (WebCore::RenderRubyAsBlock::~RenderRubyAsBlock):
      (WebCore::RenderRubyAsBlock::isChildAllowed):
      (WebCore::RenderRubyAsBlock::addChild):
      (WebCore::RenderRubyAsBlock::removeChild):
      * rendering/RenderRuby.h: Added.
      (WebCore::RenderRubyAsInline::renderName):
      (WebCore::RenderRubyAsInline::isRuby):
      (WebCore::RenderRubyAsBlock::renderName):
      (WebCore::RenderRubyAsBlock::isRuby):
      * rendering/RenderRubyBase.cpp: Added.
      (WebCore::RenderRubyBase::RenderRubyBase):
      (WebCore::RenderRubyBase::~RenderRubyBase):
      (WebCore::RenderRubyBase::isChildAllowed):
      (WebCore::RenderRubyBase::splitToLeft):
      (WebCore::RenderRubyBase::mergeWithRight):
      * rendering/RenderRubyBase.h: Added.
      (WebCore::RenderRubyBase::renderName):
      (WebCore::RenderRubyBase::isRubyBase):
      * rendering/RenderRubyRun.cpp: Added.
      (WebCore::RenderRubyRun::RenderRubyRun):
      (WebCore::RenderRubyRun::~RenderRubyRun):
      (WebCore::RenderRubyRun::hasRubyText):
      (WebCore::RenderRubyRun::hasRubyBase):
      (WebCore::RenderRubyRun::isEmpty):
      (WebCore::RenderRubyRun::rubyText):
      (WebCore::RenderRubyRun::rubyBase):
      (WebCore::RenderRubyRun::rubyBaseSafe):
      (WebCore::RenderRubyRun::firstLineBlock):
      (WebCore::RenderRubyRun::updateFirstLetter):
      (WebCore::RenderRubyRun::isChildAllowed):
      (WebCore::RenderRubyRun::addChild):
      (WebCore::RenderRubyRun::removeChild):
      (WebCore::RenderRubyRun::createRubyBase):
      (WebCore::RenderRubyRun::staticCreateRubyRun):
      * rendering/RenderRubyRun.h: Added.
      (WebCore::RenderRubyRun::renderName):
      (WebCore::RenderRubyRun::isRubyRun):
      * rendering/RenderRubyText.cpp: Added.
      (WebCore::RenderRubyText::RenderRubyText):
      (WebCore::RenderRubyText::~RenderRubyText):
      (WebCore::RenderRubyText::isChildAllowed):
      * rendering/RenderRubyText.h: Added.
      (WebCore::RenderRubyText::renderName):
      (WebCore::RenderRubyText::isRubyText):
      
      LayoutTests: 
      
      Further layout tests will be committed in a follow-up patch under fast/ruby.
      
      * fast/ruby/parse-rp-expected.txt: result changed due to <rt> being rendered as block within <ruby>
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      58b328f6
  12. 26 Jun, 2009 1 commit
  13. 24 Feb, 2009 1 commit
    • dglazkov@chromium.org's avatar
      2009-02-24 Dimitri Glazkov <dglazkov@chromium.org> · 317de61d
      dglazkov@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=24128
              Upstream more V8 custom bindings: constructors, XSLTProcessor.
      
              * bindings/v8/custom/V8DOMParserConstructor.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
              * bindings/v8/custom/V8MessageChannelConstructor.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
              * bindings/v8/custom/V8WebKitCSSMatrixConstructor.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
              * bindings/v8/custom/V8XMLSerializerConstructor.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
              * bindings/v8/custom/V8XPathEvaluatorConstructor.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
              * bindings/v8/custom/V8XSLTProcessorCustom.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      317de61d
  14. 23 Feb, 2009 1 commit
    • dglazkov@chromium.org's avatar
      2009-02-23 Dimitri Glazkov <dglazkov@chromium.org> · 248f91ad
      dglazkov@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=24109
              Upstream V8 Script abstractions, all except ScriptController.
      
              * bindings/v8/ScriptCachedFrameData.h: Added.
              (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
              (WebCore::ScriptCachedFrameData::~ScriptCachedFrameData):
              (WebCore::ScriptCachedFrameData::restore):
              (WebCore::ScriptCachedFrameData::clear):
              (WebCore::ScriptCachedFrameData::domWindow):
              * bindings/v8/ScriptCallFrame.cpp: Added.
              (WebCore::ScriptCallFrame::ScriptCallFrame):
              (WebCore::ScriptCallFrame::~ScriptCallFrame):
              (WebCore::ScriptCallFrame::argumentAt):
              * bindings/v8/ScriptCallFrame.h: Added.
              (WebCore::ScriptCallFrame::functionName):
              (WebCore::ScriptCallFrame::sourceURL):
              (WebCore::ScriptCallFrame::lineNumber):
              (WebCore::ScriptCallFrame::argumentCount):
              * bindings/v8/ScriptCallStack.cpp: Added.
              (WebCore::ScriptCallStack::ScriptCallStack):
              (WebCore::ScriptCallStack::~ScriptCallStack):
              (WebCore::ScriptCallStack::at):
              * bindings/v8/ScriptCallStack.h: Added.
              (WebCore::ScriptCallStack::size):
              * bindings/v8/ScriptInstance.cpp: Added.
              (WebCore::V8ScriptInstance::V8ScriptInstance):
              (WebCore::V8ScriptInstance::~V8ScriptInstance):
              (WebCore::V8ScriptInstance::instance):
              (WebCore::V8ScriptInstance::clear):
              (WebCore::V8ScriptInstance::set):
              * bindings/v8/ScriptInstance.h: Added.
              (WebCore::V8ScriptInstance::create):
              * bindings/v8/ScriptSourceCode.h: Added.
              (WebCore::ScriptSourceCode::ScriptSourceCode):
              (WebCore::ScriptSourceCode::isEmpty):
              (WebCore::ScriptSourceCode::source):
              (WebCore::ScriptSourceCode::url):
              (WebCore::ScriptSourceCode::startLine):
              * bindings/v8/ScriptState.h: Added.
              (WebCore::ScriptState::hadException):
              (WebCore::ScriptState::setException):
              (WebCore::ScriptState::exception):
              * bindings/v8/ScriptString.h: Added.
              (WebCore::ScriptString::ScriptString):
              (WebCore::ScriptString::operator String):
              (WebCore::ScriptString::isNull):
              (WebCore::ScriptString::size):
              (WebCore::ScriptString::operator=):
              (WebCore::ScriptString::operator+=):
              * bindings/v8/ScriptValue.cpp: Added.
              (WebCore::ScriptValue::getString):
              * bindings/v8/ScriptValue.h: Added.
              (WebCore::ScriptValue::ScriptValue):
              (WebCore::ScriptValue::operator=):
              (WebCore::ScriptValue::operator==):
              (WebCore::ScriptValue::operator!=):
              (WebCore::ScriptValue::isNull):
              (WebCore::ScriptValue::isUndefined):
              (WebCore::ScriptValue::clear):
              (WebCore::ScriptValue::~ScriptValue):
              (WebCore::ScriptValue::v8Value):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      248f91ad
  15. 09 Jan, 2009 1 commit
    • darin@chromium.org's avatar
      2009-01-09 Darin Fisher <darin@chromium.org> · 45f77239
      darin@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23214
              Upstream platform/network/chromium/
      
              * platform/network/chromium/AuthenticationChallenge.h: Added.
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::sourceHandle):
              * platform/network/chromium/AuthenticationChallengeChromium.cpp: Added.
              (WebCore::AuthenticationChallenge::platformCompare):
              * platform/network/chromium/CookieJarChromium.cpp: Added.
              (WebCore::setCookies):
              (WebCore::cookies):
              (WebCore::cookiesEnabled):
              * platform/network/chromium/DNSChromium.cpp: Added.
              (WebCore::prefetchDNS):
              * platform/network/chromium/NetworkStateNotifierChromium.cpp: Added.
              (WebCore::NetworkStateNotifier::updateState):
              (WebCore::NetworkStateNotifier::NetworkStateNotifier):
              * platform/network/chromium/NetworkStateNotifierPrivate.h: Added.
              * platform/network/chromium/ResourceError.h: Added.
              (WebCore::ResourceError::ResourceError):
              * platform/network/chromium/ResourceRequest.h: Added.
              (WebCore::ResourceRequest::):
              (WebCore::ResourceRequest::ResourceRequest):
              (WebCore::ResourceRequest::frame):
              (WebCore::ResourceRequest::setFrame):
              (WebCore::ResourceRequest::setTargetType):
              (WebCore::ResourceRequest::targetType):
              (WebCore::ResourceRequest::originPid):
              (WebCore::ResourceRequest::setOriginPid):
              (WebCore::ResourceRequest::securityInfo):
              (WebCore::ResourceRequest::setSecurityInfo):
              (WebCore::ResourceRequest::doUpdatePlatformRequest):
              (WebCore::ResourceRequest::doUpdateResourceRequest):
              * platform/network/chromium/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse):
              (WebCore::ResourceResponse::getSecurityInfo):
              (WebCore::ResourceResponse::setSecurityInfo):
              (WebCore::ResourceResponse::isContentFiltered):
              (WebCore::ResourceResponse::setIsContentFiltered):
              (WebCore::ResourceResponse::doUpdateResourceResponse):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45f77239
  16. 25 Nov, 2008 1 commit
  17. 24 Nov, 2008 1 commit
    • darin@chromium.org's avatar
      2008-11-24 Darin Fisher <darin@chromium.org> · 6b41247a
      darin@chromium.org authored
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=22448
              Create an abstraction for JSC::SourceCode
      
              * WebCore.vcproj/WebCore.vcproj:
              * bindings/js/CachedScriptSourceProvider.h:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluate):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptSourceCode.h: Added.
              (WebCore::ScriptSourceCode::ScriptSourceCode):
              (WebCore::ScriptSourceCode::length):
              (WebCore::ScriptSourceCode::jsSourceCode):
              * bindings/js/WorkerScriptController.cpp:
              (WebCore::Workevn ScriptController::evaluate):
              * bindings/js/WorkerScriptController.h:
              * dom/ScriptElement.cpp:
              (WebCore::ScriptElement::insertedIntoDocument):
              (WebCore::ScriptElement::childrenChanged):
              (WebCore::ScriptElementData::evaluateScript):
              (WebCore::ScriptElementData::notifyFinished):
              * dom/ScriptElement.h:
              * dom/WorkerThread.cpp:
              (WebCore::WorkerThread::workerThread):
              * dom/WorkerThread.h:
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::notifyFinished):
              * dom/XMLTokenizerLibxml2.cpp:
              (WebCore::XMLTokenizer::endElementNs):
              * dom/XMLTokenizerQt.cpp:
              (WebCore::XMLTokenizer::parseEndElement):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler):
              (WebCore::HTMLTokenizer::scriptExecution):
              (WebCore::HTMLTokenizer::notifyFinished):
              * html/HTMLTokenizer.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeScript):
              * loader/FrameLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b41247a
  18. 19 Nov, 2008 1 commit
    • darin@chromium.org's avatar
      2008-11-18 Darin Fisher <darin@chromium.org> · cd84840e
      darin@chromium.org authored
              Reviewed by Geoff Garen.
      
              https://bugs.webkit.org/show_bug.cgi?id=22345
              Define ScriptValue as a thin container for a JSC::Value*.
      
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScheduledAction.cpp:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluate):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptValue.cpp: Added.
              (WebCore::ScriptValue::getString):
              * bindings/js/ScriptValue.h: Added.
              (WebCore::ScriptValue::ScriptValue):
              (WebCore::ScriptValue::jsValue):
              * dom/ScriptElement.cpp:
              * dom/XMLTokenizer.cpp:
              * dom/XMLTokenizerLibxml2.cpp:
              * html/HTMLTokenizer.cpp:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeIfJavaScriptURL):
              (WebCore::FrameLoader::executeScript):
              * loader/FrameLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd84840e