WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
124837
Rename InlineIterator::m_obj and make it private
https://bugs.webkit.org/show_bug.cgi?id=124837
Summary
Rename InlineIterator::m_obj and make it private
Gyuyoung Kim
Reported
2013-11-25 04:32:07 PST
InlineIterator has been exported m_obj as public though there is a getter function. Fixed it. Additionally, setObject() is added as well.
Attachments
Patch
(39.31 KB, patch)
2013-11-25 04:33 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch
(44.51 KB, patch)
2013-11-26 22:35 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch
(44.51 KB, patch)
2013-11-28 14:28 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Gyuyoung Kim
Comment 1
2013-11-25 04:33:52 PST
Created
attachment 217790
[details]
Patch
Andreas Kling
Comment 2
2013-11-26 15:01:20 PST
Comment on
attachment 217790
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=217790&action=review
> Source/WebCore/rendering/InlineIterator.h:70 > RenderObject* object() const { return m_obj; } > + void setObject(RenderObject* object) { m_obj = object; }
I would call these renderer() and setRenderer().
> Source/WebCore/rendering/InlineIterator.h:96 > + RenderObject* m_obj;
And this would be "m_renderer"
Gyuyoung Kim
Comment 3
2013-11-26 22:35:37 PST
Created
attachment 217926
[details]
Patch
Gyuyoung Kim
Comment 4
2013-11-26 22:36:54 PST
(In reply to
comment #2
)
> (From update of
attachment 217790
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=217790&action=review
> > > Source/WebCore/rendering/InlineIterator.h:70 > > RenderObject* object() const { return m_obj; } > > + void setObject(RenderObject* object) { m_obj = object; } > > I would call these renderer() and setRenderer(). > > > Source/WebCore/rendering/InlineIterator.h:96 > > + RenderObject* m_obj; > > And this would be "m_renderer"
Seems good to me as well. Changed.
Gyuyoung Kim
Comment 5
2013-11-27 16:54:27 PST
Kling, could you take a look again ?
Antti Koivisto
Comment 6
2013-11-28 14:02:21 PST
Comment on
attachment 217926
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=217926&action=review
> Source/WebCore/ChangeLog:3 > + Set m_obj member variable as private
The title is not informative. Maybe something like "Rename InlineIterator::m_obj and make it private"
> Source/WebCore/rendering/InlineIterator.h:69 > + RenderObject* renderer() const { return m_renderer; }
It would be good to make this return a reference and ASSERT(m_renderer). Any valid null checks in client would be replaced with atEnd() tests. For future patch though.
Gyuyoung Kim
Comment 7
2013-11-28 14:27:48 PST
(In reply to
comment #6
)
> > Source/WebCore/rendering/InlineIterator.h:69 > > + RenderObject* renderer() const { return m_renderer; } > > It would be good to make this return a reference and ASSERT(m_renderer). Any valid null checks in client would be replaced with atEnd() tests. For future patch though.
Antti, I'd like to support this comment on new bug. I will file a bug for this. Thx.
Gyuyoung Kim
Comment 8
2013-11-28 14:28:47 PST
Created
attachment 218025
[details]
Patch
WebKit Commit Bot
Comment 9
2013-11-28 15:22:41 PST
Comment on
attachment 218025
[details]
Patch Clearing flags on attachment: 218025 Committed
r159860
: <
http://trac.webkit.org/changeset/159860
>
WebKit Commit Bot
Comment 10
2013-11-28 15:22:44 PST
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