Changeset 52275 in webkit
- Timestamp:
- Dec 17, 2009 12:00:50 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r52274 r52275 1 2009-12-17 Benjamin Otte <otte@gnome.org> 2 3 Reviewed by Adam Roben. 4 5 Don't include all JSC headers everywhere 6 https://bugs.webkit.org/show_bug.cgi?id=32663 7 8 PlatformString.h included almost all of JSC via runtime/Identifier.h. 9 This patch gets rid of this include by forward-declaring the required 10 classes instead. 11 This reduces the build size of the object files on a Gtk debug build 12 by 10%. The resulting libwebkit.so gets 5% smaller. 13 14 No new tests as it's just a build improvement. 15 16 * platform/gtk/LocalizedStringsGtk.cpp: 17 include math.h here (it used to be pulled by JSC) 18 * platform/text/PlatformString.h: 19 * platform/text/String.cpp: 20 1 21 2009-12-17 Evan Martin <evan@chromium.org> 2 22 -
trunk/WebCore/platform/gtk/LocalizedStringsGtk.cpp
r51200 r52275 39 39 #include <glib/gi18n-lib.h> 40 40 #include <gtk/gtk.h> 41 #include <math.h> 41 42 42 43 namespace WebCore { -
trunk/WebCore/platform/text/PlatformString.h
r50763 r52275 32 32 #endif 33 33 34 #if USE(JSC)35 #include <runtime/Identifier.h>36 #else37 // runtime/Identifier.h brings in a variety of wtf headers. We explicitly38 // include them in the case of non-JSC builds to keep things consistent.39 34 #include <wtf/HashMap.h> 40 35 #include <wtf/HashSet.h> 41 36 #include <wtf/OwnPtr.h> 42 #endif43 37 44 38 #if PLATFORM(CF) … … 59 53 #if PLATFORM(HAIKU) 60 54 class BString; 55 #endif 56 57 #if USE(JSC) 58 namespace JSC { 59 class Identifier; 60 class UString; 61 } 61 62 #endif 62 63 -
trunk/WebCore/platform/text/String.cpp
r51705 r52275 38 38 39 39 #if USE(JSC) 40 #include <runtime/Identifier.h> 41 40 42 using JSC::Identifier; 41 43 using JSC::UString; -
trunk/WebKit/win/ChangeLog
r52263 r52275 1 2009-12-17 Benjamin Otte <otte@gnome.org> 2 3 Reviewed by Adam Roben. 4 5 Don't include all JSC headers everywhere 6 https://bugs.webkit.org/show_bug.cgi?id=32663 7 8 * WebCoreLocalizedStrings.cpp: Added now-needed #include of 9 MathExtras.h. 10 1 11 2009-12-17 Adam Roben <aroben@apple.com> 2 12 -
trunk/WebKit/win/WebCoreLocalizedStrings.cpp
r51191 r52275 29 29 #include <WebCore/LocalizedStrings.h> 30 30 #include <WebCore/PlatformString.h> 31 #include <wtf/MathExtras.h> 31 32 #include <wtf/RetainPtr.h> 32 33
Note: See TracChangeset
for help on using the changeset viewer.