Commit a422eff1 authored by adele@apple.com's avatar adele@apple.com

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):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2e2d84fe
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.
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment