Commit 4ecb97ed authored by darin's avatar darin

Reviewed by Hyatt.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6646
          compile CSS sources in instead of reading them from disk

        * WebCore.vcproj/WebCore/WebCore.vcproj:
        * WebCore.vcproj/WebCore/build-generated-files.sh:

        * css/make-css-file-arrays.pl: Added. Used to generate C array forms of the ".css" files.
        * css/UserAgentStyleSheets.cpp: Added. Used to indirectly compile the generated file.

        * WebCore.xcodeproj/project.pbxproj: Added new source files. Added a build phase to
        invoke the make-css-file-arrays.pl script. Removed the .css files, which no longer need
        to be installed as part of the final package.

        * css/cssstyleselector.cpp: (WebCore::parseUASheet): Removed code to read user agent
        sheets from disk. Replaced with code that gets them from compiled-in arrays instead.
        Uses a pretty lame DOMString hack that could be reworked some day.
        (WebCore::CSSStyleSelector::loadDefaultStyle): Change to load from arrays intead of disk.

        * css/html4.css: Added missing license header, tweaked format a bit.
        * css/quirks.css: Added missing license header, tweaked format.
        * css/svg.css: Moved from ksvg2/css directory.
        * ksvg2/css/svg.css: Moved to top level css directory.

        * page/Frame.cpp: Removed includes of qfile.h and kstandarddirs.h.

        * ForwardingHeaders/kstandarddirs.h: Removed.
        * ForwardingHeaders/qfile.h: Removed.
        * kwq/KWQFile.h: Removed.
        * kwq/KWQFile.mm: Removed.
        * kwq/KWQKStandardDirs.h: Removed.
        * kwq/KWQKStandardDirs.mm: Removed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 48f2fddc
2006-01-18 Darin Adler <darin@apple.com>
Reviewed by Hyatt.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6646
compile CSS sources in instead of reading them from disk
* WebCore.vcproj/WebCore/WebCore.vcproj:
* WebCore.vcproj/WebCore/build-generated-files.sh:
* css/make-css-file-arrays.pl: Added. Used to generate C array forms of the ".css" files.
* css/UserAgentStyleSheets.cpp: Added. Used to indirectly compile the generated file.
* WebCore.xcodeproj/project.pbxproj: Added new source files. Added a build phase to
invoke the make-css-file-arrays.pl script. Removed the .css files, which no longer need
to be installed as part of the final package.
* css/cssstyleselector.cpp: (WebCore::parseUASheet): Removed code to read user agent
sheets from disk. Replaced with code that gets them from compiled-in arrays instead.
Uses a pretty lame DOMString hack that could be reworked some day.
(WebCore::CSSStyleSelector::loadDefaultStyle): Change to load from arrays intead of disk.
* css/html4.css: Added missing license header, tweaked format a bit.
* css/quirks.css: Added missing license header, tweaked format.
* css/svg.css: Moved from ksvg2/css directory.
* ksvg2/css/svg.css: Moved to top level css directory.
* page/Frame.cpp: Removed includes of qfile.h and kstandarddirs.h.
* ForwardingHeaders/kstandarddirs.h: Removed.
* ForwardingHeaders/qfile.h: Removed.
* kwq/KWQFile.h: Removed.
* kwq/KWQFile.mm: Removed.
* kwq/KWQKStandardDirs.h: Removed.
* kwq/KWQKStandardDirs.mm: Removed.
2006-01-17 Alexander Kellett <lypanov@kde.org>
Reviewed by Maciej.
......
......@@ -218,10 +218,6 @@
RelativePath="..\..\kwq\KWQExceptions.h"
>
</File>
<File
RelativePath="..\..\kwq\KWQFile.h"
>
</File>
<File
RelativePath="..\..\kwq\KWQFileButton.h"
>
......@@ -350,10 +346,6 @@
RelativePath="..\..\kwq\KWQKSSLKeyGen.h"
>
</File>
<File
RelativePath="..\..\kwq\KWQKStandardDirs.h"
>
</File>
<File
RelativePath="..\..\kwq\KWQKURL.h"
>
......@@ -1749,6 +1741,10 @@
RelativePath="..\..\khtml\css\cssstyleselector.h"
>
</File>
<File
RelativePath="..\..\khtml\css\UserAgentStyleSheets.cpp"
>
</File>
</Filter>
<Filter
Name="xsl"
......
#!/usr/bin/bash
# Convert the DOS WebKitOutputDir variable to a unix path.
WebKitUnixDir=`cygpath -a -u "$2"`
# Set up the directory that will hold all our generated files.
DerivedSourcesDir="$WebKitUnixDir/WebCore.intermediate/$1/WebCore.intermediate/DerivedSources"
mkdir -p "$DerivedSourcesDir"
# Rebuild cssproperties.h and cssvalues.h if the .in files have changed
cd ../..
WebCoreSourceRoot=`pwd`
if [ khtml/css/cssproperties.in -nt "$DerivedSourcesDir/cssproperties.h" ]; then
echo "Generating CSS properties table..."
cat khtml/css/cssproperties.in > "$DerivedSourcesDir/cssproperties.in"
cd "$DerivedSourcesDir"
sh "$WebCoreSourceRoot/khtml/css/makeprop"
fi
cd "$WebCoreSourceRoot"
if [ khtml/css/cssvalues.in -nt "$DerivedSourcesDir/cssvalues.h" ]; then
echo "Generating CSS values table..."
cat khtml/css/cssvalues.in > "$DerivedSourcesDir/cssvalues.in"
cd "$DerivedSourcesDir"
sh "$WebCoreSourceRoot/khtml/css/makevalues"
fi
cd "$WebCoreSourceRoot"
if [ khtml/html/kentities.gperf -nt "$DerivedSourcesDir/kentities.c" ]; then
#!/usr/bin/bash
# Convert the DOS WebKitOutputDir variable to a unix path.
WebKitUnixDir=`cygpath -a -u "$2"`
# Set up the directory that will hold all our generated files.
DerivedSourcesDir="$WebKitUnixDir/WebCore.intermediate/$1/WebCore.intermediate/DerivedSources"
mkdir -p "$DerivedSourcesDir"
# Rebuild cssproperties.h and cssvalues.h if the .in files have changed
cd ../..
WebCoreSourceRoot=`pwd`
if [ khtml/css/cssproperties.in -nt "$DerivedSourcesDir/cssproperties.h" ]; then
echo "Generating CSS properties table..."
cat khtml/css/cssproperties.in > "$DerivedSourcesDir/cssproperties.in"
cd "$DerivedSourcesDir"
sh "$WebCoreSourceRoot/khtml/css/makeprop"
fi
cd "$WebCoreSourceRoot"
if [ khtml/css/cssvalues.in -nt "$DerivedSourcesDir/cssvalues.h" ]; then
echo "Generating CSS values table..."
cat khtml/css/cssvalues.in > "$DerivedSourcesDir/cssvalues.in"
cd "$DerivedSourcesDir"
sh "$WebCoreSourceRoot/khtml/css/makevalues"
fi
cd "$WebCoreSourceRoot"
if [ khtml/html/kentities.gperf -nt "$DerivedSourcesDir/kentities.c" ]; then
echo "Generating entities table..."
gperf -a -L ANSI-C -C -G -c -o -t -k '*' -NfindEntity -D -s 2 khtml/html/kentities.gperf > "$DerivedSourcesDir/kentities.c"
fi
if [ khtml/html/doctypes.gperf -nt "$DerivedSourcesDir/doctypes.cpp" ]; then
if [ khtml/html/doctypes.gperf -nt "$DerivedSourcesDir/doctypes.cpp" ]; then
echo "Generating doctype modes table..."
gperf -CEot -L ANSI-C -k '*' -N findDoctypeEntry -F ,PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards khtml/html/doctypes.gperf > "$DerivedSourcesDir/doctypes.cpp"
fi
......@@ -43,64 +43,68 @@ if [ khtml/css/tokenizer.flex -nt "$DerivedSourcesDir/tokenizer.cpp" ]; then
flex -t khtml/css/tokenizer.flex | perl khtml/css/maketokenizer > "$DerivedSourcesDir/tokenizer.cpp"
fi
# Generate the CSS grammar using bison
if [ khtml/css/css_grammar.y -nt "$DerivedSourcesDir/css_grammar.cpp" ]; then
echo "Generating the CSS grammar using bison..."
bison -d -p cssyy khtml/css/css_grammar.y -o "$DerivedSourcesDir/css_grammar.cpp"
mv "$DerivedSourcesDir/css_grammar.hpp" "$DerivedSourcesDir/css_grammar.h"
fi
# Generate the lookup tables for the JS bindings
if [ khtml/ecma/domparser.cpp -nt "$DerivedSourcesDir/domparser.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/domparser.cpp > "$DerivedSourcesDir/domparser.lut.h"
fi
if [ khtml/ecma/kjs_css.cpp -nt "$DerivedSourcesDir/kjs_css.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_css.cpp > "$DerivedSourcesDir/kjs_css.lut.h"
fi
if [ khtml/ecma/kjs_dom.cpp -nt "$DerivedSourcesDir/kjs_dom.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_dom.cpp > "$DerivedSourcesDir/kjs_dom.lut.h"
fi
if [ khtml/ecma/kjs_events.cpp -nt "$DerivedSourcesDir/kjs_events.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_events.cpp > "$DerivedSourcesDir/kjs_events.lut.h"
fi
if [ khtml/ecma/kjs_html.cpp -nt "$DerivedSourcesDir/kjs_html.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_html.cpp > "$DerivedSourcesDir/kjs_html.lut.h"
fi
if [ khtml/ecma/kjs_navigator.cpp -nt "$DerivedSourcesDir/kjs_navigator.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_navigator.cpp > "$DerivedSourcesDir/kjs_navigator.lut.h"
fi
if [ khtml/ecma/kjs_range.cpp -nt "$DerivedSourcesDir/kjs_range.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_range.cpp > "$DerivedSourcesDir/kjs_range.lut.h"
fi
if [ khtml/ecma/kjs_traversal.cpp -nt "$DerivedSourcesDir/kjs_traversal.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_traversal.cpp > "$DerivedSourcesDir/kjs_traversal.lut.h"
fi
if [ khtml/ecma/kjs_views.cpp -nt "$DerivedSourcesDir/kjs_views.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_views.cpp > "$DerivedSourcesDir/kjs_views.lut.h"
fi
if [ khtml/ecma/kjs_window.cpp -nt "$DerivedSourcesDir/kjs_window.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_window.cpp > "$DerivedSourcesDir/kjs_window.lut.h"
fi
if [ khtml/ecma/xmlhttprequest.cpp -nt "$DerivedSourcesDir/xmlhttprequest.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/xmlhttprequest.cpp > "$DerivedSourcesDir/xmlhttprequest.lut.h"
fi
if [ khtml/ecma/xmlserializer.cpp -nt "$DerivedSourcesDir/xmlserializer.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/xmlserializer.cpp > "$DerivedSourcesDir/xmlserializer.lut.h"
fi
if [ khtml/ecma/XSLTProcessor.cpp -nt "$DerivedSourcesDir/XSLTProcessor.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/XSLTProcessor.cpp > "$DerivedSourcesDir/XSLTProcessor.lut.h"
fi
# Generate the CSS grammar using bison
if [ khtml/css/css_grammar.y -nt "$DerivedSourcesDir/css_grammar.cpp" ]; then
echo "Generating the CSS grammar using bison..."
bison -d -p cssyy khtml/css/css_grammar.y -o "$DerivedSourcesDir/css_grammar.cpp"
mv "$DerivedSourcesDir/css_grammar.hpp" "$DerivedSourcesDir/css_grammar.h"
fi
# Generate the lookup tables for the JS bindings
if [ khtml/ecma/domparser.cpp -nt "$DerivedSourcesDir/domparser.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/domparser.cpp > "$DerivedSourcesDir/domparser.lut.h"
fi
if [ khtml/ecma/kjs_css.cpp -nt "$DerivedSourcesDir/kjs_css.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_css.cpp > "$DerivedSourcesDir/kjs_css.lut.h"
fi
if [ khtml/ecma/kjs_dom.cpp -nt "$DerivedSourcesDir/kjs_dom.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_dom.cpp > "$DerivedSourcesDir/kjs_dom.lut.h"
fi
if [ khtml/ecma/kjs_events.cpp -nt "$DerivedSourcesDir/kjs_events.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_events.cpp > "$DerivedSourcesDir/kjs_events.lut.h"
fi
if [ khtml/ecma/kjs_html.cpp -nt "$DerivedSourcesDir/kjs_html.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_html.cpp > "$DerivedSourcesDir/kjs_html.lut.h"
fi
if [ khtml/ecma/kjs_navigator.cpp -nt "$DerivedSourcesDir/kjs_navigator.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_navigator.cpp > "$DerivedSourcesDir/kjs_navigator.lut.h"
fi
if [ khtml/ecma/kjs_range.cpp -nt "$DerivedSourcesDir/kjs_range.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_range.cpp > "$DerivedSourcesDir/kjs_range.lut.h"
fi
if [ khtml/ecma/kjs_traversal.cpp -nt "$DerivedSourcesDir/kjs_traversal.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_traversal.cpp > "$DerivedSourcesDir/kjs_traversal.lut.h"
fi
if [ khtml/ecma/kjs_views.cpp -nt "$DerivedSourcesDir/kjs_views.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_views.cpp > "$DerivedSourcesDir/kjs_views.lut.h"
fi
if [ khtml/ecma/kjs_window.cpp -nt "$DerivedSourcesDir/kjs_window.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/kjs_window.cpp > "$DerivedSourcesDir/kjs_window.lut.h"
fi
if [ khtml/ecma/xmlhttprequest.cpp -nt "$DerivedSourcesDir/xmlhttprequest.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/xmlhttprequest.cpp > "$DerivedSourcesDir/xmlhttprequest.lut.h"
fi
if [ khtml/ecma/xmlserializer.cpp -nt "$DerivedSourcesDir/xmlserializer.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/xmlserializer.cpp > "$DerivedSourcesDir/xmlserializer.lut.h"
fi
if [ khtml/ecma/XSLTProcessor.cpp -nt "$DerivedSourcesDir/XSLTProcessor.lut.h" ]; then
../JavaScriptCore/kjs/create_hash_table khtml/ecma/XSLTProcessor.cpp > "$DerivedSourcesDir/XSLTProcessor.lut.h"
fi
if [ css/make-css-file-arrays.pl -nt "$DerivedSourcesDir/UserAgentStyleSheets.h" -o css/html4.css -nt "$DerivedSourcesDir/UserAgentStyleSheets.h" -o css/quirks.css -nt "$DerivedSourcesDir/UserAgentStyleSheets.h" -o css/svg.css -nt "$DerivedSourcesDir/UserAgentStyleSheets.h" ]; then
css/make-css-file-arrays.pl "$DerivedSourcesDir/UserAgentStyleSheets.h" "$DerivedSourcesDir/UserAgentStyleSheetsData.cpp" css/html4.css css/quirks.css css/svg.css
touch css/UserAgentStyleSheets.cpp
fi
This diff is collapsed.
/*
* Copyright (C) 2006 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include "UserAgentStyleSheetsData.cpp"
This diff is collapsed.
/*
* The default style sheet used by khtml to render HTML pages
* (C) Lars Knoll (knoll@kde.org) 2000
/*
* The default style sheet used to render HTML.
*
* Copyright (C) 2000 Lars Knoll (knoll@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* Konqueror/khtml relies on the existence of this style sheet for
* rendering. Do not remove or modify this file unless you know
* what you are doing.
*/
@namespace "http://www.w3.org/1999/xhtml";
......@@ -13,8 +27,7 @@ html {
display: block
}
/* The children of the <head> element all have display:none */
/* children of the <head> element all have display:none */
head {
display: none
}
......@@ -208,7 +221,7 @@ caption {
text-align: -khtml-center
}
/* Lists */
/* lists */
ul, menu, dir {
display: block;
......@@ -282,7 +295,7 @@ button {
white-space: normal
}
/* If we support for CSS2 system fonts, then we won't have to hard code Lucida Grande here. */
/* If we add support for CSS2 system fonts, then we won't have to hard code Lucida Grande here. */
input, textarea, select, button {
margin: 0__qem;
font: 11px 'Lucida Grande';
......@@ -324,7 +337,7 @@ input[type="button"], input[type="submit"], input[type="reset"], button {
}
input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, button:disabled {
color: GrayText;
color: GrayText
}
input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, button:active {
......@@ -377,11 +390,11 @@ pre, xmp, plaintext {
}
big {
font-size: larger;
font-size: larger
}
small {
font-size: smaller;
font-size: smaller
}
s, strike, del {
......@@ -406,7 +419,7 @@ wbr {
white-space: normal
}
/* End Inline Elements */
/* states */
:focus {
outline: auto 3px #1f5ccf
......
#!/usr/bin/perl -w
#
# Copyright (C) 2006 Apple Computer, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with this library; see the file COPYING.LIB. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
# Usage: make-css-file-arrays.pl <header> <output> <input> ...
use strict;
my $header = $ARGV[0];
shift;
my $out = $ARGV[0];
shift;
open HEADER, ">", $header or die;
open OUT, ">", $out or die;
print HEADER "namespace WebCore {\n";
print OUT "namespace WebCore {\n";
for my $in (@ARGV) {
$in =~ /(\w+)\.css$/ or die;
my $name = $1;
# Slurp in the CSS file.
open IN, $in or die;
my $text; { local $/; $text = <IN>; }
close IN;
# Remove comments in a simple-minded way that will work fine for our files.
# Could do this a fancier way if we were worried about arbitrary CSS source.
$text =~ s|/\*.*?\*/||gs;
# Crunch whitespace just to make it a little smaller.
# Could do work to avoid doing this inside quote marks but our files don't have runs of spaces in quotes.
# Could crunch further based on places where whitespace is optional.
$text =~ s|\s+| |gs;
$text =~ s|^ ||;
$text =~ s| $||;
# Write out a C array of the characters.
my $length = length $text;
print HEADER "extern const unsigned short ${name}UserAgentStyleSheet[${length}];\n";
print OUT "extern const unsigned short ${name}UserAgentStyleSheet[${length}] = {\n";
my $i = 0;
while ($i < $length) {
print " ";
my $j = 0;
while ($j < 16 && $i < $length) {
print OUT ", " unless $j == 0;
print OUT ord substr $text, $i, 1;
++$i;
++$j;
}
print OUT "," unless $i == $length;
print OUT "\n";
}
print OUT "};\n";
}
print HEADER "}\n";
print OUT "}\n";
/*
* This style sheet is used by khtml to render HTML pages in quirks mode
* (C) 2000-2003 Lars Knoll (knoll@kde.org)
* (C) 2004 Apple Computer
* Additonal style sheet used to render HTML pages in quirks mode.
*
* Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org)
* Copyright (C) 2004, 2006 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* Konqueror/khtml relies on the existence of this style sheet for
* rendering. Do not remove or modify this file unless you know
* what you are doing.
*/
/* Give floated images margins of 3px */
img[align="left"] {
margin-right: 3px;
}
img[align="right"] {
margin-left: 3px;
}
/* Tables reset both line-height and white-space in quirks mode.
Compatible with WinIE. Note that font-family is *not reset*. */
/* Tables reset both line-height and white-space in quirks mode. */
/* Compatible with WinIE. Note that font-family is *not* reset. */
table {
white-space: normal;
line-height: normal;
......@@ -28,5 +40,3 @@ table {
font-style: normal;
color: -khtml-text;
}
/*
* Copyright (C) 2005 Apple Computer, Inc. All rights reserved.
* The default style sheet used to render SVG.
*
* Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
......@@ -25,22 +27,20 @@
@namespace "http://www.w3.org/2000/svg";
/* When an outermost SVG 'svg' element is stand-alone or embedded inline within a parent XML grammar
which does not use CSS layout [CSS2-LAYOUT] or XSL formatting [XSL], the 'overflow' property on the
outermost 'svg' element is ignored for the purposes of visual rendering and the initial clipping path is set
to the bounds of the initial viewport.
/*
When an outermost SVG 'svg' element is stand-alone or embedded inline within a parent XML grammar
which does not use CSS layout [CSS2-LAYOUT] or XSL formatting [XSL], the 'overflow' property on the
outermost 'svg' element is ignored for the purposes of visual rendering and the initial clipping path is set
to the bounds of the initial viewport.
*/
svg:root
{
overflow: visible !important;
svg:root {
overflow: visible !important
}
svg, symbol, marker, pattern, foreignObject
{
overflow: hidden;
svg, symbol, marker, pattern, foreignObject {
overflow: hidden
}
text, foreignObject
{
display: block !important;
text, foreignObject {
display: block !important
}
/*
* Copyright (C) 2003 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef QFILE_H_
#define QFILE_H_
#include "KWQDef.h"
#include "KWQString.h"
#include "KWQIODevice.h"
class QFile
{
public:
QFile(const QString &);
~QFile();
bool exists() const;
bool open(int);
void close();
int readBlock(char *, uint);
uint size() const;
static bool exists(const QString &path);
private:
QFile(const QFile &);
QFile &operator=(const QFile &);
char *name;
int fd;
};
#endif // QFILE_H_
/*
* Copyright (C) 2003 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOW