WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
128982
Convert position:sticky to position:static upon copy and paste
https://bugs.webkit.org/show_bug.cgi?id=128982
Summary
Convert position:sticky to position:static upon copy and paste
Myles C. Maxfield
Reported
2014-02-18 11:09:57 PST
Convert position:sticky to position:static upon copy and paste
Attachments
Patch
(18.00 KB, patch)
2014-02-18 11:11 PST
,
Myles C. Maxfield
simon.fraser
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2014-02-18 11:11:58 PST
Created
attachment 224524
[details]
Patch
Simon Fraser (smfr)
Comment 2
2014-02-18 11:23:41 PST
Comment on
attachment 224524
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=224524&action=review
> Source/WebCore/editing/EditingStyle.cpp:1231 > RefPtr<CSSPrimitiveValue> fixed = cssValuePool().createIdentifierValue(CSSValueFixed); > + RefPtr<CSSPrimitiveValue> absolute = cssValuePool().createIdentifierValue(CSSValueAbsolute);
You should declare these before first use, to avoid making them in the early return cases.
Myles C. Maxfield
Comment 3
2014-02-18 11:25:39 PST
Comment on
attachment 224524
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=224524&action=review
>> Source/WebCore/editing/EditingStyle.cpp:1231 >> + RefPtr<CSSPrimitiveValue> absolute = cssValuePool().createIdentifierValue(CSSValueAbsolute); > > You should declare these before first use, to avoid making them in the early return cases.
Done.
Dean Jackson
Comment 4
2014-02-18 11:28:12 PST
Comment on
attachment 224524
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=224524&action=review
> Source/WebCore/ChangeLog:12 > + 2. Now that we copy position:sticky, convert that to position:fixed
You say this here....
> Source/WebCore/editing/EditingStyle.cpp:1233 > + if (m_mutableStyle->propertyMatches(CSSPropertyPosition, sticky.get())) { > + m_mutableStyle->setProperty(CSSPropertyPosition, cssValuePool().createIdentifierValue(CSSValueStatic), m_mutableStyle->propertyIsImportant(CSSPropertyPosition));
... but then change it to position:static.
> Source/WebCore/editing/EditingStyle.cpp:1241 > + if (m_mutableStyle->propertyMatches(CSSPropertyPosition, absolute.get())) > + return true;
Should the name of the method change now?
Myles C. Maxfield
Comment 5
2014-02-18 12:08:45 PST
http://trac.webkit.org/changeset/164299
http://trac.webkit.org/changeset/164303
Radar WebKit Bug Importer
Comment 6
2014-02-24 18:42:01 PST
<
rdar://problem/16156147
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug