2009-01-23 Adele Peterson <adele@apple.com>
authoradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jan 2009 22:50:47 +0000 (22:50 +0000)
committeradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jan 2009 22:50:47 +0000 (22:50 +0000)
        Build fix.

        Use new linesBoundingBox method instead of
        boundingBoxWidth and boundingBoxHeight for RenderText objects.

        * WebView/WebRenderNode.mm: (copyRenderNode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40190 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/mac/ChangeLog
WebKit/mac/WebView/WebRenderNode.mm

index 6f6ec10..7f9f5fd 100644 (file)
@@ -1,3 +1,12 @@
+2009-01-23  Adele Peterson  <adele@apple.com>
+
+        Build fix.
+
+        Use new linesBoundingBox method instead of
+        boundingBoxWidth and boundingBoxHeight for RenderText objects.
+
+        * WebView/WebRenderNode.mm: (copyRenderNode):
+
 2009-01-23  Anders Carlsson  <andersca@apple.com>
 
         Fix 64-bit build.
index 8915fc2..183013b 100644 (file)
@@ -104,8 +104,9 @@ static WebRenderNode *copyRenderNode(RenderObject* node)
         RenderText* text = static_cast<RenderText*>(node);
         x = text->firstRunX();
         y = text->firstRunY();
-        width = text->boundingBoxWidth();
-        height = text->boundingBoxHeight();
+        IntRect box = text->linesBoundingBox();
+        width = box.width();
+        height = box.height();
     }
     
     WebRenderNode *result = [[WebRenderNode alloc] initWithName:name