<?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>174469</bug_id>
          
          <creation_ts>2017-07-13 11:22:21 -0700</creation_ts>
          <short_desc>-Wimplicit-fallthrough warning in ComputedStyleExtractor::propertyValue</short_desc>
          <delta_ts>2017-08-07 15:01:31 -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>CSS</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>174463</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>achristensen</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>koivisto</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1328515</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-07-13 11:22:21 -0700</bug_when>
    <thetext>This new warning from GCC 7 has found a problem in ComputedStyleExtractor::propertyValue:

[2701/5861] Building CXX object Source.../css/CSSComputedStyleDeclaration.cpp.o
../../Source/WebCore/css/CSSComputedStyleDeclaration.cpp: In member function ‘WTF::RefPtr&lt;WebCore::CSSValue&gt; WebCore::ComputedStyleExtractor::propertyValue(WebCore::CSSPropertyID, WebCore::EUpdateLayout)’:
../../Source/WebCore/css/CSSComputedStyleDeclaration.cpp:3344:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
             }
             ^
../../Source/WebCore/css/CSSComputedStyleDeclaration.cpp:3345:9: note: here
         case CSSPropertyTextIndent: {
         ^~~~

Looking at the code, the fallthrough there appears to almost surely be undesired. But I have no clue how to fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1328710</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-07-14 01:19:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/33311638&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336009</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-08-07 10:15:45 -0700</bug_when>
    <thetext>Anyone know how to fix this one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336028</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-08-07 10:44:59 -0700</bug_when>
    <thetext>I don&apos;t think this is harmful. The switch in the previous block returns under every condition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336083</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-08-07 12:25:52 -0700</bug_when>
    <thetext>Um, so it does. I&apos;m surprised I missed that. Let&apos;s just silence the warning, then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336084</commentid>
    <comment_count>5</comment_count>
      <attachid>317452</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-08-07 12:28:14 -0700</bug_when>
    <thetext>Created attachment 317452
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336102</commentid>
    <comment_count>6</comment_count>
      <attachid>317452</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-08-07 13:20:32 -0700</bug_when>
    <thetext>Comment on attachment 317452
Patch

Or maybe just return nullptr?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336130</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-08-07 14:26:21 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #6)
&gt; Comment on attachment 317452 [details]
&gt; Patch
&gt; 
&gt; Or maybe just return nullptr?

I assume that if we don&apos;t want that code to ever be hit, an assert is most appropriate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336139</commentid>
    <comment_count>8</comment_count>
      <attachid>317452</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-08-07 14:31:56 -0700</bug_when>
    <thetext>Comment on attachment 317452
Patch

Sure, i guess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336157</commentid>
    <comment_count>9</comment_count>
      <attachid>317452</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-07 15:01:29 -0700</bug_when>
    <thetext>Comment on attachment 317452
Patch

Clearing flags on attachment: 317452

Committed r220354: &lt;http://trac.webkit.org/changeset/220354&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336159</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-07 15:01:31 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>317452</attachid>
            <date>2017-08-07 12:28:14 -0700</date>
            <delta_ts>2017-08-07 15:01:29 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-174469-20170807142813.patch</filename>
            <type>text/plain</type>
            <size>1641</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjIwMzQ2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMGVkMmIzMjQ3MTA0MjAy
ZTM4ZDM2YWIyY2ZjZmExZmMyMDJjYTk2Ni4uZWQyNmE2ZTQxMTllNTM1MWIxMDZhMDJkNWUwZjUz
OTRmZDgyMWJkYiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2IEBACisyMDE3LTA4LTA3ICBNaWNo
YWVsIENhdGFuemFybyAgPG1jYXRhbnphcm9AaWdhbGlhLmNvbT4KKworICAgICAgICAtV2ltcGxp
Y2l0LWZhbGx0aHJvdWdoIHdhcm5pbmcgaW4gQ29tcHV0ZWRTdHlsZUV4dHJhY3Rvcjo6cHJvcGVy
dHlWYWx1ZQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9
MTc0NDY5CisgICAgICAgIDxyZGFyOi8vcHJvYmxlbS8zMzMxMTYzOD4KKworICAgICAgICBSZXZp
ZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBBZGQgYSBSRUxFQVNFX0FTU0VSVF9O
T1RfUkVBQ0hFRCB0byBzaWxlbmNlIHRoaXMgd2FybmluZy4KKworICAgICAgICAqIGNzcy9DU1ND
b21wdXRlZFN0eWxlRGVjbGFyYXRpb24uY3BwOgorICAgICAgICAoV2ViQ29yZTo6Q29tcHV0ZWRT
dHlsZUV4dHJhY3Rvcjo6cHJvcGVydHlWYWx1ZSk6CisKIDIwMTctMDgtMDcgIEJyYWR5IEVpZHNv
biAgPGJlaWRzb25A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