1. 09 Jan, 2009 23 commits
    • 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
    • barraclough@apple.com's avatar
      fix tyop in Changelog · 40d79e18
      barraclough@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40d79e18
    • mitz@apple.com's avatar
      Reviewed by Darin Adler. · 4dce3609
      mitz@apple.com authored
              - fixed <rdar://problem/6234347> Add/change conditional key
                bindings for changing paragraph- and character-level writing
                direction (to match NSTextView)
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Added
              code to validate makeBaseWritingDirectionLeftToRight: and
              makeBaseWritingDirectionRightToLeft:.
              (writingDirectionKeyBindingsEnabled): Changed this function to
              always return YES, except on Tiger and Leopard.
              (-[WebHTMLView makeBaseWritingDirectionLeftToRight:]): Renamed
              changeBaseWritingDirectionToLTR: to this.
              (-[WebHTMLView makeBaseWritingDirectionRightToLeft:]): Renamed
              changeBaseWritingDirectionToRTL: to this.
              (-[WebHTMLView changeBaseWritingDirectionToLTR:]): Now calls
              makeBaseWritingDirectionLeftToRight:.
              (-[WebHTMLView changeBaseWritingDirectionToRTL:]): Now calls
              makeBaseWritingDirectionRightToLeft:.
              * WebView/WebView.mm: Added makeBaseWritingDirectionLeftToRight
              and makeBaseWritingDirectionRightToLeft to
              FOR_EACH_RESPONDER_SELECTOR.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4dce3609
    • adele@apple.com's avatar
      2009-01-09 Darin Adler <darin@apple.com> · 3c70daa8
      adele@apple.com authored
              Reviewed and landed by Adele Peterson.
      
              Bug 23160: add setMemoryCacheClientCallsEnabled SPI so Safari can be faster with activity window closed
              https://bugs.webkit.org/show_bug.cgi?id=23160
      
              * Interfaces/IWebViewPrivate.idl: Added setMemoryCacheDelegateCallsEnabled.
              * WebView.cpp:
              (WebView::setMemoryCacheDelegateCallsEnabled): Ditto.
              * WebView.h: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3c70daa8
    • wsiegrist@apple.com's avatar
      2009-01-09 William Siegrist <wsiegrist@apple.com> · 53a2c52a
      wsiegrist@apple.com authored
      Reviewed by David Kilzer
      
      Update URLs which go through redirects by changing bugs.webkit.org URLs to use https and removing /projects/webkit from Trac URLs.
      
      Replace tabs in bugpriorities.html with spaces.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      53a2c52a
    • oliver@apple.com's avatar
      2009-01-09 David Levin <levin@chromium.org> · 1fbb3cfa
      oliver@apple.com authored
              Reviewed by Oliver Hunt.
      
              https://bugs.webkit.org/show_bug.cgi?id=23175
      
              Adjustment to previous patch.  Remove call to initilizeThreading from JSGlobalCreate
              and fix jsc.cpp instead.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1fbb3cfa
    • abarth@webkit.org's avatar
      2009-01-09 Joel Weinberger <jww@cs.berkeley.edu> · 9b698b6a
      abarth@webkit.org authored
              Reviewed by Darin Adler.
              Landed by Adam Barth.
      
              The test intended to test reload, but reference reload in one place and
              replace in another. This makes them consistent.
      
              * http/tests/security/resources/xss-DENIED-assign-location-reload-attacker.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b698b6a
    • hausmann@webkit.org's avatar
      2009-01-09 Simon Hausmann <simon.hausmann@nokia.com> · b667971b
      hausmann@webkit.org authored
              Rubber-stamped by Tor Arne Vestbø.
      
              Documentation fixes, remove duplicated docs, document missing
              parameters and return values.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b667971b
    • weinig@apple.com's avatar
      2009-01-09 Sam Weinig <sam@webkit.org> · 93675548
      weinig@apple.com authored
              Roll r39720 back in with a working interpreted mode.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93675548
    • pkasting@chromium.org's avatar
      2009-01-09 Peter Kasting <pkasting@google.com> · a2910e11
      pkasting@chromium.org authored
              Reviewed by David Hyatt.
      
              https://bugs.webkit.org/show_bug.cgi?id=22995
              Fix flaky image animation by resetting the metadata for a frame when
              we get new data for that frame.  This fixes animations that halted
              when the next frame of the animation wasn't complete by the time the
              current frame's duration expired.
      
              * platform/graphics/BitmapImage.cpp:
              (WebCore::BitmapImage::destroyDecodedData):
              (WebCore::BitmapImage::dataChanged):
              * platform/graphics/BitmapImage.h:
              (WebCore::FrameData::~FrameData):
              * platform/graphics/cairo/ImageCairo.cpp:
              (WebCore::FrameData::clear):
              * platform/graphics/cg/ImageCG.cpp:
              (WebCore::FrameData::clear):
              * platform/graphics/qt/ImageQt.cpp:
              (WebCore::FrameData::clear):
              * platform/graphics/wx/ImageWx.cpp:
              (WebCore::FrameData::clear):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a2910e11
    • oliver@apple.com's avatar
      2830fd1c
    • hausmann@webkit.org's avatar
      2009-01-09 Simon Hausmann <simon.hausmann@nokia.com> · 5eae4747
      hausmann@webkit.org authored
              Rubber-stamped by Tor Arne Vestbø.
      
              Swap the .h and the .cpp output in the Qt build for the
              UserAgentStyleSheetData files, to put the definition in the .cpp file
              and the declaration in the header file.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5eae4747
    • oliver@apple.com's avatar
      include files missed in last commit. · 2177dad1
      oliver@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2177dad1
    • oliver@apple.com's avatar
      2009-01-09 David Levin <levin@chromium.org> · 586afefe
      oliver@apple.com authored
              Reviewed by Oliver Hunt.
      
              https://bugs.webkit.org/show_bug.cgi?id=23175
      
              Added a template to make the pointer and flags combination
              in UString more readable and less error prone.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      586afefe
    • hausmann@webkit.org's avatar
      2009-01-09 Simon Hausmann <simon.hausmann@nokia.com> · a9e00962
      hausmann@webkit.org authored
              Reviewed by Tor Arne Vestbø.
      
              Fix linking against QtWebKit on Windows, by defining the EXPORT macros
              _exactly_ the same way as in qglobal.h, depending on QT_NODLL,
              QT_MAKEDLL and QT_SHARED.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9e00962
    • vestbo@webkit.org's avatar
      2009-01-09 Tor Arne Vestbø <tavestbo@trolltech.com> · 8f297046
      vestbo@webkit.org authored
              Reviewed by Simon Hausmann.
      
              Prevent qmake from generating duplicate rules for embedded stylesheets
      
              The STYLESHEETS_EMBED variable used to contain only one file name, but
              now that it is a list of files we need to change it to be a dependency
              for the stylesheet generator instead of the input.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8f297046
    • hausmann@webkit.org's avatar
      WebCore: · 68671a47
      hausmann@webkit.org authored
          2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
      
                  Reviewed by Tor Arne Vestbø.
      
                  Fix qmake warning about missing test function, a contains() call was
                  missing.
      
      WebKit/qt:
          2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
      
                  Reviewed by Tor Arne Vestbø.
      
                  Remove qwebnetworkinterface.h from WEBKIT_API_HEADERS as it's not
                  public Qt 4.4/4.5 API.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68671a47
    • ap@webkit.org's avatar
      https://bugs.webkit.org/show_bug.cgi?id=23165 · dcadf2b7
      ap@webkit.org authored
              * fast/dom/Window/window-properties-expected.txt: Forgot to commit this with r39699, too.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcadf2b7
    • hausmann@webkit.org's avatar
      2009-01-09 Simon Hausmann <simon.hausmann@nokia.com> · d2c53669
      hausmann@webkit.org authored
              Unreviewed Qt build fix, remove qcookiejar.h from the API headers and
              therefore HEADERS. It's not part of the API and it moc shouldn't be
              called on it.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2c53669
    • hausmann@webkit.org's avatar
      2009-01-09 Simon Hausmann <simon.hausmann@nokia.com> · 47fbc258
      hausmann@webkit.org authored
              Rubber-stamped by Tor Arne Vestbø.
      
              Add the Qt API headers to HEADERS, too, for improved completion in IDEs.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      47fbc258
    • ap@webkit.org's avatar
      2009-01-09 David Levin <levin@chromium.org> · 11e906a9
      ap@webkit.org authored
              Reviewed by Alexey Proskuryakov.
      
              https://bugs.webkit.org/show_bug.cgi?id=23199
      
              Fix deref's of string happening on two different threads.
      
              No observable change in behavior, so no test.  However, there are asserts
              being added for https://bugs.webkit.org/show_bug.cgi?id=23175 which
              will detect this issue while running the normal worker tests.
      
              * dom/WorkerThread.cpp:
              (WebCore::WorkerThreadStartupData::create):
              (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
              (WebCore::WorkerThread::WorkerThread):
              (WebCore::WorkerThread::workerThread):
              * dom/WorkerThread.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      11e906a9
    • barraclough@apple.com's avatar
      2009-01-08 Gavin Barraclough <barraclough@apple.com> · 33e10148
      barraclough@apple.com authored
              RS by Oliver Hunt.
      
              Looks like this should have been updated with r39699.
      
              * fast/js/global-constructors-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33e10148
    • barraclough@apple.com's avatar
      2009-01-08 Gavin Barraclough <barraclough@apple.com> · 16edab42
      barraclough@apple.com authored
              Reviewed by Oliver Hunt.
      
              Encode immediates in the low word of JSValuePtrs, on x86-64.
      
              On 32-bit platforms a JSValuePtr may represent a 31-bit signed integer.
              On 64-bit platforms, if USE(ALTERNATE_JSIMMEDIATE) is defined, a full
              32-bit integer may be stored in an immediate.
              
              Presently USE(ALTERNATE_JSIMMEDIATE) uses the same encoding as the default
              immediate format - the value is left shifted by one, so a one bit tag can
              be added to indicate the value is an immediate.  However this means that
              values must be commonly be detagged (by right shifting by one) before
              arithmetic operations can be performed on immediates.  This patch modifies
              the formattting so the the high bits of the immediate mark values as being
              integer.
      
              * assembler/MacroAssembler.h:
              (JSC::MacroAssembler::not32):
              (JSC::MacroAssembler::orPtr):
              (JSC::MacroAssembler::zeroExtend32ToPtr):
              (JSC::MacroAssembler::jaePtr):
              (JSC::MacroAssembler::jbPtr):
              (JSC::MacroAssembler::jnzPtr):
              (JSC::MacroAssembler::jzPtr):
              * assembler/X86Assembler.h:
              (JSC::X86Assembler::):
              (JSC::X86Assembler::notl_r):
              (JSC::X86Assembler::testq_i32r):
              * jit/JIT.cpp:
              (JSC::JIT::privateCompileMainPass):
              (JSC::JIT::privateCompileSlowCases):
              (JSC::JIT::privateCompileCTIMachineTrampolines):
              * jit/JIT.h:
              * jit/JITArithmetic.cpp:
              (JSC::JIT::compileFastArith_op_lshift):
              (JSC::JIT::compileFastArith_op_rshift):
              (JSC::JIT::compileFastArith_op_bitand):
              (JSC::JIT::compileFastArithSlow_op_bitand):
              (JSC::JIT::compileFastArith_op_mod):
              (JSC::JIT::compileFastArithSlow_op_mod):
              (JSC::JIT::compileFastArith_op_add):
              (JSC::JIT::compileFastArith_op_mul):
              (JSC::JIT::compileFastArith_op_post_inc):
              (JSC::JIT::compileFastArith_op_post_dec):
              (JSC::JIT::compileFastArith_op_pre_inc):
              (JSC::JIT::compileFastArith_op_pre_dec):
              (JSC::JIT::putDoubleResultToJSNumberCellOrJSImmediate):
              (JSC::JIT::compileBinaryArithOp):
              * jit/JITCall.cpp:
              (JSC::JIT::compileOpCallSlowCase):
              * jit/JITInlineMethods.h:
              (JSC::JIT::emitJumpIfJSCell):
              (JSC::JIT::emitJumpIfNotJSCell):
              (JSC::JIT::emitJumpIfImmNum):
              (JSC::JIT::emitJumpSlowCaseIfNotImmNum):
              (JSC::JIT::emitJumpSlowCaseIfNotImmNums):
              (JSC::JIT::emitFastArithDeTagImmediate):
              (JSC::JIT::emitFastArithDeTagImmediateJumpIfZero):
              (JSC::JIT::emitFastArithReTagImmediate):
              (JSC::JIT::emitFastArithImmToInt):
              (JSC::JIT::emitFastArithIntToImmNoCheck):
              (JSC::JIT::emitTagAsBoolImmediate):
              * jit/JITPropertyAccess.cpp:
              (JSC::resizePropertyStorage):
              (JSC::JIT::privateCompilePutByIdTransition):
              (JSC::JIT::privateCompilePatchGetArrayLength):
              (JSC::JIT::privateCompileGetByIdSelf):
              (JSC::JIT::privateCompileGetByIdProto):
              (JSC::JIT::privateCompileGetByIdChain):
              (JSC::JIT::privateCompilePutByIdReplace):
              * runtime/JSImmediate.h:
              (JSC::JSImmediate::isNumber):
              (JSC::JSImmediate::isPositiveNumber):
              (JSC::JSImmediate::areBothImmediateNumbers):
              (JSC::JSImmediate::xorImmediateNumbers):
              (JSC::JSImmediate::rightShiftImmediateNumbers):
              (JSC::JSImmediate::canDoFastAdditiveOperations):
              (JSC::JSImmediate::addImmediateNumbers):
              (JSC::JSImmediate::subImmediateNumbers):
              (JSC::JSImmediate::makeInt):
              (JSC::JSImmediate::toBoolean):
              * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      16edab42
  2. 08 Jan, 2009 17 commits
    • weinig@apple.com's avatar
      2009-01-08 Sam Weinig <sam@webkit.org> · 59ab8c5d
      weinig@apple.com authored
              Revert r39720. It broke Interpreted mode.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59ab8c5d
    • mitz@apple.com's avatar
      WebCore: · c50985d3
      mitz@apple.com authored
              Reviewed by Adam Roben.
      
              - use native glyph support in Core Graphics when available
      
              * platform/graphics/win/FontCGWin.cpp:
              (WebCore::Font::drawGlyphs): Changed to use drawGDIGlyphs() only if
              native glyph support is not available or stroking is required. Changed
              to pass the font's useGDI() flag to wkSetCGContextFontRenderingStyle to
              request the use of native glyphs.
              * platform/graphics/win/FontCustomPlatformData.cpp:
              (WebCore::FontCustomPlatformData::fontPlatformData): Added a call to
              wkSetFontPlatformInfo to attach the LOGFONT to the CGFont.
              * platform/graphics/win/FontPlatformDataCGWin.cpp:
              (WebCore::FontPlatformData::platformDataInit): Ditto.
      
      WebKit/win:
      
              Reviewed by Adam Roben.
      
              - WebPreferences changes to support Core Graphics native glyph drawing
      
              * Interfaces/IWebPreferencesPrivate.idl: Added font smoothing contrast
              getter and setter.
              * WebPreferenceKeysPrivate.h: Added
              WebKitFontSmoothingContrastPreferenceKey.
              * WebPreferences.cpp:
              (WebPreferences::initializeDefaultSettings): Initialized
              WebKitFontSmoothingContrastPreferenceKey to 2.
              (WebPreferences::setFloatValue): Added.
              (WebPreferences::setFontSmoothing): Changed to map
              FontSmoothingTypeWindows to FontSmoothingTypeMedium.
              (WebPreferences::fontSmoothingContrast): Added.
              (WebPreferences::setFontSmoothingContrast): Added. Calls
              wkSetFontSmoothingContrast().
              * WebPreferences.h:
      
      WebKitLibraries:
      
              Reviewed by Adam Roben.
      
              - WebKitSystemInterface changes to support Core Graphics native glyph drawing
      
              * win/include/WebKitSystemInterface/WebKitSystemInterface.h:
              * win/lib/WebKitSystemInterface.lib:
              * win/lib/WebKitSystemInterface_debug.lib:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c50985d3
    • sfalken@apple.com's avatar
      <rdar://problem/6474244> REGRESSION(39561-39603): Heap corruption when saving passwords? · e7266ecc
      sfalken@apple.com authored
              
              Reviewed by Adam Roben.
      
              * WebView.cpp:
              (WebViewWndProc): Hold a ref to the WebView inside the WNDPROC, since it could go away in an event handler.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7266ecc
    • pkasting@chromium.org's avatar
      2009-01-08 Peter Kasting <pkasting@google.com> · 6dce3e62
      pkasting@chromium.org authored
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=22929
              Fix memory regression when decoding large animated GIFs.
      
              * platform/graphics/cg/ImageSourceCG.cpp:
              (WebCore::ImageSource::clear):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6dce3e62
    • andersca@apple.com's avatar
      2009-01-08 Anders Carlsson <andersca@apple.com> · a79a61ce
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Add and implement WKPCGetStringIdentifier.
              
              * Plugins/Hosted/NetscapePluginHostProxy.mm:
              (WKPCGetStringIdentifier):
              * Plugins/Hosted/WebKitPluginClient.defs:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a79a61ce
    • eric@webkit.org's avatar
      Correct my changelog error. · 9b2fdafe
      eric@webkit.org authored
      2009-01-08  Scott Violet  <sky@chromium.org>
      
              Reviewed by Eric Seidel (and Adam Barth).
      
              Fix Images to return their file extension
              http://code.google.com/p/chromium/issues/detail?id=5827
      
              * platform/graphics/skia/ImageSourceSkia.cpp:
              (WebCore::ImageSource::filenameExtension):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39732 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b2fdafe
    • eric@webkit.org's avatar
      2009-01-08 Berend-Jan Wever <sky@chromium.org> · d55370ea
      eric@webkit.org authored
              Reviewed by Adam Barth.
      
              Fix Images to return their file extension
              http://code.google.com/p/chromium/issues/detail?id=5827
      
              * platform/graphics/skia/ImageSourceSkia.cpp:
              (WebCore::ImageSource::filenameExtension):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d55370ea
    • eric@webkit.org's avatar
      2009-01-08 Dimitri Glazkov <dglazkov@chromium.org> · 0bcd9188
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Add PathSkia and PatternSkia implementations to WebCore
              https://bugs.webkit.org/show_bug.cgi?id=23200
      
              * platform/graphics/skia/PathSkia.cpp: Added.
              (WebCore::Path::Path):
              (WebCore::Path::~Path):
              (WebCore::Path::operator=):
              (WebCore::Path::isEmpty):
              (WebCore::Path::contains):
              (WebCore::Path::translate):
              (WebCore::Path::boundingRect):
              (WebCore::Path::moveTo):
              (WebCore::Path::addLineTo):
              (WebCore::Path::addQuadCurveTo):
              (WebCore::Path::addBezierCurveTo):
              (WebCore::Path::addArcTo):
              (WebCore::Path::closeSubpath):
              (WebCore::Path::addArc):
              (WebCore::Path::addRect):
              (WebCore::Path::addEllipse):
              (WebCore::Path::clear):
              (WebCore::convertPathPoints):
              (WebCore::Path::apply):
              (WebCore::Path::transform):
              (WebCore::Path::debugString):
              (WebCore::boundingBoxForCurrentStroke):
              (WebCore::Path::strokeBoundingRect):
              * platform/graphics/skia/PatternSkia.cpp: Added.
              (WebCore::shaderRule):
              (WebCore::Pattern::createPlatformPattern):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0bcd9188
    • eric@webkit.org's avatar
      2009-01-08 Dimitri Glazkov <dglazkov@chromium.org> · 7a26af62
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Add ImageSourceSkia to platform/graphics/skia
              https://bugs.webkit.org/show_bug.cgi?id=23200
      
              ImageSourceSkia is mostly a hack to support our
              ICO decoder model.  See ImageSourceSkia.h for more
              explanation.  Eventually we'd like to make our ICO
              decoder lazy.
      
              * platform/graphics/ImageSource.h: mark m_decoder as protected
              * platform/graphics/skia/ImageSourceSkia.cpp: Added.
              (WebCore::createDecoder):
              (WebCore::ImageSource::ImageSource):
              (WebCore::ImageSource::~ImageSource):
              (WebCore::ImageSource::clear):
              (WebCore::ImageSource::initialized):
              (WebCore::ImageSource::setData):
              (WebCore::ImageSource::isSizeAvailable):
              (WebCore::ImageSource::size):
              (WebCore::ImageSource::frameSizeAtIndex):
              (WebCore::ImageSource::repetitionCount):
              (WebCore::ImageSource::frameCount):
              (WebCore::ImageSource::createFrameAtIndex):
              (WebCore::ImageSource::frameIsCompleteAtIndex):
              (WebCore::ImageSource::frameDurationAtIndex):
              (WebCore::ImageSource::frameHasAlphaAtIndex):
              (WebCore::ImageSourceSkia::setData):
              (WebCore::ImageSource::filenameExtension):
              * platform/graphics/skia/ImageSourceSkia.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a26af62
    • eric@webkit.org's avatar
      2009-01-08 Dimitri Glazkov <dglazkov@chromium.org> · 4bf7999e
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Add NativeImageSkia (PlatformImagePtr) to platform/graphics/skia
              https://bugs.webkit.org/show_bug.cgi?id=23200
      
              * platform/graphics/skia/NativeImageSkia.cpp: Added.
              (NativeImageSkia::NativeImageSkia):
              (NativeImageSkia::decodedSize):
              (NativeImageSkia::hasResizedBitmap):
              (NativeImageSkia::resizedBitmap):
              (NativeImageSkia::shouldCacheResampling):
              * platform/graphics/skia/NativeImageSkia.h: Added.
              (NativeImageSkia::setDataComplete):
              (NativeImageSkia::isDataComplete):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4bf7999e
    • eric@webkit.org's avatar
      2009-01-08 Dimitri Glazkov <dglazkov@chromium.org> · f7c1b587
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Add ImageBufferSkia and ImageSkia files.
              https://bugs.webkit.org/show_bug.cgi?id=23200
              For now we've left BitmapImage and BitmapImageSingleFrameSkia
              implementations in the ImageSkia file (like ImageCG has), but
              we intend to break them out into their own files.
      
              * platform/graphics/skia/ImageBufferSkia.cpp: Added.
              (WebCore::ImageBufferData::ImageBufferData):
              (WebCore::ImageBuffer::ImageBuffer):
              (WebCore::ImageBuffer::~ImageBuffer):
              (WebCore::ImageBuffer::context):
              (WebCore::ImageBuffer::image):
              (WebCore::ImageBuffer::getImageData):
              (WebCore::ImageBuffer::putImageData):
              (WebCore::ImageBuffer::toDataURL):
              * platform/graphics/skia/ImageSkia.cpp: Added.
              (WebCore::):
              (WebCore::FrameData::clear):
              (WebCore::Image::loadPlatformResource):
              (WebCore::Image::drawPattern):
              (WebCore::BitmapImage::initPlatformData):
              (WebCore::BitmapImage::invalidatePlatformData):
              (WebCore::BitmapImage::checkForSolidColor):
              (WebCore::BitmapImage::draw):
              (WebCore::BitmapImageSingleFrameSkia::draw):
              (WebCore::BitmapImageSingleFrameSkia::create):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39727 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f7c1b587
    • pam@chromium.org's avatar
      2009-01-08 James Robinson <jamesr@google.com> · b0808184
      pam@chromium.org authored
              Reviewed by Mark Rowe.
              Landed by Pamela Greene.
      
              WebCore::Event::timeStamp() is a simple accessor and should be const
      
              https://bugs.webkit.org/show_bug.cgi?id=23176
      
              * dom/Event.h:
              (WebCore::Event::timeStamp):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39726 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b0808184
    • antti@apple.com's avatar
      2009-01-08 Antti Koivisto <antti@apple.com> · 7dca2465
      antti@apple.com authored
              Reviewed by Oliver Hunt.
      
              Fix <rdar://problem/6467206> 
              Resources loaded from the memory cache do not get correctly inserted into the DocLoader resource map (22994)
              
              Use CachedResourceHandle in document resource map so resources get updated correctly when using
              using cache validation conditionals.
      
              * loader/Cache.cpp:
              (WebCore::Cache::evict):
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::~DocLoader):
              (WebCore::DocLoader::requestResource):
              (WebCore::DocLoader::setAutoLoadImages):
              (WebCore::DocLoader::removeCachedResource):
              * loader/DocLoader.h:
              (WebCore::DocLoader::cachedResource):
              (WebCore::DocLoader::allCachedResources):
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::getSubresources):
              * loader/ImageLoader.cpp:
              (WebCore::ImageLoader::updateFromElement):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39725 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7dca2465
    • mrowe@apple.com's avatar
      Versioning. · 5e45fba9
      mrowe@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e45fba9
    • slewis@apple.com's avatar
      2009-01-08 Stephanie Lewis <slewis@gmail.com> · b49f92ac
      slewis@apple.com authored
              Fix Tiger build.        
      
              * WebView/WebTextIterator.mm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39722 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b49f92ac
    • andersca@apple.com's avatar
      2009-01-08 Anders Carlsson <andersca@apple.com> · 132a0f17
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Add basic support for evaluating scripts.
              
              * Plugins/Hosted/NetscapePluginHostProxy.mm:
              (WebKit::fromUTF8WithLatin1Fallback):
              (WebKit::NetscapePluginHostProxy::~NetscapePluginHostProxy):
              (WKPCReleaseObject):
              (marshalValue):
              (WKPCEvaluate):
              * Plugins/Hosted/NetscapePluginInstanceProxy.h:
              * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
              (WebKit::NetscapePluginInstanceProxy::releaseObject):
              (WebKit::NetscapePluginInstanceProxy::evaluate):
              * Plugins/Hosted/WebKitPluginClient.defs:
              * Plugins/Hosted/WebKitPluginHostTypes.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      132a0f17
    • weinig@apple.com's avatar
      2009-01-08 Sam Weinig <sam@webkit.org> · 2a15098f
      weinig@apple.com authored
              Reviewed by Oliver Hunt.
      
              Fix for https://bugs.webkit.org/show_bug.cgi?id=23197
              Delay creating the PCVector until an exception is thrown
              Part of <rdar://problem/6469060>
              Don't store exception information for a CodeBlock until first exception is thrown
      
              - Change the process for re-parsing/re-generating bytecode for exception information
                to use data from the original CodeBlock (offsets of GlobalResolve instructions) to
                aid in creating an identical instruction stream on re-parse, instead of padding
                interchangeable opcodes, which would result in different JITed code.
              - Fix bug where the wrong ScopeChainNode was used when re-parsing/regenerating from
                within some odd modified scope chains.
              - Lazily create the pcVector by re-JITing the regenerated CodeBlock and stealing the
                the pcVector from it.
      
              Saves ~2MB on Membuster head.
      
              * bytecode/CodeBlock.cpp:
              (JSC::CodeBlock::dump):
              (JSC::CodeBlock::reparseForExceptionInfoIfNecessary):
              (JSC::CodeBlock::hasGlobalResolveInstructionAtBytecodeOffset):
              (JSC::CodeBlock::hasGlobalResolveInfoAtBytecodeOffset):
              * bytecode/CodeBlock.h:
              (JSC::JITCodeRef::JITCodeRef):
              (JSC::GlobalResolveInfo::GlobalResolveInfo):
              (JSC::CodeBlock::getBytecodeIndex):
              (JSC::CodeBlock::addGlobalResolveInstruction):
              (JSC::CodeBlock::addGlobalResolveInfo):
              (JSC::CodeBlock::addFunctionRegisterInfo):
              (JSC::CodeBlock::hasExceptionInfo):
              (JSC::CodeBlock::pcVector):
              (JSC::EvalCodeBlock::EvalCodeBlock):
              (JSC::EvalCodeBlock::baseScopeDepth):
              * bytecode/Opcode.h:
              * bytecompiler/BytecodeGenerator.cpp:
              (JSC::BytecodeGenerator::BytecodeGenerator):
              (JSC::BytecodeGenerator::emitResolve):
              (JSC::BytecodeGenerator::emitGetScopedVar):
              * bytecompiler/BytecodeGenerator.h:
              (JSC::BytecodeGenerator::setRegeneratingForExceptionInfo):
              * interpreter/Interpreter.cpp:
              (JSC::bytecodeOffsetForPC):
              (JSC::Interpreter::unwindCallFrame):
              (JSC::Interpreter::privateExecute):
              (JSC::Interpreter::retrieveLastCaller):
              (JSC::Interpreter::cti_op_instanceof):
              (JSC::Interpreter::cti_op_call_NotJSFunction):
              (JSC::Interpreter::cti_op_resolve):
              (JSC::Interpreter::cti_op_construct_NotJSConstruct):
              (JSC::Interpreter::cti_op_resolve_func):
              (JSC::Interpreter::cti_op_resolve_skip):
              (JSC::Interpreter::cti_op_resolve_global):
              (JSC::Interpreter::cti_op_resolve_with_base):
              (JSC::Interpreter::cti_op_throw):
              (JSC::Interpreter::cti_op_in):
              (JSC::Interpreter::cti_vm_throw):
              * jit/JIT.cpp:
              (JSC::JIT::privateCompile):
              * parser/Nodes.cpp:
              (JSC::EvalNode::generateBytecode):
              (JSC::EvalNode::bytecodeForExceptionInfoReparse):
              (JSC::FunctionBodyNode::bytecodeForExceptionInfoReparse):
              * parser/Nodes.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39720 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a15098f