<?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>115442</bug_id>
          
          <creation_ts>2013-04-30 12:25:46 -0700</creation_ts>
          <short_desc>Page::pageCount() is inaccurate when we allow the first paint in App Mode</short_desc>
          <delta_ts>2013-04-30 12:53:42 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Beth Dakin">bdakin</reporter>
          <assigned_to name="Beth Dakin">bdakin</assigned_to>
          <cc>bdakin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>hyatt</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>883204</commentid>
    <comment_count>0</comment_count>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2013-04-30 12:25:46 -0700</bug_when>
    <thetext>Page::pageCount() is inaccurate when we allow the first paint in App Mode, which happens when Document::setVisualUpdatesAllowed(true) is called. It should be accurate.

After layout is updated, the page count should be accurate, but it is not for paginated content that contains images because auto-height images are given a layout height of 0 after the first pass. They require a second pass to get the right height. They shouldn&apos;t.

&lt;rdar://problem/13758445&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>883207</commentid>
    <comment_count>1</comment_count>
      <attachid>200141</attachid>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2013-04-30 12:30:36 -0700</bug_when>
    <thetext>Created attachment 200141
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>883210</commentid>
    <comment_count>2</comment_count>
      <attachid>200141</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2013-04-30 12:52:23 -0700</bug_when>
    <thetext>Comment on attachment 200141
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>883211</commentid>
    <comment_count>3</comment_count>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2013-04-30 12:53:42 -0700</bug_when>
    <thetext>Thanks, Dave! http://trac.webkit.org/changeset/149393</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>200141</attachid>
            <date>2013-04-30 12:30:36 -0700</date>
            <delta_ts>2013-04-30 12:52:23 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>for-review.txt</filename>
            <type>text/plain</type>
            <size>1617</size>
            <attacher name="Beth Dakin">bdakin</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE0OTM5MCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDEzLTA0LTMwICBCZXRoIERh
a2luICA8YmRha2luQGFwcGxlLmNvbT4KKworICAgICAgICBQYWdlOjpwYWdlQ291bnQoKSBpcyBp
bmFjY3VyYXRlIHdoZW4gd2UgYWxsb3cgdGhlIGZpcnN0IHBhaW50IGluIEFwcCBNb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gwKTsKICAgICAgICAgfQotICAgICAgICBpZiAoY29sSW5mby0+Y29sdW1uSGVp
Z2h0KCkgIT0gcGFnZUxvZ2ljYWxIZWlnaHQgJiYgZXZlckhhZExheW91dCgpKSB7Ci0gICAgICAg
ICAgICBjb2xJbmZvLT5zZXRDb2x1bW5IZWlnaHQocGFnZUxvZ2ljYWxIZWlnaHQpOworCisgICAg
ICAgIGlmIChjb2xJbmZvLT5jb2x1bW5IZWlnaHQoKSAhPSBwYWdlTG9naWNhbEhlaWdodCAmJiBl
dmVySGFkTGF5b3V0KCkpCiAgICAgICAgICAgICBwYWdlTG9naWNhbEhlaWdodENoYW5nZWQgPSB0
cnVlOwotICAgICAgICB9CisKKyAgICAgICAgY29sSW5mby0+c2V0Q29sdW1uSGVpZ2h0KHBhZ2VM
b2dpY2FsSGVpZ2h0KTsKICAgICAgICAgCiAgICAgICAgIGlmICghaGFzU3BlY2lmaWVkUGFnZUxv
Z2ljYWxIZWlnaHQgJiYgIXBhZ2VMb2dpY2FsSGVpZ2h0KQogICAgICAgICAgICAgY29sSW5mby0+
Y2xlYXJGb3JjZWRCcmVha3MoKTsK
</data>
<flag name="review"
          id="221658"
          type_id="1"
          status="+"
          setter="hyatt"
    />
          </attachment>
      

    </bug>

</bugzilla>