Bug 46710 - [Chromium] Linking error due to wrong guard in WebIDBTransaction.h
Summary: [Chromium] Linking error due to wrong guard in WebIDBTransaction.h
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-28 03:26 PDT by Andrei Popescu
Modified: 2010-09-28 08:24 PDT (History)
2 users (show)

See Also:


Attachments
Patch (1.39 KB, patch)
2010-09-28 03:32 PDT, Andrei Popescu
jorlow: review+
jorlow: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Popescu 2010-09-28 03:26:38 PDT
[Chromium] Linking error due to wrong guard in WebIDBTransaction.h
Comment 1 Andrei Popescu 2010-09-28 03:32:09 PDT
Created attachment 69034 [details]
Patch
Comment 2 Jeremy Orlow 2010-09-28 03:36:09 PDT
Comment on attachment 69034 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=69034&action=review

r=me

> WebKit/chromium/public/WebIDBTransaction.h:65
> +        // FIXME: this is never called in the renderer. Find a cleaner solution.

Comments that apply to the whole function really seem like they should go right above the function not in them.  Is there other precedent for something like this?  If not, can you please stop doing this?

Also, try not to make the comments Chromium architecture specific.  Maybe just say that this is only meant to be called from within WebCore?
Comment 3 Jeremy Orlow 2010-09-28 03:36:23 PDT
+fishd cause this is a webkit patch
Comment 4 Andrei Popescu 2010-09-28 03:40:34 PDT
(In reply to comment #2)
> (From update of attachment 69034 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=69034&action=review
> 
> r=me
> 
> > WebKit/chromium/public/WebIDBTransaction.h:65
> > +        // FIXME: this is never called in the renderer. Find a cleaner solution.
> 
> Comments that apply to the whole function really seem like they should go right above the function not in them.  Is there other precedent for something like this?  If not, can you please stop doing this?
> 

OK ok :)

> Also, try not to make the comments Chromium architecture specific.  Maybe just say that this is only meant to be called from within WebCore?

Erm, this bug has the [Chromium] label and the patch touches only a file in /WebKit/chromium so how can making a chromium-specific comment possibly be wrong?
Comment 5 Jeremy Orlow 2010-09-28 03:49:08 PDT
(In reply to comment #4)
> (In reply to comment #2)
> > (From update of attachment 69034 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=69034&action=review
> > 
> > r=me
> > 
> > > WebKit/chromium/public/WebIDBTransaction.h:65
> > > +        // FIXME: this is never called in the renderer. Find a cleaner solution.
> > 
> > Comments that apply to the whole function really seem like they should go right above the function not in them.  Is there other precedent for something like this?  If not, can you please stop doing this?
> > 
> 
> OK ok :)
> 
> > Also, try not to make the comments Chromium architecture specific.  Maybe just say that this is only meant to be called from within WebCore?
> 
> Erm, this bug has the [Chromium] label and the patch touches only a file in /WebKit/chromium so how can making a chromium-specific comment possibly be wrong?

WebKit code should not depend on Chromium code.  Even if this code is designed to be consumed by Chromium.

Plus Darin said so.  :-)
Comment 6 Andrei Popescu 2010-09-28 03:52:59 PDT
Committed r68504: <http://trac.webkit.org/changeset/68504>
Comment 7 Andrei Popescu 2010-09-28 03:54:34 PDT
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > (From update of attachment 69034 [details] [details] [details])
> > > View in context: https://bugs.webkit.org/attachment.cgi?id=69034&action=review
> > > 
> > > r=me
> > > 
> > > > WebKit/chromium/public/WebIDBTransaction.h:65
> > > > +        // FIXME: this is never called in the renderer. Find a cleaner solution.
> > > 
> > > Comments that apply to the whole function really seem like they should go right above the function not in them.  Is there other precedent for something like this?  If not, can you please stop doing this?
> > > 
> > 
> > OK ok :)
> > 
> > > Also, try not to make the comments Chromium architecture specific.  Maybe just say that this is only meant to be called from within WebCore?
> > 
> > Erm, this bug has the [Chromium] label and the patch touches only a file in /WebKit/chromium so how can making a chromium-specific comment possibly be wrong?
> 
> WebKit code should not depend on Chromium code.  Even if this code is designed to be consumed by Chromium.
>

Yes, that comment did depend on Chromium code...fair enough, changed.
Comment 8 Jeremy Orlow 2010-09-28 08:24:08 PDT
(In reply to comment #4)
> (In reply to comment #2)
> > (From update of attachment 69034 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=69034&action=review
> > 
> > r=me
> > 
> > > WebKit/chromium/public/WebIDBTransaction.h:65
> > > +        // FIXME: this is never called in the renderer. Find a cleaner solution.
> > 
> > Comments that apply to the whole function really seem like they should go right above the function not in them.  Is there other precedent for something like this?  If not, can you please stop doing this?
> > 
> 
> OK ok :)
> 
> > Also, try not to make the comments Chromium architecture specific.  Maybe just say that this is only meant to be called from within WebCore?
> 
> Erm, this bug has the [Chromium] label and the patch touches only a file in /WebKit/chromium so how can making a chromium-specific comment possibly be wrong?

WebKit code should not depend on Chromium code.  Even if this code is designed to be consumed by Chromium.

Plus Darin said so.  :-)
Comment 9 Jeremy Orlow 2010-09-28 08:24:28 PDT
(In reply to comment #8)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > (From update of attachment 69034 [details] [details] [details])
> > > View in context: https://bugs.webkit.org/attachment.cgi?id=69034&action=review
> > > 
> > > r=me
> > > 
> > > > WebKit/chromium/public/WebIDBTransaction.h:65
> > > > +        // FIXME: this is never called in the renderer. Find a cleaner solution.
> > > 
> > > Comments that apply to the whole function really seem like they should go right above the function not in them.  Is there other precedent for something like this?  If not, can you please stop doing this?
> > > 
> > 
> > OK ok :)
> > 
> > > Also, try not to make the comments Chromium architecture specific.  Maybe just say that this is only meant to be called from within WebCore?
> > 
> > Erm, this bug has the [Chromium] label and the patch touches only a file in /WebKit/chromium so how can making a chromium-specific comment possibly be wrong?
> 
> WebKit code should not depend on Chromium code.  Even if this code is designed to be consumed by Chromium.
> 
> Plus Darin said so.  :-)

Ugh...stupid bugzilla...sorry.