1. 13 May, 2008 3 commits
  2. 12 May, 2008 37 commits
    • mitz@apple.com's avatar
      - build fix · 59d4e7db
      mitz@apple.com authored
              * Interfaces/WebKit.idl: Touched.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33078 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59d4e7db
    • aroben@apple.com's avatar
      Turn on warnings as errors in WebCore.vcproj · 4160fcf5
      aroben@apple.com authored
              Rubberstamped by Anders Carlsson.
      
              * WebCore.vcproj/WebCore.vcproj: Also let VS reformat the file as it
              saw fit. The important part is the removal of the WarnAsError="false"
              lines.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4160fcf5
    • aroben@apple.com's avatar
      Fix a MSVC warning in PluginViewWin · d54c7262
      aroben@apple.com authored
      WebCore:
      
              Fix a MSVC warning in PluginViewWin
      
              Reviewed by Anders Carlsson.
      
              Test: http/tests/plugins/post-url-file.html
      
              * plugins/win/PluginViewWin.cpp:
              (WebCore::PluginView::handlePostReadFile): Added a missing return
              statement.
      
      WebKitTools:
      
              Support for testing NPN_PostURL
      
              Reviewed by Anders Carlsson.
      
              * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
              (toCString): Added this helper function.
              (testPostURLFile): Added. Writes the passed-in content to the
              passed-in file and calls NPN_PostURL with the passed-in URL and
              target.
              (pluginInvoke): Added a case for testPostURLFile.
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (followShortcuts): Changed to allow paths that don't yet exist.
      
      LayoutTests:
      
              Test that NPN_PostURL works correctly
      
              Reviewed by Anders Carlsson.
      
              * http/tests/plugins/post-url-file-ex...
      d54c7262
    • aroben@apple.com's avatar
      Fix a MSVC warning in GetEOTHeader · 177d18e5
      aroben@apple.com authored
              Reviewed by Dan Bernstein.
      
              * platform/graphics/win/GetEOTHeader.cpp:
              (WebCore::getEOTHeader): MSVC complains that having a 0-sized array in
              a struct is a non-standard extension. I've replaced the 0-sized arrays
              with arrays of 1 element, and replaced sizeof(structType) with
              offsetof(structType, arrayMember).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      177d18e5
    • aroben@apple.com's avatar
      Fix a MSVC warning in TextCodecICU · 94a6a3d4
      aroben@apple.com authored
              Reviewed by John Sullivan and Dan Bernstein.
      
              * platform/text/TextCodecICU.cpp:
              (WebCore::ErrorCallbackSetter::~ErrorCallbackSetter):
              UCNV_SUB_STOP_ON_ILLEGAL is a string literal, so using == with it
              doesn't really do what we want. Use strcmp instead. It's OK to pass an
              unknown value to strcmp here since 1) UCNV_SUB_STOP_ON_ILLEGAL is only
              a single character long so we're not going to ready more than 2 bytes
              from oldContext, and 2) we're inside an ASSERT which will cause a
              crash anyway if it fails.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94a6a3d4
    • aroben@apple.com's avatar
      Disable a MSVC warning · 043b8d3a
      aroben@apple.com authored
              Reviewed by Darin Adler.
      
              * win/tools/vsprops/common.vsprops: Add warning 4503 to the list of
              disabled warnings. It's a warning about decorated names being longer
              than MSVC's limit of 4096 characters. This warning doesn't indicate a
              correctness problem, but these truncated decorated names will be
              harder to recognize during debugging or when they appear in linker
              errors.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      043b8d3a
    • aroben@apple.com's avatar
      Fix a MSVC warning in CSSComputedStyleDeclaration · 66c1c75a
      aroben@apple.com authored
              Reviewed by Geoff Garen.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::valueForRepeatRule): Removed some unreachable code.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      66c1c75a
    • aroben@apple.com's avatar
      Fix a MSVC warning in InlineTextBox · 9d5ec18a
      aroben@apple.com authored
              Reviewed by Dan Bernstein.
      
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint): Initialize some variables that MSVC
              isn't smart enough to figure out will always be initialized in the
              cases where they are used.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d5ec18a
    • aroben@apple.com's avatar
      Fix a MSVC warning in Position · a744d847
      aroben@apple.com authored
              Reviewed by Darin Adler.
      
              * dom/Position.cpp:
              (WebCore::Position::getInlineBoxAndOffset): Use parentheses to make
              the precedence of our expressions explicit.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a744d847
    • aroben@apple.com's avatar
      Fix a MSVC warning in String · 45d9d6d5
      aroben@apple.com authored
              Reviewed by Geoff Garen.
      
              * platform/text/String.cpp:
              (WebCore::toIntegralType): Disable a bogus warning about using unary -
              on an unsigned value. MSVC isn't smart enough to figure out that
              isNegative will always be false when value is unsigned.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45d9d6d5
    • aroben@apple.com's avatar
      Fix a MSVC warning in XMLHttpRequest · 5e2f3493
      aroben@apple.com authored
              Reviewed by Geoff Garen.
      
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::XMLHttpRequest): Added static_cast<unsigned
              long>.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e2f3493
    • andersca@apple.com's avatar
      WebCore: · 0e6a6ea0
      andersca@apple.com authored
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Handle the case when a resource with the same URL as the manifest is listed in the manifest.
      
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::addEntry):
      
      LayoutTests:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Add test with a manifest file that lists itself.
              
              * http/tests/appcache/manifest-containing-itself-expected.txt: Added.
              * http/tests/appcache/manifest-containing-itself.html: Added.
              * http/tests/appcache/resources/manifest-containing-itself.manifest: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e6a6ea0
    • weinig@apple.com's avatar
      2008-05-12 Sam Weinig <sam@webkit.org> · 7f47ae51
      weinig@apple.com authored
              Reviewed by Dan Bernstein.
      
              Add parsing of AccessControlHeader and AccessItemRule.
      
              * xml/AccessControlList.cpp:
              (WebCore::AccessControlList::parseAccessControlHeader): When multiple http headers are sent
              in the response, the engine will concatenate them with commas separating the rules.  This simply
              reverses that process by splitting on the commas.
              (WebCore::AccessControlList::show):
              * xml/AccessControlList.h:
              * xml/AccessItem.cpp:
              (WebCore::AccessItem::AccessItem):
              (WebCore::AccessItem::show):
              * xml/AccessItem.h:
              (WebCore::AccessItem::isValid):
              * xml/AccessItemRule.cpp:
              (WebCore::skipLWS):
              (WebCore::AccessItemRule::parseAccessItemRule): Parse the rule according to the BNF provided by
              the Access Control spec.
              (WebCore::AccessItemRule::parsePatternList):
              (WebCore::AccessItemRule::invalidate):
              (WebCore::AccessItemRule::show):
              * xml/AccessItemRule.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f47ae51
    • ddkilzer@apple.com's avatar
      Fix logic error in DocLoader::clearPreloads() · 4405f7a1
      ddkilzer@apple.com authored
              Reviewed by Antti.
      
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::clearPreloads): Be sure to decrease the preload count for
              the cached resource before trying to remove it from the cache.  A non-zero
              preload count can prevent the resource from being removed from the cache.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4405f7a1
    • mrowe@apple.com's avatar
      Minor cleanup of the DRT Xcode project. · 04e9ec0f
      mrowe@apple.com authored
      Reviewed by Sam Weinig.
      
      * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:  Use GCC_OPTIMIZATION_LEVEL rather than
      OPTIMIZATION_CFLAGS.  Don't include Info.plist in the "Copy Bundle Resources" build phase as it does
      not need to be there.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04e9ec0f
    • andersca@apple.com's avatar
      WebCore: · 7b7d28be
      andersca@apple.com authored
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Handle empty manifest files without crashing.
              
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::startLoadingEntry):
      
      LayoutTests:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              * http/tests/appcache/empty-manifest-expected.txt: Added.
              * http/tests/appcache/empty-manifest.html: Added.
              * http/tests/appcache/resources/empty.manifest: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b7d28be
    • alp@webkit.org's avatar
      2008-05-12 Alp Toker <alp@nuanti.com> · bb640738
      alp@webkit.org authored
              GTK+ build fix for breakage in r33056. Include limits.h for INT_MAX.
      
              * platform/graphics/FontCache.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb640738
    • andersca@apple.com's avatar
      2008-05-12 Anders Carlsson <andersca@apple.com> · 893e60b4
      andersca@apple.com authored
              Update the expected result.
              
              * http/tests/appcache/simple-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      893e60b4
    • andersca@apple.com's avatar
      2008-05-12 Anders Carlsson <andersca@apple.com> · 7b6613f3
      andersca@apple.com authored
              Reviewed by Adam.
      
              Add user agent to requests when loading/updating the cache.
          
              * loader/FrameLoader.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::update):
              (WebCore::ApplicationCacheGroup::startLoadingEntry):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33058 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b6613f3
    • andersca@apple.com's avatar
      WebCore: · bbe3968b
      andersca@apple.com authored
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Make it possible to perform synchronous loads from the application cache.
              
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::shouldLoadResourceFromApplicationCache):
              Factor out code from scheduleApplicationCacheLoad in its own method.
              
              (WebCore::DocumentLoader::scheduleApplicationCacheLoad):
              Call shouldLoadResourceFromApplicationCache here instead.
              
              * loader/DocumentLoader.h:
              
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::loadResourceSynchronously):
              Call shouldLoadResourceFromApplicationCache.
      
      WebKitTools:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Add support for testing application caches.
              
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (dumpRenderTree):
              Empty the cache.
              
              (resetWebViewToConsistentStateBeforeTesting):
              Turn on support for the application cache.
      
      LayoutTests:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Add simple appcache test.
      
              * http/conf/mime.types:
              * http/tests/appcache: Added.
              * http/tests/appcache/resources: Added.
              * http/tests/appcache/resources/not-in-cache.txt: Added.
              * http/tests/appcache/resources/simple.manifest: Added.
              * http/tests/appcache/resources/simple.txt: Added.
              * http/tests/appcache/simple-expected.txt: Added.
              * http/tests/appcache/simple.html: Added.
              * platform/gtk/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbe3968b
    • mitz@apple.com's avatar
      WebCore: · bdb9ed5e
      mitz@apple.com authored
              Reviewed by Ada Chan and Sam Weinig.
      
              - WebCore changes for https://bugs.webkit.org/show_bug.cgi?id=17097
                <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
      
              Added a way for clients to let the cache know that they no longer need
              font data, which lets the cache release it. Changed clients to track
              most of the font data they get from the cache so that they can later
              release it. Some instances of font data -- namely, those used for system
              font fallback -- are still not tracked and will therefore remain in the
              cache indefinitely.
      
              * WebCore.base.exp: Added exports for WebCoreStatistics in WebKit.
      
              * platform/graphics/Font.cpp:
              (WebCore::Font::Font): Changed to use FontFallbackList::create().
              (WebCore::Font::update): Ditto.
      
              * platform/graphics/FontCache.cpp:
              (WebCore::FontCache::getCachedFontData): Added code to track the number
              of times a SimpleFontData instance has been requested from the cache,
              remove requested instances from the inactive list, and purge inactive
              font data if the inactive list has grown above its maximum allowed size.
              (WebCore::FontCache::releaseFontData): Added. Called by clients to let
              the cache know that they no longer need the font data. Adds the font
              data to the inactive list if the last client has released it.
              (WebCore::FontCache::purgeInactiveFontData): Added. Removes inactive
              font data from the cache (and the inactive list).
              (WebCore::FontCache::fontDataCount): Added to provide statistics.
              (WebCore::FontCache::inactiveFontDataCount): Ditto.
      
              * platform/graphics/FontCache.h:
      
              * platform/graphics/FontData.h:
              (WebCore::FontData::FontData): Added a member variable to store the
              highest glyph page tree level in which there is a node for this FontData.
              This is used to limit the depth of the search when pruning glyph page
              trees.
              (WebCore::FontData::setMaxGlyphPageTreeLevel): Added this accessor.
              (WebCore::FontData::maxGlyphPageTreeLevel): Ditto.
      
              * platform/graphics/FontFallbackList.cpp:
              (WebCore::FontFallbackList::FontFallbackList): Changed to start with a
              refcount of 1.
              (WebCore::FontFallbackList::invalidate): Added a call to
              releaseFontData().
              (WebCore::FontFallbackList::releaseFontData): Added. Lets the font cache
              know that we no longer need the FontData in our font list.
              (WebCore::FontFallbackList::fontDataAt): Changed to record in the font
              list whether the font data is a custom font data or not.
              (WebCore::FontFallbackList::setPlatformFont): Ditto.
      
              * platform/graphics/FontFallbackList.h:
              (WebCore::FontFallbackList::create): Added and made the constructor
              private.
              (WebCore::FontFallbackList::~FontFallbackList): Added a call to
              releaseFontData().
      
              * platform/graphics/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::treeGlyphPageCount): Added to provide
              statistics.
              (WebCore::GlyphPageTreeNode::pageCount): Ditto.
      
              (WebCore::GlyphPageTreeNode::pruneTreeFontData): Added.
              (WebCore::GlyphPageTreeNode::getChild): Added code to update the font
              data's maximum glyph page tree level.
              (WebCore::GlyphPageTreeNode::pruneFontData): Added.
      
              * platform/graphics/GlyphPageTreeNode.h:
      
              * platform/graphics/SimpleFontData.cpp:
              (WebCore::SimpleFontData::~SimpleFontData): Added code to let the font
              cache know that we no longer need the small caps font data and to prune
              the glyph page trees.
      
      WebKit/mac:
      
              Reviewed by Ada Chan.
      
              - WebKit/mac changes for https://bugs.webkit.org/show_bug.cgi?id=17097
                <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
      
              Added font cache statistics and a function to purge inactive font data.
      
              * Misc/WebCoreStatistics.h:
              * Misc/WebCoreStatistics.mm:
              (+[WebCoreStatistics cachedFontDataCount]):
              (+[WebCoreStatistics cachedFontDataInactiveCount]):
              (+[WebCoreStatistics purgeInactiveFontData]):
              (+[WebCoreStatistics glyphPageCount]):
      
      WebKit/win:
      
              Reviewed by Ada Chan.
      
              - WebKit/win changes for https://bugs.webkit.org/show_bug.cgi?id=17097
                <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
      
              Added font cache statistics and a function to purge inactive font data.
      
              * Interfaces/IWebCoreStatistics.idl:
              * WebCoreStatistics.cpp:
              (WebCoreStatistics::cachedFontDataCount):
              (WebCoreStatistics::cachedFontDataInactiveCount):
              (WebCoreStatistics::purgeInactiveFontData):
              (WebCoreStatistics::glyphPageCount):
              * WebCoreStatistics.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bdb9ed5e
    • mrowe@apple.com's avatar
      Decorate some deprecated delegate methods with the availability macros. · 323e9bf1
      mrowe@apple.com authored
      The compiler doesn't appear to warn if a delegate implements these methods, but using the availability
      macros is good for consistency and documentation.
      
      Reviewed by Tim Hatcher.
      
      * WebView/WebFrameLoadDelegate.h:
      * WebView/WebUIDelegate.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      323e9bf1
    • mrowe@apple.com's avatar
      <rdar://problem/5835604> Deprecate HIWebView · fd8c02f0
      mrowe@apple.com authored
      Use of HIWebView is deprecated in favor of embedding a WebView in a HICocoaView.
      
      Reviewed by Tim Hatcher.
      
      * Carbon/CarbonUtils.h: Include the availability macro header and decorate the functions appropriately.
      * Carbon/HIWebView.h: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd8c02f0
    • mrowe@apple.com's avatar
      <rdar://problem/4859666> WebKit needs availability macros in order to deprecate APIs · dc0ad74a
      mrowe@apple.com authored
      Create WebKit availability macros that key off the Mac OS X version being targeted to
      determine the WebKit version being targeted.  Applications can define
      WEBKIT_VERSION_MIN_REQUIRED before including WebKit headers in order to target a specific
      version of WebKit.
      
      The availability header is being added to JavaScriptCore rather than WebKit as JavaScriptCore
      is the lowest-level portion of the public WebKit API.
      
      Reviewed by Tim Hatcher.
      
      * API/WebKitAvailability.h: Added.
      * JavaScriptCore.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc0ad74a
    • kdecker@apple.com's avatar
      Reviewed by Anders. · 0d6534c5
      kdecker@apple.com authored
              Fixed: <rdar://problem/5840884>_recursive_resumeNullEventsForAllNetscapePlugins and _pauseNullEvents not defined
              
              Re-added these SPI methods because they are needed by some clients. They were accidentally removed
              in changeset <http://trac.webkit.org/changeset/31028>
              
              * Plugins/WebBaseNetscapePluginView.h: Added stopTimers, restartTimers to the header.
              * WebView/WebFrame.mm:
              (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]): Re-addd.
              (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]): Ditto.
              * WebView/WebFrameInternal.h: Ditto.
              * WebView/WebHTMLView.mm: Ditto.
              (-[WebHTMLView _pauseNullEventsForAllNetscapePlugins]): Ditto.
              (-[WebHTMLView _resumeNullEventsForAllNetscapePlugins]): Ditto.
              * WebView/WebHTMLViewInternal.h: Ditto.
              * WebView/WebHTMLViewPrivate.h: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d6534c5
    • andersca@apple.com's avatar
      WebCore: · 8990786b
      andersca@apple.com authored
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Alexey.
      
              Add ApplicationCacheStorage::empty() method which will empty
              the application cache database.
              
              * WebCore.base.exp:
              * loader/appcache/ApplicationCache.cpp:
              (WebCore::ApplicationCache::clearStorageID):
              * loader/appcache/ApplicationCache.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::clearStorageID):
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/appcache/ApplicationCacheResource.h:
              (WebCore::ApplicationCacheResource::clearStorageID):
              * loader/appcache/ApplicationCacheStorage.cpp:
              (WebCore::ApplicationCacheStorage::empty):
              * loader/appcache/ApplicationCacheStorage.h:
      
      WebKit/mac:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Alexey.
      
              Empty the application cache when changing the cache model.
              
              * WebView/WebView.mm:
              (+[WebView _setCacheModel:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8990786b
    • andersca@apple.com's avatar
      2008-05-12 Anders Carlsson <andersca@apple.com> · e7ab2092
      andersca@apple.com authored
              Reviewed by Alexey.
      
              Add input method test plug-in.
              
              * NetscapeInputMethodPlugin: Added.
              * NetscapeInputMethodPlugin/English.lproj: Added.
              * NetscapeInputMethodPlugin/English.lproj/InfoPlist.strings: Added.
              * NetscapeInputMethodPlugin/Info.plist: Added.
              * NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj: Added.
              * NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj/project.pbxproj: Added.
              * NetscapeInputMethodPlugin/main.m: Added.
              (NP_Initialize):
              (NP_GetEntryPoints):
              (NP_Shutdown):
              (NPP_New):
              (NPP_Destroy):
              (NPP_SetWindow):
              (NPP_NewStream):
              (NPP_DestroyStream):
              (NPP_WriteReady):
              (NPP_Write):
              (NPP_StreamAsFile):
              (NPP_Print):
              (handleDraw):
              (invalidatePlugin):
              (handleFocusChanged):
              (handleMouseMoved):
              (handleMouseDown):
          ...
      e7ab2092
    • andersca@apple.com's avatar
      WebKit: · 7b3799b2
      andersca@apple.com authored
      2008-05-09  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Oliver.
      
              <rdar://problem/5774495> Make Unicode text input possible in Netscape-style plug-ins
              
              Add nptextinput.h as a public header.
              
              * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Oliver.
      
              <rdar://problem/5774495> Make Unicode text input possible in Netscape-style plug-ins
              
              * Plugins/WebBaseNetscapePluginView.h:
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView start]):
              Get the plug-in text input vtable pointer.
              
              (-[WebBaseNetscapePluginView stop]):
              Set the plug-in text input vtable pointer to 0.
              
              (-[WebBaseNetscapePluginView inputContext]):
              Return 0 for Carbon plug-ins since we don't want Cocoa to handle text input for them.
              
              (-[WebBaseNetscapePluginView hasMarkedText]):        
              (-[WebBaseNetscapePluginView insertText:]):
              (-[WebBaseNetscapePluginView markedRange]):
              (-[WebBaseNetscapePluginView selectedRange]):
              (-[WebBaseNetscapePluginView setMarkedText:selectedRange:]):
              (-[WebBaseNetscapePluginView unmarkText]):
              (-[WebBaseNetscapePluginView validAttributesForMarkedText]):
              (-[WebBaseNetscapePluginView attributedSubstringFromRange:]):
              (-[WebBaseNetscapePluginView characterIndexForPoint:]):
              (-[WebBaseNetscapePluginView doCommandBySelector:]):
              (-[WebBaseNetscapePluginView firstRectForCharacterRange:]):
              (-[WebBaseNetscapePluginView conversationIdentifier]):
              Implement NSTextInput and call into the plug-in text input vtable.
              
              (browserTextInputFuncs):
              New method which returns the browser input vtable.
              
              (-[WebBaseNetscapePluginView getVariable:value:]):
              Support getting the browser input vtable pointer.
              
              * Plugins/WebNetscapePluginEventHandlerCocoa.h:
              * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
              (WebNetscapePluginEventHandlerCocoa::keyDown):
              (WebNetscapePluginEventHandlerCocoa::sendKeyEvent):
              If the plug-in returns 0 when a NPCocoaEventKeyDown is passed to NPP_HandleEvent,
              it means that the event should be passed on to the input manager.
               
              * Plugins/npapi.mm:
              (NPN_MarkedTextAbandoned):
              (NPN_MarkedTextSelectionChanged):
              Add implementations of browser input method methods.
              
              * Plugins/nptextinput.h: Added.
              Add file with new text input API.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b3799b2
    • andersca@apple.com's avatar
      2008-05-12 Anders Carlsson <andersca@apple.com> · b91a3402
      andersca@apple.com authored
              Reviewed by John.
      
              Don't throw an exception if the string passed in is an invalid URL.
              
              * loader/appcache/DOMApplicationCache.cpp:
              (WebCore::DOMApplicationCache::remove):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b91a3402
    • andersca@apple.com's avatar
      2008-05-12 Anders Carlsson <andersca@apple.com> · d6d2e44d
      andersca@apple.com authored
              Reviewed by Mitz.
      
              Add the variable enums for getting the input vtables.
              
              * bridge/npapi.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6d2e44d
    • aroben@apple.com's avatar
      Build fix · 77e0a7de
      aroben@apple.com authored
              * WebKitPrefix.cpp: Touch this so that it will rebuild after
              ENABLE_CROSS_DOCUMENT_MESSAGING was removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77e0a7de
    • aroben@apple.com's avatar
      Windows build fix · 392d9154
      aroben@apple.com authored
              * WebCorePrefix.cpp: Touched this so that it will rebuild now that
              ENABLE_CROSS_DOCUMENT_MESSAGING has been removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      392d9154
    • mjs@apple.com's avatar
      2008-05-12 Maciej Stachowiak <mjs@apple.com> · 6d5cd65a
      mjs@apple.com authored
              Ooops, I made some mistakes trying to fix the validation errors. This time for sure.
      
              * demos/transitions-and-transforms/index.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d5cd65a
    • mjs@apple.com's avatar
      2008-05-12 Maciej Stachowiak <mjs@apple.com> · b92b98fd
      mjs@apple.com authored
              Make the demo valid HTML5 (according to validator.nu) and add alt text to the images.
      
              * demos/transitions-and-transforms/index.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b92b98fd
    • mjs@apple.com's avatar
      2008-05-12 Maciej Stachowiak <mjs@apple.com> · fddeb001
      mjs@apple.com authored
              Tweaked demo visuals slightly.
      
              * demos/transitions-and-transforms/leopard.css:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fddeb001
    • mjs@apple.com's avatar
      2008-05-12 Maciej Stachowiak <mjs@apple.com> · 6c5d6bdf
      mjs@apple.com authored
              Tweak CSS to look a little better while loading.
      
              * demos/transitions-and-transforms/leopard.css:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6c5d6bdf
    • mjs@apple.com's avatar
      2008-05-12 Maciej Stachowiak <mjs@apple.com> · 729d2fb6
      mjs@apple.com authored
              Not reviewed - new demo.
              
              Added a demo of CSS Transforms and Transitions.
      
              * demos/transitions-and-transforms: Added.
              * demos/transitions-and-transforms/Finder Coverflow.png: Added.
              * demos/transitions-and-transforms/Horsehead.png: Added.
              * demos/transitions-and-transforms/Mail Stationery.png: Added.
              * demos/transitions-and-transforms/Quick Look.png: Added.
              * demos/transitions-and-transforms/Spaces.png: Added.
              * demos/transitions-and-transforms/Stacks.png: Added.
              * demos/transitions-and-transforms/Time Machine.png: Added.
              * demos/transitions-and-transforms/index.html: Added.
              * demos/transitions-and-transforms/leopard.css: Added.
              * demos/transitions-and-transforms/no-style.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      729d2fb6