Bug 128616
| Summary: | position:-webkit-sticky is not preserved across a copy | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> |
| Component: | CSS | Assignee: | Beth Dakin <bdakin> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | rniwa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Myles C. Maxfield
Right now we don'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'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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/16039902>
Myles C. Maxfield
CSSParser::parseValue(MutableStyleProperties* declaration, CSSPropertyID propertyID, const String& string, bool important, CSSParserMode cssParserMode, StyleSheetContents* contextStyleSheet)
Myles C. Maxfield
It would be a good idea to simply get rid of this runtime flag altogether.
Myles C. Maxfield
The flag is gone. This is solved.