<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>133051</bug_id>
          
          <creation_ts>2014-05-18 10:33:02 -0700</creation_ts>
          <short_desc>document RenderObject::childrenInline</short_desc>
          <delta_ts>2014-05-26 12:50:07 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jarek Czekalski">jarekczek</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1010085</commentid>
    <comment_count>0</comment_count>
    <who name="Jarek Czekalski">jarekczek</who>
    <bug_when>2014-05-18 10:33:02 -0700</bug_when>
    <thetext>Could you document what is the exact meaning of WebCore::RenderObject::childrenInline information? This flag seems to be crucial for some parts, for example atk accessibility wrapper depends on it. I would expect this documentation to go before function declaration in RenderObject.h.

Makes sense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1011819</commentid>
    <comment_count>1</comment_count>
    <who name="Jarek Czekalski">jarekczek</who>
    <bug_when>2014-05-26 12:50:07 -0700</bug_when>
    <thetext>You think it&apos;s a trivial question? Here is an interesting example I think:

  0B_RenderBlock {HTML} at (0,0) size 800x600
    0B_RenderBody {BODY} at (8,8) size 784x584
      1B_RenderBlock {DIV} at (0,0) size 784x18
        1I_RenderInline {A} at (0,0) size 24x17 [color=#0000EE]
          0B_RenderText {#text} at (0,0) size 24x17
            text run at (0,0) width 24: &quot;link&quot;

This is a simple div with a link inside. Number prefix is equal to childrenInline(), the letter is taken from isRenderInline() fun. So for the render {A} object childrenInline() holds true, despite it having a single child which is not inline.

I was close to formulating a clean description for childrenInline function whichw would be:

Returns true when object has at least one child and all children are inline.
Returns false when object has no children or all are not inline.
An object can never have mixed block and inline children.

But now I am confused again. RenderInline seems to be some exception to the above rule. And actually an exception to a default meaning of &quot;childrenInline&quot; name.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>