WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
179206
RenderObject::*positioned() naming cleanup
https://bugs.webkit.org/show_bug.cgi?id=179206
Summary
RenderObject::*positioned() naming cleanup
zalan
Reported
2017-11-02 15:50:37 PDT
+isFixedPositioned() +isAbsolutePositioned() isRelPositioned() -> isRelativePositioned()
Attachments
Patch
(29.42 KB, patch)
2017-11-02 15:55 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(31.95 KB, patch)
2017-11-03 09:38 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-11-02 15:51:03 PDT
<
rdar://problem/35325254
>
zalan
Comment 2
2017-11-02 15:55:14 PDT
Created
attachment 325788
[details]
Patch
Darin Adler
Comment 3
2017-11-03 07:42:30 PDT
Comment on
attachment 325788
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=325788&action=review
> Source/WebCore/rendering/RenderObject.h:421 > + bool isAbsolutePositioned() const { return isOutOfFlowPositioned() && style().position() == AbsolutePosition; }
The CSS specification calls this "is absolutely positioned", not "is absolute positioned", and I think the former is better grammar.
> Source/WebCore/rendering/RenderObject.h:422 > + bool isRelativePositioned() const { return m_bitfields.isRelativePositioned(); }
The CSS specification calls this "is relatively positioned", as opposed to "is relative positioned", and I think the former is better grammar.
> Source/WebCore/rendering/RenderObject.h:423 > bool isStickyPositioned() const { return m_bitfields.isStickyPositioned(); }
The CSS specification calls this "is stickily positioned", as opposed to "is sticky positioned", and I think the former is better grammar.
> Source/WebCore/rendering/RenderObject.h:859 > - IsStaticallyPositioned = 0, > - IsRelativelyPositioned = 1, > + IsStaticPositioned = 0, > + IsRelativePositioned = 1,
I think the old names here are better than the new ones, grammatically speaking.
zalan
Comment 4
2017-11-03 09:38:47 PDT
Created
attachment 325906
[details]
Patch
Simon Fraser (smfr)
Comment 5
2017-11-03 09:56:07 PDT
Comment on
attachment 325906
[details]
Patch isFixedPositioned vs isStickilyPositioned etc read awkwardly. Maybe it should be isPositionFixed(), isPositionRelative()?
WebKit Commit Bot
Comment 6
2017-11-03 09:59:34 PDT
Comment on
attachment 325906
[details]
Patch Clearing flags on attachment: 325906 Committed
r224404
: <
https://trac.webkit.org/changeset/224404
>
WebKit Commit Bot
Comment 7
2017-11-03 09:59:36 PDT
All reviewed patches have been landed. Closing bug.
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