<?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>49957</bug_id>
          
          <creation_ts>2010-11-22 20:34:40 -0800</creation_ts>
          <short_desc>[Qt] screenIsMonochrome() is broken</short_desc>
          <delta_ts>2010-12-15 13:00:37 -0800</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>528+ (Nightly build)</version>
          <rep_platform>All</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>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Kling">kling</reporter>
          <assigned_to name="Renata Hodovan">rhodovan.u-szeged</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>312682</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-11-22 20:34:40 -0800</bug_when>
    <thetext>Our current implementation of screenIsMonochrome() checks if a QWidget&apos;s QPaintDevice::numColors() is &lt; 2.
This is incorrect, for a monochrome device it will be == 2, since you get the number of possible colors, not the number of bits per color value.
Also, QPaintDevice::numColors() has been deprecated by QPaintDevice::colorCount()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322639</commentid>
    <comment_count>1</comment_count>
      <attachid>76655</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-12-15 09:46:50 -0800</bug_when>
    <thetext>Created attachment 76655
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322730</commentid>
    <comment_count>2</comment_count>
      <attachid>76655</attachid>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-12-15 12:00:58 -0800</bug_when>
    <thetext>Comment on attachment 76655
Proposed patch

numcolor is deprecated ok, but why == instead of &lt;? :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322769</commentid>
    <comment_count>3</comment_count>
      <attachid>76655</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-15 13:00:32 -0800</bug_when>
    <thetext>Comment on attachment 76655
Proposed patch

Clearing flags on attachment: 76655

Committed r74137: &lt;http://trac.webkit.org/changeset/74137&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322770</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-15 13:00:37 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>76655</attachid>
            <date>2010-12-15 09:46:50 -0800</date>
            <delta_ts>2010-12-15 13:00:32 -0800</delta_ts>
            <desc>Proposed patch</desc>
            <filename>bug-49957.diff</filename>
            <type>text/plain</type>
            <size>1037</size>
            <attacher name="Andreas Kling">kling</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
YzBkYjcxNS4uYTUzNTRmOCAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0xMi0xNSAgQW5kcmVhcyBLbGlu
ZyAgPGFuZHJlYXMua2xpbmdAbm9raWEuY29tPgorCisgICAg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