Reviewed by Darin.

        A few small updates to my bidi patch.

        * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::paintObject): Moved the declaration of the CharacterBuffer outside the if statement since we use its data outside that scope.
        * rendering/RenderListBox.cpp: (WebCore::RenderListBox::paintItemForeground): ditto.
        * rendering/bidi.cpp: (WebCore::RenderBlock::bidiReorderCharacters): Used a PassRefPtr for the BidiContext.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19420 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/rendering/bidi.cpp b/WebCore/rendering/bidi.cpp
index 11f9da7..b0ecc74 100644
--- a/WebCore/rendering/bidi.cpp
+++ b/WebCore/rendering/bidi.cpp
@@ -132,7 +132,7 @@
     
     // Call bidiReorderLine
     BidiState bidi;
-    BidiContext* startEmbed;
+    PassRefPtr<BidiContext> startEmbed;
     if (style->direction() == LTR) {
         startEmbed = new BidiContext(0, LeftToRight, NULL, style->unicodeBidi() == Override);
         bidi.status.eor = LeftToRight;