<?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>25769</bug_id>
          
          <creation_ts>2009-05-13 17:04:44 -0700</creation_ts>
          <short_desc>Fix accessibility warnings on GTK</short_desc>
          <delta_ts>2009-07-22 15:47:21 -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>Accessibility</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="chris fleizach">cfleizach</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>laszlo.gombos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>121165</commentid>
    <comment_count>0</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2009-05-13 17:04:44 -0700</bug_when>
    <thetext>here are the warnings this patch will try to fix

../../WebCore/page/AccessibilityTable.h:66: warning: type qualifiers ignored on function return type
../../WebCore/page/AccessibilityTable.h:67: warning: type qualifiers ignored on function return type
../../WebCore/page/AccessibilityRenderObject.cpp:2118: warning: ‘WebCore::createARIARoleMap()::RoleEntry’ declared with greater visibility than the type of its field ‘WebCore::createARIARoleMap()::RoleEntry::ariaRole’
../../WebCore/page/AccessibilityTable.h:66: warning: type qualifiers ignored on function return type
../../WebCore/page/AccessibilityTable.h:67: warning: type qualifiers ignored on function return type
../../WebCore/page/AccessibilityTable.cpp:353: warning: type qualifiers ignored on function return type
../../WebCore/page/AccessibilityTable.cpp:361: warning: type qualifiers ignored on function return type
../../WebCore/page/AccessibilityTable.h:66: warning: type qualifiers ignored on function return type
../../WebCore/page/AccessibilityTable.h:67: warning: type qualifiers ignored on function return type
../../WebCore/page/AccessibilityTable.h:66: warning: type qualifiers ignored on function return type
../../WebCore/page/AccessibilityTable.h:67: warning: type qualifiers ignored on function return type</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121170</commentid>
    <comment_count>1</comment_count>
      <attachid>30301</attachid>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2009-05-13 17:13:36 -0700</bug_when>
    <thetext>Created attachment 30301
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121203</commentid>
    <comment_count>2</comment_count>
      <attachid>30301</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-05-13 19:47:31 -0700</bug_when>
    <thetext>Comment on attachment 30301
patch

This isn&apos;t correct.  The warnings are saying that it doesn&apos;t make sense for the return type of a function to be &quot;const unsigned&quot;, such as in &quot;const unsigned columnCount();&quot;.  Should that perhaps be &quot;unsigned columnCount() const;&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121209</commentid>
    <comment_count>3</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2009-05-13 20:47:13 -0700</bug_when>
    <thetext>yes that sounds correct</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121356</commentid>
    <comment_count>4</comment_count>
      <attachid>30350</attachid>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2009-05-14 12:34:29 -0700</bug_when>
    <thetext>Created attachment 30350
patch

updated patch based on review
can&apos;t make columnCount into

unsigned columnCount() const

because it needs to call addChildren(), which is not const</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121423</commentid>
    <comment_count>5</comment_count>
      <attachid>30350</attachid>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2009-05-14 20:43:09 -0700</bug_when>
    <thetext>Comment on attachment 30350
patch


&gt; Index: WebCore/page/AccessibilityRenderObject.cpp
&gt; ===================================================================
&gt; --- WebCore/page/AccessibilityRenderObject.cpp	(revision 43716)
&gt; +++ WebCore/page/AccessibilityRenderObject.cpp	(working copy)
&gt; @@ -2116,6 +2116,7 @@ typedef HashMap&lt;String, AccessibilityRol
&gt;  static const ARIARoleMap&amp; createARIARoleMap()
&gt;  {
&gt;      struct RoleEntry {
&gt; +    public:


Isn&apos;t a struct public by default?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121426</commentid>
    <comment_count>6</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2009-05-14 20:47:53 -0700</bug_when>
    <thetext>you&apos;d think, but what does this warning mean then

‘WebCore::createARIARoleMap()::RoleEntry’ declared with greater visibility
than the type of its field</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121665</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-05-16 20:17:15 -0700</bug_when>
    <thetext>*** Bug 25838 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121666</commentid>
    <comment_count>8</comment_count>
      <attachid>30350</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-05-16 20:35:59 -0700</bug_when>
    <thetext>Comment on attachment 30350
patch

&gt;  {
&gt;      struct RoleEntry {
&gt; +    public:
&gt;          String ariaRole;
&gt;          AccessibilityRole webcoreRole;
&gt;      };

This change does not make sense. In a struct, everything is public by default and this should have no effect. I have no idea why gcc is warning about this, but I do not think this is the fix.

&gt; Index: WebCore/page/AccessibilityTable.cpp
&gt; ===================================================================
&gt; --- WebCore/page/AccessibilityTable.cpp	(revision 43716)
&gt; +++ WebCore/page/AccessibilityTable.cpp	(working copy)
&gt; @@ -350,7 +350,7 @@ void AccessibilityTable::cells(Accessibi
&gt;      }
&gt;  }
&gt;      
&gt; -const unsigned AccessibilityTable::columnCount()
&gt; +unsigned AccessibilityTable::columnCount()
&gt;  {
&gt;      if (!hasChildren())
&gt;          addChildren();
&gt; @@ -358,7 +358,7 @@ const unsigned AccessibilityTable::colum
&gt;      return m_columns.size();    
&gt;  }
&gt;      
&gt; -const unsigned AccessibilityTable::rowCount()
&gt; +unsigned AccessibilityTable::rowCount()
&gt;  {
&gt;      if (!hasChildren())
&gt;          addChildren();
&gt; Index: WebCore/page/AccessibilityTable.h
&gt; ===================================================================
&gt; --- WebCore/page/AccessibilityTable.h	(revision 43716)
&gt; +++ WebCore/page/AccessibilityTable.h	(working copy)
&gt; @@ -63,8 +63,8 @@ public:
&gt;      AccessibilityChildrenVector&amp; columns();
&gt;      AccessibilityChildrenVector&amp; rows();
&gt;      
&gt; -    const unsigned columnCount();
&gt; -    const unsigned rowCount();
&gt; +    unsigned columnCount();
&gt; +    unsigned rowCount();
&gt;      
&gt;      virtual String title() const;

These changes are good.

I&apos;m saying r=me, but don&apos;t land that &quot;public:&quot; change -- it should have no effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121676</commentid>
    <comment_count>9</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2009-05-16 23:17:24 -0700</bug_when>
    <thetext>alright, i won&apos;t make the struct change, which makes no sense (as does the warning). someone who compiles gtk can fix that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121687</commentid>
    <comment_count>10</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-05-17 09:49:45 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; alright, i won&apos;t make the struct change, which makes no sense (as does the
&gt; warning).

I think that warning indicates a bug in the new gcc. Someone should investigate more and report the bug to the gcc maintainers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121688</commentid>
    <comment_count>11</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-05-17 09:50:35 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/43810</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>30301</attachid>
            <date>2009-05-13 17:13:36 -0700</date>
            <delta_ts>2009-05-14 12:34:45 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1956</size>
            <attacher name="chris fleizach">cfleizach</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0MzY3MCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTYgQEAKKzIwMDktMDUtMTMgIENocmlzIEZsZWl6YWNoICA8Y2ZsZWl6YWNoQGFw
cGxlLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAg
ICBCdWcgMjU3Njk6IEZpeCBhY2Nlc3NpYmlsaXR5IHdhcm5pbmdzIG9uIEdUSworICAgICAgICBo
dHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjU3NjkKKworICAgICAgICAq
IHBhZ2UvQWNjZXNzaWJpbGl0eVJlbmRlck9iamVjdC5jcHA6CisgICAgICAgIChXZWJDb3JlOjpj
cmVhdGVBUklBUm9sZU1hcCk6CisgICAgICAgICogcGFnZS9BY2Nlc3NpYmlsaXR5VGFibGUuY3Bw
OgorICAgICAgICAoV2ViQ29yZTo6QWNjZXNzaWJpbGl0eVRhYmxlOjpjb2x1bW5Db3VudCk6Cisg
ICAgICAgIChXZWJDb3JlOjpBY2Nlc3NpYmlsaXR5VGFibGU6OnJvd0NvdW50KToKKwogMjAwOS0w
NS0xMy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IEFjY2Vzc2liaWxpdHlUYWJsZTo6Y29sdW0KICAgICBpZiAoIWhh
c0NoaWxkcmVuKCkpCiAgICAgICAgIGFkZENoaWxkcmVuKCk7CiAgICAgCi0gICAgcmV0dXJuIG1f
Y29sdW1ucy5zaXplKCk7ICAgIAorICAgIHJldHVybiAoY29uc3QgdW5zaWduZWQpbV9jb2x1bW5z
LnNpemUoKTsgICAgCiB9CiAgICAgCiBjb25zdCB1bnNpZ25lZCBBY2Nlc3NpYmlsaXR5VGFibGU6
OnJvd0NvdW50KCkKQEAgLTM2Myw3ICszNjMsNyBAQCBjb25zdCB1bnNpZ25lZCBBY2Nlc3NpYmls
aXR5VGFibGU6OnJvd0NvCiAgICAgaWYgKCFoYXNDaGlsZHJlbigpKQogICAgICAgICBhZGRDaGls
ZHJlbigpOwogICAgIAotICAgIHJldHVybiBtX3Jvd3Muc2l6ZSgpOworICAgIHJldHVybiAoY29u
c3QgdW5zaWduZWQpbV9yb3dzLnNpemUoKTsKIH0KICAgICAKIEFjY2Vzc2liaWxpdHlUYWJsZUNl
bGwqIEFjY2Vzc2liaWxpdHlUYWJsZTo6Y2VsbEZvckNvbHVtbkFuZFJvdyh1bnNpZ25lZCBjb2x1
bW4sIHVuc2lnbmVkIHJvdykK
</data>
<flag name="review"
          id="15249"
          type_id="1"
          status="-"
          setter="mrowe"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>30350</attachid>
            <date>2009-05-14 12:34:29 -0700</date>
            <delta_ts>2009-05-16 20:35:59 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>2407</size>
            <attacher name="chris fleizach">cfleizach</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmd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Y29sdW0KICAgICByZXR1cm4gbV9jb2x1bW5zLnNpemUoKTsgICAgCiB9CiAgICAgCi1jb25z
dCB1bnNpZ25lZCBBY2Nlc3NpYmlsaXR5VGFibGU6OnJvd0NvdW50KCkKK3Vuc2lnbmVkIEFjY2Vz
c2liaWxpdHlUYWJsZTo6cm93Q291bnQoKQogewogICAgIGlmICghaGFzQ2hpbGRyZW4oKSkKICAg
ICAgICAgYWRkQ2hpbGRyZW4oKTsKSW5kZXg6IFdlYkNvcmUvcGFnZS9BY2Nlc3NpYmlsaXR5VGFi
bGUuaAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09Ci0tLSBXZWJDb3JlL3BhZ2UvQWNjZXNzaWJpbGl0eVRhYmxlLmgJKHJl
dmlzaW9uIDQzNzE2KQorKysgV2ViQ29yZS9wYWdlL0FjY2Vzc2liaWxpdHlUYWJsZS5oCSh3b3Jr
aW5nIGNvcHkpCkBAIC02Myw4ICs2Myw4IEBAIHB1YmxpYzoKICAgICBBY2Nlc3NpYmlsaXR5Q2hp
bGRyZW5WZWN0b3ImIGNvbHVtbnMoKTsKICAgICBBY2Nlc3NpYmlsaXR5Q2hpbGRyZW5WZWN0b3Im
IHJvd3MoKTsKICAgICAKLSAgICBjb25zdCB1bnNpZ25lZCBjb2x1bW5Db3VudCgpOwotICAgIGNv
bnN0IHVuc2lnbmVkIHJvd0NvdW50KCk7CisgICAgdW5zaWduZWQgY29sdW1uQ291bnQoKTsKKyAg
ICB1bnNpZ25lZCByb3dDb3VudCgpOwogICAgIAogICAgIHZpcnR1YWwgU3RyaW5nIHRpdGxlKCkg
Y29uc3Q7CiAgICAgCg==
</data>
<flag name="review"
          id="15284"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>