GeneratePreferences.rb is noisy
[WebKit-https.git] / Source / WTF / Scripts / GeneratePreferences.rb
index 1c86b9230f4b6b4f78cbb441670e6d999607ee3e..c9fb6df53d5f83c62d3d8ef63eba9f7fd7a711f0 100644 (file)
@@ -120,7 +120,7 @@ class Preference
       @getter
     elsif @name.start_with?("VP")
       @name[0..1].downcase + @name[2..@name.length]
       @getter
     elsif @name.start_with?("VP")
       @name[0..1].downcase + @name[2..@name.length]
-    elsif @name.start_with?("CSS", "XSS", "FTP", "DOM", "DNS", "PDF", "ICE")
+    elsif @name.start_with?("CSS", "DOM", "DNS", "FTP", "ICE", "IPC", "PDF", "XSS")
       @name[0..2].downcase + @name[3..@name.length]
     elsif @name.start_with?("HTTP")
       @name[0..3].downcase + @name[4..@name.length]
       @name[0..2].downcase + @name[3..@name.length]
     elsif @name.start_with?("HTTP")
       @name[0..3].downcase + @name[4..@name.length]
@@ -201,6 +201,9 @@ class Preferences
     result = []
     if parsedPreferences
       parsedPreferences.each do |name, options|
     result = []
     if parsedPreferences
       parsedPreferences.each do |name, options|
+        if !options["webcoreBinding"] && options["defaultValue"].size != 3
+          raise "ERROR: Preferences bound to WebCore::Settings must have default values for all frontends: #{name}"
+        end
         if !options["exposed"] or options["exposed"].include?(@frontend)
           preference = Preference.new(name, options, @frontend)
           @preferences << preference
         if !options["exposed"] or options["exposed"].include?(@frontend)
           preference = Preference.new(name, options, @frontend)
           @preferences << preference
@@ -212,8 +215,6 @@ class Preferences
   end
 
   def renderTemplate(templateFile, outputDirectory)
   end
 
   def renderTemplate(templateFile, outputDirectory)
-    puts "Generating output for template file: #{templateFile}"
-
     resultFile = File.join(outputDirectory, File.basename(templateFile, ".erb"))
     tempResultFile = resultFile + ".tmp"
 
     resultFile = File.join(outputDirectory, File.basename(templateFile, ".erb"))
     tempResultFile = resultFile + ".tmp"