[webkit-changes] cvs commit: WebCore/khtml/xsl xslt_processorimpl.cpp

Eric eseidel at opensource.apple.com
Sun Oct 2 23:02:35 PDT 2005


eseidel     05/10/02 23:02:35

  Modified:    .        ChangeLog
               khtml/xsl xslt_processorimpl.cpp
  Log:
  Bug #: 5219
  Submitted by: Alexey Proskuryakov  <ap at nypop.com>
  Reviewed by: eseidel
          Fix XSLT to preserve document.URL.
          http://bugzilla.opendarwin.org/show_bug.cgi?id=5219
  
          * khtml/xsl/xslt_processorimpl.cpp:
          (DOM::XSLTProcessorImpl::documentFromXMLDocPtr):
  
  Revision  Changes    Path
  1.183     +10 -0     WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.182
  retrieving revision 1.183
  diff -u -r1.182 -r1.183
  --- ChangeLog	3 Oct 2005 05:21:53 -0000	1.182
  +++ ChangeLog	3 Oct 2005 06:02:32 -0000	1.183
  @@ -1,3 +1,13 @@
  +2005-10-02  Alexey Proskuryakov  <ap at nypop.com>
  +
  +        Reviewed by eseidel.
  +
  +        Fix XSLT to preserve document.URL.
  +        http://bugzilla.opendarwin.org/show_bug.cgi?id=5219
  +
  +        * khtml/xsl/xslt_processorimpl.cpp:
  +        (DOM::XSLTProcessorImpl::documentFromXMLDocPtr):
  +
   2005-10-02  Eric Seidel  <eseidel at apple.com>
   
           Reviewed by mjs.
  
  
  
  1.11      +2 -2      WebCore/khtml/xsl/xslt_processorimpl.cpp
  
  Index: xslt_processorimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xsl/xslt_processorimpl.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- xslt_processorimpl.cpp	24 Sep 2005 10:07:08 -0000	1.10
  +++ xslt_processorimpl.cpp	3 Oct 2005 06:02:35 -0000	1.11
  @@ -176,8 +176,6 @@
           else
               result = m_sourceDocument->impl()->createDocument(view);
           result->attach();
  -        result->setURL(m_sourceDocument->URL());
  -        result->setBaseURL(m_sourceDocument->baseURL());
           result->docLoader()->setShowAnimations(m_sourceDocument->docLoader()->showAnimations());
           result->setTransformSourceDocument(m_sourceDocument);
   
  @@ -203,6 +201,8 @@
           }
           
           result->open();
  +        result->setURL(m_sourceDocument->URL());
  +        result->setBaseURL(m_sourceDocument->baseURL());
           result->determineParseMode(m_resultOutput); // Make sure we parse in the correct mode.
           result->write(m_resultOutput);
           result->finishParsing();
  
  
  



More information about the webkit-changes mailing list