Bug 140247 - Unfriend StyleResolver and StyleBuilderCustom
Summary: Unfriend StyleResolver and StyleBuilderCustom
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-08 08:13 PST by Chris Dumez
Modified: 2015-01-08 12:05 PST (History)
1 user (show)

See Also:


Attachments
Patch (5.88 KB, patch)
2015-01-08 09:58 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2015-01-08 08:13:34 PST
Stop marking StyleBuilderCustom as a friend of StyleResolver by refactoring the code a bit.
Comment 1 Chris Dumez 2015-01-08 09:58:16 PST
Created attachment 244268 [details]
Patch
Comment 2 Darin Adler 2015-01-08 10:27:31 PST
Comment on attachment 244268 [details]
Patch

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

That turned out really nice.

> Source/WebCore/css/StyleResolver.h:165
> +    Settings* documentSettings() { return m_document.settings(); }

Really annoying that settings can be null. We need to get Kling on the case to help us figure out how to do this. Maybe we can move Settings from Page to MainFrame?

> Source/WebCore/css/StyleResolver.h:-322
> -    Settings* documentSettings() { return m_document.settings(); }

Might need to remove a blank line here to avoid a double black line.
Comment 3 Chris Dumez 2015-01-08 11:23:29 PST
Comment on attachment 244268 [details]
Patch

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

>> Source/WebCore/css/StyleResolver.h:-322
>> -    Settings* documentSettings() { return m_document.settings(); }
> 
> Might need to remove a blank line here to avoid a double black line.

I only see 1 blank line.
Comment 4 WebKit Commit Bot 2015-01-08 12:05:21 PST
Comment on attachment 244268 [details]
Patch

Clearing flags on attachment: 244268

Committed r178123: <http://trac.webkit.org/changeset/178123>
Comment 5 WebKit Commit Bot 2015-01-08 12:05:26 PST
All reviewed patches have been landed.  Closing bug.