Bug 95363 - [Chromium] Remove getRenderStyleForStrike from PlatformSupport
Summary: [Chromium] Remove getRenderStyleForStrike from PlatformSupport
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Pilgrim (Google)
URL:
Keywords:
Depends on:
Blocks: 82948
  Show dependency treegraph
 
Reported: 2012-08-29 11:54 PDT by Mark Pilgrim (Google)
Modified: 2012-09-05 12:03 PDT (History)
7 users (show)

See Also:


Attachments
Patch (19.91 KB, patch)
2012-08-29 11:55 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff
Patch (19.86 KB, patch)
2012-08-29 13:38 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Pilgrim (Google) 2012-08-29 11:54:27 PDT
[Chromium] Remove getRenderStyleForStrike from PlatformSupport
Comment 1 Mark Pilgrim (Google) 2012-08-29 11:55:16 PDT
Created attachment 161278 [details]
Patch
Comment 2 WebKit Review Bot 2012-08-29 11:56:57 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 WebKit Review Bot 2012-08-29 11:57:15 PDT
Attachment 161278 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/Platform/ChangeLog', u'Source/Platf..." exit_code: 1
Source/WebCore/platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp:49:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Mark Pilgrim (Google) 2012-08-29 12:23:23 PDT
I fixed a bunch of existing style bugs as I was moving files around, but I actually don't know how to fix this last one.
Comment 5 Adam Barth 2012-08-29 12:30:50 PDT
Comment on attachment 161278 [details]
Patch

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

> Source/WebCore/platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp:321
> -    PlatformSupport::getRenderStyleForStrike(m_family.data(), (((int)m_textSize) << 2) | (m_typeface->style() & 3), &m_style);
> +    getRenderStyleForStrike(m_family.data(), (((int)m_textSize) << 2) | (m_typeface->style() & 3), &m_style);

Now that this is a member function, we don't need to pass m_style as an argument.  We can just access it from inside the function.
Comment 6 Adam Barth 2012-08-29 12:31:17 PDT
(In reply to comment #4)
> I fixed a bunch of existing style bugs as I was moving files around, but I actually don't know how to fix this last one.

Thanks for fixing most of them.  This is definitely a style improvement.  We can worry about this last warning another time.
Comment 7 Mark Pilgrim (Google) 2012-08-29 13:38:56 PDT
Created attachment 161301 [details]
Patch
Comment 8 Mark Pilgrim (Google) 2012-08-29 13:39:22 PDT
Comment on attachment 161301 [details]
Patch

Nits addressed.
Comment 9 WebKit Review Bot 2012-08-29 13:45:38 PDT
Attachment 161301 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/Platform/ChangeLog', u'Source/Platf..." exit_code: 1
Source/WebCore/platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp:49:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 WebKit Review Bot 2012-09-05 12:03:46 PDT
Comment on attachment 161301 [details]
Patch

Clearing flags on attachment: 161301

Committed r127623: <http://trac.webkit.org/changeset/127623>
Comment 11 WebKit Review Bot 2012-09-05 12:03:51 PDT
All reviewed patches have been landed.  Closing bug.