<?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>45488</bug_id>
          
          <creation_ts>2010-09-09 13:27:06 -0700</creation_ts>
          <short_desc>Use String::fromUTF8 instead of UTF8Encoding().decode in the libxml XMLDocumentParser</short_desc>
          <delta_ts>2010-11-20 09:40:28 -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>XML</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>43085</blocked>
    
    <blocked>49581</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick R. Gansterer">paroga</reporter>
          <assigned_to name="Patrick R. Gansterer">paroga</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>276703</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2010-09-09 13:27:06 -0700</bug_when>
    <thetext>see patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276710</commentid>
    <comment_count>1</comment_count>
      <attachid>67087</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2010-09-09 13:31:00 -0700</bug_when>
    <thetext>Created attachment 67087
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276763</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-09-09 14:24:22 -0700</bug_when>
    <thetext>Why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276771</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2010-09-09 14:36:46 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Why?
bug 43085
IMHO String::fromUTF8 avoids the TextEncoding overhead?

I also want to replace most of the toString calls with a new toAtomicString method. QualifiedName (used for elements and attributes) takes AtomicString as arguments. Creating AtomicString instead of String can avoid many memcpy operations IMHO.
If we implement a AtomicString::fromUTF8 which works directly with the utf8 data for hash and compare we can avoid many convertUTF8ToUTF16 operations too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276772</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-09-09 14:39:24 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; IMHO String::fromUTF8 avoids the TextEncoding overhead?

OK. Next time you can just say so in the code or change log, and save a round of questioning ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277289</commentid>
    <comment_count>5</comment_count>
      <attachid>67087</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-10 10:45:18 -0700</bug_when>
    <thetext>Comment on attachment 67087
Patch

Clearing flags on attachment: 67087

Committed r67214: &lt;http://trac.webkit.org/changeset/67214&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277290</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-10 10:45:23 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>311900</commentid>
    <comment_count>7</comment_count>
      <attachid>74475</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2010-11-20 01:22:07 -0800</bug_when>
    <thetext>Created attachment 74475
Patch #2

Missed the second toString in the first patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>311944</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-20 09:39:11 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 74475:

inspector/styles-source-offsets.html

Please file bugs against the tests.  These tests were authored by apavlov@chromium.org and pfeldman@chromium.org.  The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>311948</commentid>
    <comment_count>9</comment_count>
      <attachid>74475</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-20 09:40:23 -0800</bug_when>
    <thetext>Comment on attachment 74475
Patch #2

Clearing flags on attachment: 74475

Committed r72476: &lt;http://trac.webkit.org/changeset/72476&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>311949</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-20 09:40:28 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>67087</attachid>
            <date>2010-09-09 13:31:00 -0700</date>
            <delta_ts>2010-09-10 10:45:18 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>0001-XMLDocumentParserToString.patch</filename>
            <type>text/plain</type>
            <size>1541</size>
            <attacher name="Patrick R. Gansterer">paroga</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ZjMyZmIzOC4uNmJjMTY2OCAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNCBAQAorMjAxMC0wOS0wOSAgUGF0cmljayBHY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pbmcoY29uc3QgeG1sQ2hhciogc3RyaW5nLCBzaXplX3Qgc2l6ZSkKIHsKLSAgICByZXR1
cm4gVVRGOEVuY29kaW5nKCkuZGVjb2RlKHJlaW50ZXJwcmV0X2Nhc3Q8Y29uc3QgY2hhcio+KHN0
ciksIGxlbik7CisgICAgcmV0dXJuIFN0cmluZzo6ZnJvbVVURjgocmVpbnRlcnByZXRfY2FzdDxj
b25zdCBjaGFyKj4oc3RyaW5nKSwgc2l6ZSk7CiB9CiAKLXN0YXRpYyBpbmxpbmUgU3RyaW5nIHRv
U3RyaW5nKGNvbnN0IHhtbENoYXIqIHN0cikKK3N0YXRpYyBpbmxpbmUgU3RyaW5nIHRvU3RyaW5n
KGNvbnN0IHhtbENoYXIqIHN0cmluZykKIHsKLSAgICBpZiAoIXN0cikKLSAgICAgICAgcmV0dXJu
IFN0cmluZygpOwotCi0gICAgcmV0dXJuIFVURjhFbmNvZGluZygpLmRlY29kZShyZWludGVycHJl
dF9jYXN0PGNvbnN0IGNoYXIqPihzdHIpLCBzdHJsZW4ocmVpbnRlcnByZXRfY2FzdDxjb25zdCBj
aGFyKj4oc3RyKSkpOworICAgIHJldHVybiBTdHJpbmc6OmZyb21VVEY4KHJlaW50ZXJwcmV0X2Nh
c3Q8Y29uc3QgY2hhcio+KHN0cmluZykpOwogfQogCiBzdHJ1Y3QgX3htbFNBWDJOYW1lc3BhY2Ug
ewo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>74475</attachid>
            <date>2010-11-20 01:22:07 -0800</date>
            <delta_ts>2010-11-20 09:40:23 -0800</delta_ts>
            <desc>Patch #2</desc>
            <filename>bug-45488b.patch</filename>
            <type>text/plain</type>
            <size>1150</size>
            <attacher name="Patrick R. Gansterer">paroga</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
NDg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