WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
87505
Add a != operator to ViewportArguments
https://bugs.webkit.org/show_bug.cgi?id=87505
Summary
Add a != operator to ViewportArguments
Jacky Jiang
Reported
2012-05-25 08:20:37 PDT
As suggested on
bug 87438
, we should add a != operator to ViewportArguments. Hopefully this is right thing to do. Open for discussions in case there are different ideas.
Attachments
Patch
(4.79 KB, patch)
2012-06-20 12:58 PDT
,
Jacky Jiang
no flags
Details
Formatted Diff
Diff
Patch
(4.55 KB, patch)
2012-06-20 13:27 PDT
,
Jacky Jiang
tonikitoo
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Kenneth Rohde Christiansen
Comment 1
2012-05-26 01:38:57 PDT
You should explain better why that it needed. I actually believe that we used to have that.
Antonio Gomes
Comment 2
2012-05-26 04:20:46 PDT
I think it is only about convenience. in blackberry/ we have 3 or 4 cases of if (!(m_viewportArgument == DefaultViewportArguments)) { ... }
Antonio Gomes
Comment 3
2012-06-17 19:15:58 PDT
Any update here? Looks straightforward and useful...
Jacky Jiang
Comment 4
2012-06-17 20:21:46 PDT
(In reply to
comment #3
)
> Any update here? Looks straightforward and useful...
I will update this. Assign to myself.
Jacky Jiang
Comment 5
2012-06-20 12:58:13 PDT
Created
attachment 148632
[details]
Patch
Konrad Piascik
Comment 6
2012-06-20 13:04:37 PDT
Comment on
attachment 148632
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=148632&action=review
> Source/WebCore/dom/ViewportArguments.h:111 > + bool operator!=(const ViewportArguments& other) const
You don't want this duplicated code. What you should do is this: return !(this == other);
Jacky Jiang
Comment 7
2012-06-20 13:09:00 PDT
Comment on
attachment 148632
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=148632&action=review
>> Source/WebCore/dom/ViewportArguments.h:111 >> + bool operator!=(const ViewportArguments& other) const > > You don't want this duplicated code. What you should do is this: > return !(this == other);
Thanks, should be this !(*this == other) if we don't want duplicate this code I think.
Jacky Jiang
Comment 8
2012-06-20 13:27:34 PDT
Created
attachment 148644
[details]
Patch
Jacky Jiang
Comment 9
2012-06-20 16:02:46 PDT
Comment on
attachment 148644
[details]
Patch Committed
r120874
: <
http://trac.webkit.org/changeset/120874
>
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