1. 18 May, 2009 6 commits
  2. 17 May, 2009 7 commits
  3. 16 May, 2009 5 commits
    • mrowe@apple.com's avatar
      2009-05-16 Dave Moore <davemoore@google.com> · d5968832
      mrowe@apple.com authored
              Reviewed by Darin Adler.
      
              Allow Strings to be created with one malloc node with no copying
              https://bugs.webkit.org/show_bug.cgi?id=25779
      
              Add new methods to String and StringImpl, refactoring existing
              methods in StringImpl to use new createUninitialized() method.
      
              * platform/text/PlatformString.h:
              (WebCore::String::createUninitialized):
              * platform/text/StringImpl.cpp:
              (WebCore::StringImpl::createUninitialized):
              (WebCore::StringImpl::create):
              * platform/text/StringImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5968832
    • mrowe@apple.com's avatar
      <rdar://problem/6827041> WebCore should stop throwing away the CGImageSourceRef to · 6cb25f07
      mrowe@apple.com authored
      dramatically improve animated GIF decoding performance
      
      Reviewed by Darin Adler.
      
      Recent versions of ImageIO discard previously decoded image frames if the client
      application no longer holds references to them, so there's no need to throw away
      the decoder unless we're explicitly asked to destroy all of the frames.
      
      This drops peak CPU usage when displaying <http://www.aintitcool.com/files/HoD2.gif>
      from over 90% to below 3%.
      
      * platform/graphics/cg/ImageSourceCG.cpp:
      (WebCore::ImageSource::clear):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6cb25f07
    • mitz@apple.com's avatar
      WebCore: · 9a71a3e1
      mitz@apple.com authored
              Reviewed by Alexey Proskuryakov.
      
              - fix <rdar://problem/6873305> Two distinct characters are not displayed
                correctly with 2 of the font selections from the stickies widget
      
              Test: platform/mac/editing/pasteboard/text-precomposed.html
      
              Ensure that "text/plain" data retrieved from the clipboard is always
              precomposed. This makes Clipboard::getData() and
              Pasteboard::documentFragment() consistent with Pasteboard::plainText()
              and -[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:].
      
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::getData):
              * platform/mac/PasteboardMac.mm:
              (WebCore::Pasteboard::documentFragment):
      
      WebKit/mac:
      
              Reviewed by Alexey Proskuryakov.
      
              - fix <rdar://problem/6873305> Two distinct characters are not displayed
                correctly with 2 of the font selections from the stickies widget
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _plainTextFromPasteboard:]): Return precomposed text.
              This is consistent with
              -_documentFragmentFromPasteboard:forType:inContext:subresources:.
      
      LayoutTests:
      
              Reviewed by Alexey Proskuryakov.
      
              - test for <rdar://problem/6873305> Two distinct characters are not
                displayed correctly with 2 of the font selections from the stickies
                widget
      
              * platform/mac/editing/pasteboard/text-precomposed-expected.txt: Added.
              * platform/mac/editing/pasteboard/text-precomposed.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a71a3e1
    • mrowe@apple.com's avatar
      Build fix. · ae7c4191
      mrowe@apple.com authored
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::valueForFamily): Declare valueForFamily as static.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae7c4191
    • darin@apple.com's avatar
      WebCore: · 1dae17c2
      darin@apple.com authored
      2009-05-15  Darin Adler  <darin@apple.com>
      
              Reviewed by Dan Bernstein.
      
              <rdar://problem/6883872> REGRESSION (r43243): computed style for font-family is returning
              only the generic font, if any generic font is in the family list
      
              Test: fast/css/getComputedStyle/computed-style-font-family.html
      
              * css/CSSComputedStyleDeclaration.cpp:
              Sorted computedProperties alphabetically. Added CSSPropertyClip and CSSPropertyWordBreak.
              (WebCore::identifierForFamily): Added. Maps internal font family names to identifiers.
              (WebCore::valueForFamily): Added. Creates either an identifier or a string as appropriate.
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Implemented the font-family
              property as specified in the CSS standard. Fixed clip to return "auto" when there is no
              clip set instead of nothing at all. Gave inheritableProperties and numInheritableProperties
              internal linkage since there was no reason for them to have external linkage.
      
      LayoutTests:
      
      2009-05-15  Darin Adler  <darin@apple.com>
      
              Reviewed by Dan Bernstein.
      
              <rdar://problem/6883872> REGRESSION (r43243): computed style for font-family is returning
              only the generic font, if any generic font is in the family list
      
              * fast/css/getComputedStyle/computed-style-font-family-expected.txt: Added.
              * fast/css/getComputedStyle/computed-style-font-family.html: Added.
      
              * fast/css/getComputedStyle/computed-style.html: Updated array of properties to dump
              that are not visible when iterating the computed style object. Removed pointless
              unused array of unimplemented properties.
              * fast/css/getComputedStyle/computed-style-without-renderer.html: Ditto.
      
              * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: Updated.
              * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1dae17c2
  4. 15 May, 2009 22 commits