Bug 23043 - Internal css for unused features should not be included
Summary: Internal css for unused features should not be included
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2008-12-30 14:13 PST by Eric Carlson
Modified: 2009-01-02 17:04 PST (History)
0 users

See Also:

Proposed patch (10.67 KB, patch)
2008-12-30 14:23 PST, Eric Carlson
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2008-12-30 14:13:01 PST
CSS for the optional WML, SGV and VIDEO features is in static data even when the feature is not enabled. The WML and SVG data isn't parsed and rules aren't added if the feature is not enabled, but the media controller css is in html4.css so it is always parsed and added. 

Media controls css should be split into a separate file and only parsed and added when the feature is enabled. Data for WML, SGV and VIDEO should not be included in UserAgentStyleSheetsData.cpp unless the feature is enabled.
Comment 1 Eric Carlson 2008-12-30 14:23:21 PST
Created attachment 26326 [details]
Proposed patch
Comment 2 Darin Adler 2009-01-01 13:01:43 PST
Comment on attachment 26326 [details]
Proposed patch

> + * Copyright (C) 2008 Apple Computer, Inc.  All rights reserved.

Should be "Apple Inc." not "Apple Computer, Inc."

And now we've been slow enough to review that the publication dates need to be 2009.

Comment 3 Eric Carlson 2009-01-02 10:35:51 PST
Committed revision 39552.
Comment 4 David Kilzer (:ddkilzer) 2009-01-02 17:04:30 PST
(In reply to comment #3)
> Committed revision 39552.

Follow-up build fix for non-Xcode build systems: