Bug 114081

Summary: Remove remaining PLATFORM(CHROMIUM)-guarded code in WebCore
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Zan Dobersek <zan>
Status: RESOLVED FIXED    
Severity: Normal CC: alecflett, benjamin, buildbot, dgrogan, dino, eric.carlson, esprehn+autocc, japhet, jer.noble, jsbell, junov, mifenton, noam, ojan.autocc, philn, rniwa, senorblanco, simon.fraser, tkent, webkit-ews, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 114126    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description Zan Dobersek 2013-04-06 00:34:32 PDT
Remove remaining PLATFORM(CHROMIUM)-guarded code in WebCore
Comment 1 Zan Dobersek 2013-04-06 00:55:34 PDT
Created attachment 196719 [details]
Patch
Comment 2 EFL EWS Bot 2013-04-06 01:09:03 PDT
Comment on attachment 196719 [details]
Patch

Attachment 196719 [details] did not pass efl-ews (efl):
Output: http://webkit-commit-queue.appspot.com/results/17528345
Comment 3 Early Warning System Bot 2013-04-06 01:10:19 PDT
Comment on attachment 196719 [details]
Patch

Attachment 196719 [details] did not pass qt-ews (qt):
Output: http://webkit-commit-queue.appspot.com/results/17523337
Comment 4 Early Warning System Bot 2013-04-06 01:10:46 PDT
Comment on attachment 196719 [details]
Patch

Attachment 196719 [details] did not pass qt-wk2-ews (qt):
Output: http://webkit-commit-queue.appspot.com/results/17527343
Comment 5 Build Bot 2013-04-06 01:40:35 PDT
Comment on attachment 196719 [details]
Patch

Attachment 196719 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-commit-queue.appspot.com/results/17442449
Comment 6 Build Bot 2013-04-06 01:48:49 PDT
Comment on attachment 196719 [details]
Patch

Attachment 196719 [details] did not pass mac-ews (mac):
Output: http://webkit-commit-queue.appspot.com/results/17524355
Comment 7 Zan Dobersek 2013-04-06 02:06:36 PDT
Created attachment 196726 [details]
Patch
Comment 8 Ryosuke Niwa 2013-04-06 02:07:10 PDT
Comment on attachment 196719 [details]
Patch

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

> Source/WebCore/platform/SecureTextInput.cpp:33
>  void enableSecureTextInput()

I think we should just get rid of these functions.

> Source/WebCore/platform/graphics/FloatPoint.h:158
> +#if PLATFORM(MA) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)

Typo: MA.

> Source/WebCore/platform/graphics/GlyphBuffer.h:42
> +#if OS(DARWIN) && (PLATFORM(WX)

Typo: Unmatched (

> Source/WebCore/platform/leveldb/LevelDBDatabase.cpp:140
>  static void histogramFreeSpace(const char* type, String fileName)

We should probably get rid of this function altogether.
Comment 9 Early Warning System Bot 2013-04-06 02:25:49 PDT
Comment on attachment 196726 [details]
Patch

Attachment 196726 [details] did not pass qt-ews (qt):
Output: http://webkit-commit-queue.appspot.com/results/17446367
Comment 10 Early Warning System Bot 2013-04-06 02:29:59 PDT
Comment on attachment 196726 [details]
Patch

Attachment 196726 [details] did not pass qt-wk2-ews (qt):
Output: http://webkit-commit-queue.appspot.com/results/17472427
Comment 11 EFL EWS Bot 2013-04-06 03:04:52 PDT
Comment on attachment 196726 [details]
Patch

Attachment 196726 [details] did not pass efl-ews (efl):
Output: http://webkit-commit-queue.appspot.com/results/17486474
Comment 12 Build Bot 2013-04-06 03:08:42 PDT
Comment on attachment 196726 [details]
Patch

Attachment 196726 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-commit-queue.appspot.com/results/17420531
Comment 13 Build Bot 2013-04-06 03:27:58 PDT
Comment on attachment 196726 [details]
Patch

Attachment 196726 [details] did not pass mac-ews (mac):
Output: http://webkit-commit-queue.appspot.com/results/17509022
Comment 14 Zan Dobersek 2013-04-06 09:17:13 PDT
Comment on attachment 196719 [details]
Patch

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

>> Source/WebCore/platform/SecureTextInput.cpp:33
>>  void enableSecureTextInput()
> 
> I think we should just get rid of these functions.

These are called in FrameSelection::setUseSecureKeyboardEntry[1]. Should I remove all the code paths that lead to that method as well? I'd be more comfortable doing that in a separate patch, though.

[1] http://trac.webkit.org/browser/trunk/Source/WebCore/editing/FrameSelection.cpp#L1730
Comment 15 Ryosuke Niwa 2013-04-06 18:23:03 PDT
(In reply to comment #14)
> (From update of attachment 196719 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=196719&action=review
> 
> >> Source/WebCore/platform/SecureTextInput.cpp:33
> >>  void enableSecureTextInput()
> > 
> > I think we should just get rid of these functions.
> 
> These are called in FrameSelection::setUseSecureKeyboardEntry[1]. Should I remove all the code paths that lead to that method as well? I'd be more comfortable doing that in a separate patch, though.

Can we add a FIXME or something?  Or maybe leave that PLATFORM(CHROMIUm) alone and delete in a follow up patch. I'm concerned that we'll forget about them and never get to clean them up.
Comment 16 Zan Dobersek 2013-04-07 12:32:04 PDT
Created attachment 196800 [details]
Patch
Comment 17 Build Bot 2013-04-07 13:29:08 PDT
Comment on attachment 196800 [details]
Patch

Attachment 196800 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-commit-queue.appspot.com/results/17486864
Comment 18 Zan Dobersek 2013-04-07 13:39:31 PDT
Created attachment 196812 [details]
Patch
Comment 19 Benjamin Poulain 2013-04-07 14:11:31 PDT
Comment on attachment 196812 [details]
Patch

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

Brilliant!

> Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp:181
> +#if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(BLACKBERRY) || PLATFORM(WIN)

I wonder if that should be a
    #if !PLATFORM(QT)

(in a separate patch).

> Source/WebCore/platform/leveldb/LevelDBDatabase.cpp:38
>  #include "Logging.h"
> +#include "NotImplemented.h"
>  #include <helpers/memenv/memenv.h>

??
Comment 20 Benjamin Poulain 2013-04-07 17:51:03 PDT
Comment on attachment 196812 [details]
Patch

Clearing flags on attachment: 196812

Committed r147888: <http://trac.webkit.org/changeset/147888>
Comment 21 Benjamin Poulain 2013-04-07 17:51:09 PDT
All reviewed patches have been landed.  Closing bug.