WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
56871
Clean up: Rename HTMLFrameSetElement::{noresize, frameborder, and frameBorderSet} to conform to the WebKit Code style guidelines
https://bugs.webkit.org/show_bug.cgi?id=56871
Summary
Clean up: Rename HTMLFrameSetElement::{noresize, frameborder, and frameBorder...
Daniel Bates
Reported
2011-03-22 15:35:27 PDT
We should prefix the instance variables HTMLFrameSetElement::{noresize, frameborder, and frameBorderSet} with "m_" to conform to the WebKit Code style guidelines.
Attachments
Patch
(4.82 KB, patch)
2011-03-22 15:39 PDT
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2011-03-22 15:39:30 PDT
Created
attachment 86525
[details]
Patch Renamed HTMLFrameSetElement::frameBorderSet to HTMLFrameSetElement::m_frameborderSet since frameborder to match the name of the HTML attribute that corresponds to this instance variable.
Daniel Bates
Comment 2
2011-03-23 10:58:57 PDT
Committed
r81787
: <
http://trac.webkit.org/changeset/81787
>
Darin Adler
Comment 3
2011-03-23 11:00:01 PDT
Nice to add an m and underscore but also would be great to give these better names.
Daniel Bates
Comment 4
2011-03-23 11:26:46 PDT
(In reply to
comment #3
)
> Nice to add an m and underscore but also would be great to give these better names.
I agree. I was not very satisfied with these names or the names, but I couldn't think of any better names at the time. I am open to suggestions. Let me know if you would like me to roll out changeset 81787 <
http://trac.webkit.org/changeset/81787
> and/or feel free to roll it out. For frameBorderSet, I was originally thinking m_hasFrameborderSet, m_isFrameborderSet, or m_wasFrameborderAttributeSpecified. Similarly, I thought to rename frameborder to m_hasFrameBorder to be consistent with the getter of the same name. Note, I am also unhappy about the names of the existing instance variables m_borderSet, m_border, or m_borderColorSet. We should come up with some convention so that we can rename m_borderSet, m_border, m_borderColorSet, m_frameborder, m_frameborderSet, and m_noresize. At the time I wrote this patch, I chose to defer more descriptive renames and make frameborder, frameBorderSet, and noresize more consistent to the names of the existing instance variables m_border, m_borderSet because I was unsure of the naming convention I would use for renaming m_borderSet, m_border, and m_borderColorSet and was worried that committing subsequent patches that would change the convention would be noisy.
Daniel Bates
Comment 5
2011-03-23 11:28:28 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > Nice to add an m and underscore but also would be great to give these better names. > > I agree. I was not very satisfied with these names or the names, but I couldn't think of any better names
This should read: I agree. I was not very satisfied with these names, but I couldn't think of a better naming convention at the time.
Daniel Bates
Comment 6
2011-04-07 12:43:12 PDT
Comment on
attachment 86525
[details]
Patch Clearing review flag and marking as obsolete so as to remove this patch from the commit queue. We should still think about a better naming convention for these variables.
Anne van Kesteren
Comment 7
2023-12-28 08:26:40 PST
These seem okay as-is, especially given it's a legacy element. Might as well name the members in a way that matches the specification.
Radar WebKit Bug Importer
Comment 8
2023-12-28 08:27:14 PST
<
rdar://problem/120248244
>
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