Bug 134702 - InlineBox should offer similar set of bounds (position/size) APIs as RenderBox.
Summary: InlineBox should offer similar set of bounds (position/size) APIs as RenderBox.
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-07 16:31 PDT by zalan
Modified: 2014-07-07 16:31 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2014-07-07 16:31:23 PDT
whenever possible/applicable.

InlineBox:
    void setX(float x)
    void setY(float y)
 
    float x() 
    float y()
    float width()
    float height()
    float left()
    float top()
    float right()
    float bottom()
    const FloatPoint& topLeft()
    FloatSize size()
    
    void setLogicalLeft(float left)
    void setLogicalTop(float top)
    void setLogicalWidth(float w)

    float logicalLeft()
    float logicalRight()
    float logicalTop()
    float logicalBottom()
    float logicalWidth()
    float logicalHeight()
    FloatRect logicalFrameRect()


RenderBox:
    void setX(LayoutUnit x)
    void setY(LayoutUnit y)
    void setWidth(LayoutUnit width)
    void setHeight(LayoutUnit height)
    void setLocation(const LayoutPoint& location)
    void setSize(const LayoutSize& size)
    void setFrameRect(const LayoutRect& rect)

    LayoutUnit x()
    LayoutUnit y()
    LayoutUnit width()
    LayoutUnit height()
    LayoutUnit top()
    LayoutUnit left()
    LayoutPoint location()
    LayoutSize size()
    LayoutRect frameRect()

    void setLogicalLeft(LayoutUnit left)
    void setLogicalTop(LayoutUnit top)
    void setLogicalWidth(LayoutUnit size)
    void setLogicalHeight(LayoutUnit size)
    void setLogicalLocation(const LayoutPoint& location)
    void setLogicalSize(const LayoutSize& size)

    LayoutUnit logicalLeft()
    LayoutUnit logicalRight()
    LayoutUnit logicalTop()
    LayoutUnit logicalBottom()
    LayoutUnit logicalWidth()
    LayoutUnit logicalHeight()