<?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>128616</bug_id>
          
          <creation_ts>2014-02-11 12:27:56 -0800</creation_ts>
          <short_desc>position:-webkit-sticky is not preserved across a copy</short_desc>
          <delta_ts>2014-02-17 16:04:59 -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>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="Myles C. Maxfield">mmaxfield</reporter>
          <assigned_to name="Beth Dakin">bdakin</assigned_to>
          <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>979547</commentid>
    <comment_count>0</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2014-02-11 12:27:56 -0800</bug_when>
    <thetext>Right now we don&apos;t copy position:-webkit-sticky. This is because:
1. When copying styled elements, we parse the style properties again
2. CSSParserContext has a flag which can disable parsing -webkit-sticky
3. There are two constructors to CSSParserContext: one that takes a document and sets up the aforementioned flag, and a simple one that doesn&apos;t take a document and sets all the enableFoo flags to false
4. At the relevant place within copy code, we are far removed from the Document object, so we instead call the second constructor, thereby disabling parsing of -webkit-sticky</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>979550</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-02-11 12:31:21 -0800</bug_when>
    <thetext>&lt;rdar://problem/16039902&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>979551</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2014-02-11 12:32:19 -0800</bug_when>
    <thetext>CSSParser::parseValue(MutableStyleProperties* declaration, CSSPropertyID propertyID, const String&amp; string, bool important, CSSParserMode cssParserMode, StyleSheetContents* contextStyleSheet)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>979648</commentid>
    <comment_count>3</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2014-02-11 16:08:04 -0800</bug_when>
    <thetext>It would be a good idea to simply get rid of this runtime flag altogether.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>981698</commentid>
    <comment_count>4</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2014-02-17 16:04:59 -0800</bug_when>
    <thetext>The flag is gone. This is solved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>