1. 24 May, 2007 2 commits
    • adele's avatar
      LayoutTests: · 23d876c2
      adele authored
              Reviewed by Darin.
      
              - pixel test for http://bugs.webkit.org/show_bug.cgi?id=13837
                Separator in new <select> widget disappears when block element with border is in document.
      
              * fast/forms/menulist-separator-painting-expected.checksum: Added.
              * fast/forms/menulist-separator-painting-expected.png: Added.
              * fast/forms/menulist-separator-painting-expected.txt: Added.
              * fast/forms/menulist-separator-painting.html: Added.
      
      WebCore:
      
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=13837
                Separator in new <select> widget disappears when block element with border is in document.
      
              Test: fast/forms/menulist-separator-painting.html
      
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::drawConvexPolygon): Changed this function to
              actually do both filling and stroking when needed, even though all existing
              callers set the stroke to none.
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::paintMenuListButton): Added calls to set the stroke
              style and thickness when painting the arrows and the separator.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21719 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      23d876c2
    • hyatt's avatar
      Rework how HTML handles line numbering so that it is not fooled by · ec064cb5
      hyatt authored
              \r without a following \n and so that document.write doesn't lead
              to line numbering confusion.
      
              Reviewed by aroben
      
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::reportErrorToConsole):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::processListing):
              (WebCore::HTMLTokenizer::parseSpecial):
              (WebCore::HTMLTokenizer::parseComment):
              (WebCore::HTMLTokenizer::parseServer):
              (WebCore::HTMLTokenizer::parseProcessingInstruction):
              (WebCore::HTMLTokenizer::parseText):
              (WebCore::HTMLTokenizer::parseEntity):
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::write):
              (WebCore::HTMLTokenizer::processToken):
              (WebCore::HTMLTokenizer::setSrc):
              * html/HTMLTokenizer.h:
              (WebCore::HTMLTokenizer::lineNumberPtr):
              * html/HTMLViewSourceDocument.cpp:
              (WebCore::HTMLViewSourceDocument::addLine):
              * loader/TextDocument.cpp:
              (WebCore::TextTokenizer::write):
              * platform/SegmentedString.cpp:
              (WebCore::SegmentedString::SegmentedString):
              (WebCore::SegmentedString::operator=):
              (WebCore::SegmentedString::clear):
              * platform/SegmentedString.h:
              (WebCore::SegmentedString::SegmentedString):
              (WebCore::SegmentedString::advance):
              (WebCore::SegmentedString::escaped):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec064cb5
  2. 23 May, 2007 6 commits
  3. 22 May, 2007 2 commits
    • adele's avatar
      LayoutTests: · 82c11d19
      adele authored
              Reviewed by Darin.
      
              Test for http://bugs.webkit.org/show_bug.cgi?id=13796
              Crash in [NSInputContext currentInputContext] when you click on this map
      
              * fast/frames/frame-display-none-focus-expected.txt: Added.
              * fast/frames/frame-display-none-focus.html: Added.
              * fast/frames/resources/iframe-focus.html: Added.
      
      WebCore:
      
              Reviewed by Darin.
      
              Fix for http://bugs.webkit.org/show_bug.cgi?id=13796
              Crash in [NSInputContext currentInputContext] when you click on this map
      
              This is another case of <rdar://problem/5171145> Safari crashed closing tab in NSInputContext updateInputContexts
      
              Test: fast/frames/frame-display-none-focus.html
      
              * WebCore.xcodeproj/project.pbxproj: Added ChromeMac.mm
              * page/Chrome.h:
              * page/mac/ChromeMac.mm: Added.
              (WebCore::Chrome::focusNSView): Moved code from Widget::setFocus so it can be used whenever we need to make a view the first responder.
              * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::focusDocumentView): Calls focusNSView.
              * platform/mac/WidgetMac.mm: (WebCore::Widget::setFocus): Calls focusNSView.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82c11d19
    • zack's avatar
      Path implementing more Cliboard from Marius Bugge Monsen. · 329e627d
      zack authored
      Adding implementations of some of the missing methods.
      r=me
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      329e627d
  4. 21 May, 2007 2 commits
    • adele's avatar
      WebCore: · dd237c40
      adele authored
              Fix by Darin, reviewed by me.
      
              Fix for <rdar://problem/5171145> Safari crashed closing tab in NSInputContext updateInputContexts
      
              * platform/mac/WidgetMac.mm:
              (WebCore::safeRemoveFromSuperview): Added. If the view is the window's first responder, then 
               set the window's first responder to nil so we don't leave the window pointing to a view that's no longer in it.
              (WebCore::Widget::setFocus): Don't attempt to focus the view if it has no window.
              (WebCore::Widget::removeFromSuperview): Call safeRemoveFromSuperview.
              (WebCore::Widget::afterMouseDown): ditto.
      
      WebKit:
      
              Fix by Darin, reviewed by me.
      
              Fix for <rdar://problem/5171145> Safari crashed closing tab in NSInputContext updateInputContexts
      
              * WebView/WebFrameView.mm: (-[WebFrameView _setDocumentView:]): If the old view is the first responder,
              then set the window's first responder to nil so we don't leave the window pointing to a view that's no longer in it.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd237c40
    • lars's avatar
      Reviewed by Zack. · 31303062
      lars authored
              Add an API layer for network downloads. Basically QWebnetworkInterface
              is an interface class for downloading resources. QWebnetworkJob describes
              the actual object to download.
      
              QWebNetworkInterface has a default implementation that replaces the
              old ResourceHandleManager class in the Qt port.
      
              Remove the ResourceHandleManager class, it is now part of 
              QWebNetworkInterface. Adapt ResourceHandle to the new way 
              of things.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31303062
  5. 20 May, 2007 2 commits
    • darin's avatar
      Reviewed by Oliver Hunt. · 29df4b01
      darin authored
              - fix <rdar://problem/5193416> REGRESSION: Selection on large pages extremely slow
      
              * dom/Document.cpp: (WebCore::Document::removeMarkers): Added an early exit for the common
              case where there are no markers. Changed code to iterate over all the nodes in the range
              instead of using TextIterator, which is more efficient.
              
              * page/Frame.cpp: (WebCore::Frame::respondToChangedSelection): Added checks for editable,
              so we don't bother doing work related to spell checking and grammar checking when changing
              the selection in non-editable text. Also rearranged the code so we only compute the old
              word boundaries and sentence boundaries when actually needed, and don't do the sentence
              range checks unless grammar checking is enabled.
      
              * platform/TextBreakIteratorICU.cpp:
              (WebCore::setUpIterator): Don't take a locale parameter. Always pass in currentTextBreakLocaleID.
              (WebCore::characterBreakIterator): Removed local parameter.
              (WebCore::wordBreakIterator): Ditto.
              (WebCore::lineBreakIterator): Ditto.
              (WebCore::sentenceBreakIterator): Ditto.
      
              * platform/mac/TextBreakIteratorInternalICUMac.mm:
              (WebCore::getTextBreakLocale): Broke out the code to actually get the locale.
              (WebCore::currentTextBreakLocaleID): This function now handles only the caching and calls
              getTextBreakLocale to actually figure it out.
      
              * editing/visible_units.cpp: Added lots of FIXME comments, but no code change.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29df4b01
    • staikos's avatar
      Add missing include for auto_ptr · d3ea845a
      staikos authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3ea845a
  6. 19 May, 2007 1 commit
    • bdash's avatar
      2007-05-19 Mitz Pettel <mitz@webkit.org> · 71b3ce0c
      bdash authored
              Reviewed by Darin.
      
              - http://bugs.webkit.org/show_bug.cgi?id=13320
                rounded corners with drop shadows are really slow
      
              Test for a rendering bug fixed by this patch:
                  fast/box-shadow/border-radius-big.html
      
              No test for the performance ingredient.
      
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::addRoundedRectClip): Made cross-platform.
              Changed to use a single clipping path. If all the radii cannot be
              accommodated, clips to a rect.
              (WebCore::GraphicsContext::clipOutRoundedRect): Changed to use a single
              clipping path. If all the radii cannot be accommodated, clips out a rect.
              * platform/graphics/GraphicsContext.h: Added clipOut(const Path&).
              * platform/graphics/Path.cpp:
              (WebCore::Path::createRoundedRectangle): Added. Returns a rounded rectangle
              with the specified radii. If all the radii cannot be accommodated, returns
              a rectangular path.
              * platform/graphics/Path.h:
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::clipOut): Added.
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::fillRoundedRect): Changed to use a single path.
              (WebCore::GraphicsContext::clipOut): Added.
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::GraphicsContext::clipOut): Added.
      
      2007-05-19  Mitz Pettel  <mitz@webkit.org>
      
              Reviewed by Darin.
      
              - http://bugs.webkit.org/show_bug.cgi?id=13320
                rounded corners with drop shadows are really slow
      
              * fast/box-shadow/border-radius-big-expected.checksum: Added.
              * fast/box-shadow/border-radius-big-expected.png: Added.
              * fast/box-shadow/border-radius-big-expected.txt: Added.
              * fast/box-shadow/border-radius-big.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21601 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71b3ce0c
  7. 18 May, 2007 7 commits
    • bdash's avatar
      2007-05-18 Mark Rowe <mrowe@apple.com> · 0d4ebb85
      bdash authored
              Attempt to fix the Gdk build after r21562.
      
              * platform/gdk/TemporaryLinkStubs.cpp:
              (Widget::isEnabled):
              * platform/gdk/WidgetGdk.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d4ebb85
    • lars's avatar
      2007-05-18 Adam Treat <treat@kde.org> · c00a762f
      lars authored
              Reviewed by Lars
      
              Remove dead code.
      
              * platform/Widget.h:
              * platform/mac/WidgetMac.mm:
              * platform/qt/WidgetQt.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c00a762f
    • bdash's avatar
      2007-05-18 Holger Freyther <zecke@selfish.org> · 2f045e58
      bdash authored
              Reviewed by Maciej.
      
              Make WebCore::Widget use GtkWidget to fix focus handling.
      
              * WebCore.pro: Add PlatformScrollBar
              * platform/ScrollView.h: Gtk stuff
              * platform/Widget.h: Take a GtkWidget
              * platform/gdk/PlatformScrollBarGdk.cpp: Added.
              (PlatformScrollbar::PlatformScrollbar):
              (PlatformScrollbar::~PlatformScrollbar):
              (PlatformScrollbar::width):
              (PlatformScrollbar::height):
              (PlatformScrollbar::setEnabled):
              (PlatformScrollbar::paint):
              (PlatformScrollbar::updateThumbPosition):
              (PlatformScrollbar::updateThumbProportion):
              (PlatformScrollbar::setRect):
              * platform/gdk/ScreenGdk.cpp: Implement depth handling
              (WebCore::screenDepth):
              * platform/gdk/ScrollViewGdk.cpp: use setGtkWidget, not setDrawable
              (WebCore::ScrollView::setGtkWidget):
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/gdk/WidgetGdk.cpp:
              (WebCore::Widget::Widget):
              (WebCore::Widget::gtkWidget):
              (WebCore::Widget::setGtkWidget):
              (WebCore::Widget::hasFocus):
              (WebCore::Widget::setFocus):
      
      2007-05-18  Holger Freyther  <zecke@selfish.org>
      
              Reviewed by Maciej.
      
              * GdkLauncher/main.cpp: Call setGtkWidget
              (main):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f045e58
    • lars's avatar
      Reviewed by Zack · f188d973
      lars authored
              Correctly implement initialiseSupportedImageMIMETypes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f188d973
    • bdash's avatar
      2007-05-18 Holger Hans Peter Freyther <zecke@selfish.org> · 98f449d6
      bdash authored
              Reviewed by Mark Rowe.
      
              No test added as this is hard to time.
      
              * platform/gdk/FrameGdk.cpp: Use needsLayout() to decide if layout()
              is needed.
      
              (WebCore::FrameGdk::dumpRenderTree):
              (WebCore::FrameGdk::handleGdkEvent):
      
      2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Mark Rowe.
      
              * kjs/testkjs.pro: Make the Gdk port link to icu
      
      2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Mark Rowe.
      
              * WebKit.pro: Build testkjs for Gdk and Qt
      
      2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Mark Rowe.
      
              * GdkLauncher/main.cpp:
              (main): Call Frame::init to catch up with Maciej's changes.
              * Scripts/run-javascriptcore-tests: Remove --gdk from the command line
              passed to the helper scripts.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98f449d6
    • lars's avatar
      Reviewed by Hyatt. · 3a0dd51c
      lars authored
              Remove unused handleMouseEvent methods in the Widget
              and derived classes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3a0dd51c
    • staikos's avatar
      Use the proper clipping algorithm · c01e4e0c
      staikos authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c01e4e0c
  8. 17 May, 2007 1 commit
  9. 16 May, 2007 1 commit
  10. 15 May, 2007 4 commits
  11. 14 May, 2007 3 commits
    • bdash's avatar
      2007-05-14 Mitz Pettel <mitz@webkit.org> · 08074659
      bdash authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=13711
                REGRESSION - Bookmark Bar text rendering changed
      
              No test possible since this patch affects only Safari chrome.
      
              * platform/Font.cpp:
              (WebCore::Font::Font): Initialize m_isPlatformFont according to whether
              the Font object is derived from a FontPlatformData or not.
              * platform/Font.h:
              (WebCore::Font::isPlatformFont): Added. Returns whether this Font was
              derived from a platform font.
              * platform/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters): Changed to not enable
              synthetic bold and italic in the fallback fonts if the original font
              was derived from a platform font.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08074659
    • adele's avatar
      Reviewed by Darin. · b3a6f499
      adele authored
              Fix for <rdar://problem/5200081> Repro crash in PopupMenu::show clicking popup menu button after reload
      
              * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Added call to dismissPopup so the cell gets unattached properly.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21463 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3a6f499
    • lars's avatar
      Reviewed by Zack · 0b35e4e2
      lars authored
              Updates after Maciej's frame change.
      
      	This gets things to run again. The #ifdef PLATFORM(QT)
      	in the FrameLoader should not be needed (and adding the line
      	inside on the mac doesn't seem to trigger any failures there).
      	I'm submitting with it to be on the safe side for now, since I
      	really need our tests to run again.
      
      	Btw, post-commit-linux-qt should show up green on with this submit :))
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b35e4e2
  12. 13 May, 2007 2 commits
  13. 12 May, 2007 1 commit
    • oliver's avatar
      2007-05-12 Oliver Hunt <oliver@apple.com> · 52e744de
      oliver authored
      LayoutTests:
      
              Reviewed by Hyatt.
              
              Add test to verify files can be dragged to <input type="file">
      
              * fast/forms/dragging-to-file-input-expected.txt: Added.
              * fast/forms/dragging-to-file-input.html: Added.
      
      WebCore:
      
              Reviewed by Hyatt.
      
              <rdar://problem/4728842> Can't drag-and-drop files onto <input type="file">
              
              This patch allows a file to be dropped on to a file input field.  There
              are a few changes for data handling and a  few to allow the data to be
              threaded to the appropriate places.
      
              * page/DragController.cpp:
              (WebCore::asFileInput):
                 When dropping a file onto a file input we may mouse over either 
                 the element itself, or the contained button element.  This method
                 returns the base element for the file input in either of these
                 cases.
              (WebCore::DragController::tryDocumentDrag):
                 Don't try to set the drag caret to a file input.
              (WebCore::DragController::concludeDrag):
                 Handle dropping onto a file input element.
              (WebCore::DragController::canProcessDrag):
                 We can now process a file being dragged onto a file input element.
                 
              * platform/DragData.h:
                 New accessors
                 
              * platform/gdk/DragDataGdk.cpp:
              (WebCore::DragData::containsFiles):
              (WebCore::DragData::asFilenames):
                 Link stubs.
                 
              * platform/mac/DragDataMac.mm:
              (WebCore::DragData::containsFiles):
              (WebCore::DragData::asFilenames):
                 Implement new accessors
              (WebCore::DragData::containsCompatibleContent):
                 Update containsCompatibleContent to allow standalone files.
                
              * platform/qt/DragDataQt.cpp:
              (WebCore::DragData::containsFiles):
              (WebCore::DragData::asFilenames):
                 Link stubs
                            
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::receiveDroppedFile):
              * rendering/RenderFileUploadControl.h:
                 For security reasons we don't have an api to allow us to set 
                 a value directly on a file input -- attempts to do so are
                 blocked.  By adding a method to set the target through the 
                 render we bypass such restrictions, and ensure the renderer
                 is updated correctly.
      
      WebKitTools:
      
              Reviewed by Hyatt.
              
              Add new api to DRT to allow us to test a file being dragged 
              onto <input type="file">
      
              * DumpRenderTree/DumpRenderTree.h:
              * DumpRenderTree/DumpRenderTree.m:
              (+[LayoutTestController isSelectorExcludedFromWebScript:]):
              (-[LayoutTestController addFileToPasteboardOnDrag]):
              (runTest):
              * DumpRenderTree/UIDelegate.m:
              (-[UIDelegate webView:dragImage:at:offset:event:pasteboard:source:slideBack:forView:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      52e744de
  14. 11 May, 2007 5 commits
    • oliver's avatar
      2007-05-11 Oliver Hunt <oliver@apple.com> · 64b30870
      oliver authored
      LayoutTests:
      
              Reviewed by Hyatt.
              
              Layout test for x-mac-roman character encoding.
      
              * fast/encoding/xmacroman-encoding-test-expected.txt: Added.
              * fast/encoding/xmacroman-encoding-test.html: Added.
      
      WebCore:
      
              Reviewed by Hyatt.
              
              <rdar://problem/5195473> REGRESSION: "Curly quote" fails to 
              be displayed correctly even when META tag specifies charset=x-mac-roman
      
      
              * platform/TextCodecICU.cpp:
              (WebCore::TextCodecICU::registerExtendedEncodingNames):
              Register the xmacroman encoding
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64b30870
    • bdash's avatar
      2007-05-11 Holger Hans Peter Freyther <zecke@selfish.org> · e766a54a
      bdash authored
              Reviewed by Maciej.
      
              Bug 13676: [cairo/gdk] Provide implementation for ImageBufferCairo
              http://bugs.webkit.org/show_bug.cgi?id=13676
      
              There are no test cases that explicitly cover platform/graphics at present.
      
              * platform/graphics/ImageBuffer.h: Add cairo bits
              * platform/graphics/cairo/ImageBufferCairo.cpp: Untested implementation of the ImagerBuffer using the image_surface
              (WebCore::ImageBuffer::create): Create a reasonable sized surface
              (WebCore::ImageBuffer::ImageBuffer): Use a cairo_surface and create a GraphicsContext. GraphicsContext takes the cairo_t ownership
              (WebCore::ImageBuffer::~ImageBuffer): Unref the surface
              (WebCore::ImageBuffer::context): simply return the GraphicsContext, it should be possible to directly draw on it.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21415 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e766a54a
    • bdash's avatar
      2007-05-11 Mitz Pettel <mitz@webkit.org> · 9b0ff976
      bdash authored
              Release build fix.
      
              * platform/mac/ShapeArabic.c:
              (shapeArabic):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b0ff976
    • beidson's avatar
      d420199c
    • bdash's avatar
      2007-05-11 Mitz Pettel <mitz@webkit.org> · bcc4eddf
      bdash authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=13572
                Arabic characters are not correctly joined when using Arial
      
              No tests added because standard fonts do not use the character-based shaping
              code path.
      
              Added shapeArabic(), a private version of u_shapeArabic() from ICU,
              patched to shape Arabic characters used in Persian, Urdu, Sindhi, etc.
              (whose contextual forms belong to the Arabic Presentation Forms-A block).
      
              * WebCore.xcodeproj/project.pbxproj: Added ShapeArabic.{c,h}.
              * platform/mac/FontMac.mm:
              (WebCore::shapeArabic): Changed to call shapeArabic() instead of u_shapeArabic().
              * platform/mac/ShapeArabic.c: Added. Based on ushape.c from ICU, with
              additional shaping data and logic for Arabic Presentation Forms-A. Removed
              many options that are not used in WebKit and code that malloc()ed a temporary
              buffer and reversed the string.
              (changeLamAlef):
              (specialChar):
              (getLink):
              (isTashkeelChar):
              (shapeUnicode):
              (shapeArabic):
              * platform/mac/ShapeArabic.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcc4eddf
  15. 10 May, 2007 1 commit
    • beidson's avatar
      Reviewed by Oliver · a3c2abfd
      beidson authored
              Cleanup from my earlier Java Applet patch.  We should keep a central location to query if 
              a mime type counts as a Java Applet
      
              * html/HTMLObjectElement.cpp:
              (WebCore::HTMLObjectElement::containsJavaApplet): Query MimeTypeRegistry on the type
      
              * platform/MimeTypeRegistry.cpp:
              (WebCore::MimeTypeRegistry::isSupportedImageMIMEType): Update style
              (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType): Ditto
              (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType): Ditto
              (WebCore::MimeTypeRegistry::isJavaAppletMIMEType): Perform the Java Applet check
              * platform/MimeTypeRegistry.h:
      
              * rendering/RenderPartObject.cpp:
              (WebCore::RenderPartObject::updateWidget): Query MimeTypeRegistry on the type
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3c2abfd