Author: fejj
Date: 2007-09-26 15:21:55 -0400 (Wed, 26 Sep 2007)
New Revision: 86435

Modified:
   trunk/moon/src/text.patch
Log:
updated

Modified: trunk/moon/src/text.patch
===================================================================
--- trunk/moon/src/text.patch   2007-09-26 19:12:49 UTC (rev 86434)
+++ trunk/moon/src/text.patch   2007-09-26 19:21:55 UTC (rev 86435)
@@ -1,6 +1,6 @@
 Index: text.h
 ===================================================================
---- text.h     (revision 86430)
+--- text.h     (revision 86433)
 +++ text.h     (working copy)
 @@ -18,55 +18,9 @@
  
@@ -59,11 +59,13 @@
  void text_init (void);
  void text_destroy (void);
  
-@@ -86,7 +40,7 @@
+@@ -85,8 +39,8 @@
+       virtual Type::Kind GetObjectType () { return Type::INLINE; }
        virtual void OnPropertyChanged (DependencyProperty *prop);
        virtual void OnSubPropertyChanged (DependencyProperty *prop, 
DependencyProperty *subprop);
- 
+-
 -      PangoFontDescription *font;
++      
 +      TextFontDescription *font;
        Brush *foreground;
  };
@@ -154,9 +156,9 @@
  TextBlock *text_block_new (void);
 Index: text.cpp
 ===================================================================
---- text.cpp   (revision 86430)
+--- text.cpp   (revision 86434)
 +++ text.cpp   (working copy)
-@@ -22,65 +22,12 @@
+@@ -22,62 +22,8 @@
  #include "text.h"
  
  
@@ -220,11 +222,7 @@
  static Brush *
  default_foreground (void)
  {
-+      
-       if (!default_foreground_brush) {
-               default_foreground_brush = new SolidColorBrush ();
-               Color *color = color_from_str ("black");
-@@ -107,12 +54,12 @@
+@@ -107,12 +53,12 @@
        foreground = NULL;
        
        /* initialize the font description */
@@ -239,7 +237,7 @@
        
        if (foreground != NULL) {
                foreground->Detach (NULL, this);
-@@ -127,22 +74,22 @@
+@@ -127,22 +73,22 @@
                DependencyObject::OnPropertyChanged (prop);
                return;
        }
@@ -268,7 +266,7 @@
        } else if (prop == Inline::ForegroundProperty) {
                if (foreground != NULL) {
                        foreground->Detach (NULL, this);
-@@ -320,28 +267,28 @@
+@@ -320,28 +266,28 @@
  
  TextBlock::TextBlock ()
  {
@@ -311,7 +309,7 @@
        
        text_block_set_text (this, (char *) "");
        
-@@ -353,13 +300,10 @@
+@@ -353,13 +299,10 @@
  
  TextBlock::~TextBlock ()
  {
@@ -327,7 +325,7 @@
        if (foreground != NULL) {
                foreground->Detach (NULL, this);
                foreground->unref ();
-@@ -375,11 +319,6 @@
+@@ -375,11 +318,6 @@
  void
  TextBlock::Render (cairo_t *cr, int x, int y, int width, int height)
  {
@@ -339,7 +337,7 @@
        cairo_save (cr);
        cairo_set_matrix (cr, &absolute_xform);
        Paint (cr);
-@@ -389,7 +328,7 @@
+@@ -389,7 +327,7 @@
  void 
  TextBlock::ComputeBounds ()
  {
@@ -348,7 +346,7 @@
  // no-op      bounds.GrowBy (1);
  }
  
-@@ -408,7 +347,7 @@
+@@ -408,7 +346,7 @@
        
        cairo_matrix_transform_point (&inverse, &nx, &ny);
        
@@ -357,7 +355,7 @@
                ret = true;
        
        cairo_restore (cr);
-@@ -420,7 +359,7 @@
+@@ -420,7 +358,7 @@
  {
        Point user_xform_origin = GetRenderTransformOrigin ();
        
@@ -366,7 +364,7 @@
  }
  
  void
-@@ -457,61 +396,40 @@
+@@ -457,61 +395,40 @@
  void
  TextBlock::Layout (cairo_t *cr)
  {
@@ -445,7 +443,7 @@
                TextDecorations deco;
                Value *value;
                Inline *item;
-@@ -520,129 +438,62 @@
+@@ -520,129 +437,62 @@
                while (node != NULL) {
                        item = (Inline *) node->obj;
                        
@@ -606,7 +604,7 @@
  }
  
  void
-@@ -658,19 +509,19 @@
+@@ -658,19 +508,19 @@
        
        if (prop == TextBlock::FontFamilyProperty) {
                char *family = text_block_get_font_family (this);
@@ -631,7 +629,7 @@
        } else if (prop == TextBlock::TextProperty) {
                // will be updated later in Layout()
        } else if (prop == TextBlock::InlinesProperty) {
-@@ -692,7 +543,6 @@
+@@ -692,7 +542,6 @@
                        foreground->ref ();
                }
                
@@ -639,15 +637,18 @@
                // Note: Until we find a way to update fg brushes in
                // the Layout when they change here and/or in the
                // inlines, we have to re-layout (which sucks).
-@@ -808,7 +658,6 @@
-               } else {
-                       inlines->Clear ();
+@@ -811,6 +660,10 @@
                }
--              
+               
                inlines->Add (run);
++              
++              //dirty_actual_values = true;
++              //UpdateBounds (true);
++              //Invalidate ();
                return;
        }
-@@ -1188,6 +1037,8 @@
+       
+@@ -1189,6 +1042,8 @@
  void
  text_init (void)
  {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to