Changeset 38202 in webkit


Ignore:
Timestamp:
Nov 6, 2008 3:10:10 PM (15 years ago)
Author:
ddkilzer@apple.com
Message:

BUILD FIX: Backed out r38189 since it apparently broke the world.

WebCore:

BUILD FIX: Backed out r38189 since it apparently broke the world.

WebKit/mac:

BUILD FIX: Backed out r38189 since it apparently broke the world.

WebKitTools:

BUILD FIX: Backed out r38189 since it apparently broke the world.

Location:
trunk
Files:
83 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r38200 r38202  
     12008-11-06  David Kilzer  <ddkilzer@apple.com>
     2
     3        BUILD FIX: Backed out r38189 since it apparently broke the world.
     4
    152008-11-06  Chris Fleizach  <cfleizach@apple.com>
    26
  • trunk/WebCore/bindings/js/GCController.cpp

    r38189 r38202  
    5353GCController& gcController()
    5454{
    55     static GCController& staticGCController = *new GCController;
     55    static GCController staticGCController;
    5656    return staticGCController;
    5757}
  • trunk/WebCore/bindings/js/JSDOMBinding.cpp

    r38189 r38202  
    9898{
    9999#if ENABLE(WORKERS)
    100     static ThreadSpecific<HashSet<DOMObject*> >& staticWrapperSet = *new ThreadSpecific<HashSet<DOMObject*> >;
     100    static ThreadSpecific<HashSet<DOMObject*> > staticWrapperSet;
    101101    return *staticWrapperSet;
    102102#else
    103     static HashSet<DOMObject*>& staticWrapperSet = *new HashSet<DOMObject*>;
     103    static HashSet<DOMObject*> staticWrapperSet;
    104104    return staticWrapperSet;
    105105#endif
  • trunk/WebCore/bindings/js/JSInspectedObjectWrapper.cpp

    r38189 r38202  
    4141static GlobalObjectWrapperMap& wrappers()
    4242{
    43     static GlobalObjectWrapperMap& map = *new GlobalObjectWrapperMap;
     43    static GlobalObjectWrapperMap map;
    4444    return map;
    4545}
  • trunk/WebCore/bindings/js/JSInspectorCallbackWrapper.cpp

    r38189 r38202  
    3939static WrapperMap& wrappers()
    4040{
    41     static WrapperMap& map = *new WrapperMap;
     41    static WrapperMap map;
    4242    return map;
    4343}
  • trunk/WebCore/bridge/runtime_root.cpp

    r38189 r38202  
    4343static RootObjectSet* rootObjectSet()
    4444{
    45     static RootObjectSet& staticRootObjectSet = *new RootObjectSet;
     45    static RootObjectSet staticRootObjectSet;
    4646    return &staticRootObjectSet;
    4747}
  • trunk/WebCore/css/CSSMutableStyleDeclaration.cpp

    r38189 r38202  
    502502    ec = 0;
    503503
    504     static HashMap<int, PropertyLonghand>& shorthandMap = *new HashMap<int, PropertyLonghand>;
     504    static HashMap<int, PropertyLonghand> shorthandMap;
    505505    if (shorthandMap.isEmpty())
    506506        initShorthandMap(shorthandMap);
  • trunk/WebCore/css/CSSPrimitiveValue.cpp

    r38189 r38202  
    687687            break;
    688688        case CSS_RECT: {
    689             static const String& rectParen = *new String("rect(");
     689            static const String rectParen("rect(");
    690690
    691691            Rect* rectVal = getRectValue();
     
    710710        case CSS_RGBCOLOR:
    711711        case CSS_PARSER_HEXCOLOR: {
    712             static const String& commaSpace = *new String(", ");
    713             static const String& rgbParen = *new String("rgb(");
    714             static const String& rgbaParen = *new String("rgba(");
     712            static const String commaSpace(", ");
     713            static const String rgbParen("rgb(");
     714            static const String rgbaParen("rgba(");
    715715
    716716            RGBA32 rgbColor = m_value.rgbcolor;
  • trunk/WebCore/css/CSSSelector.cpp

    r38189 r38202  
    6363        return;
    6464
    65     static AtomicString& active = *new AtomicString("active");
    66     static AtomicString& after = *new AtomicString("after");
    67     static AtomicString& anyLink = *new AtomicString("-webkit-any-link");
    68     static AtomicString& autofill = *new AtomicString("-webkit-autofill");
    69     static AtomicString& before = *new AtomicString("before");
    70     static AtomicString& checked = *new AtomicString("checked");
    71     static AtomicString& fileUploadButton = *new AtomicString("-webkit-file-upload-button");
    72     static AtomicString& disabled = *new AtomicString("disabled");
    73     static AtomicString& readOnly = *new AtomicString("read-only");
    74     static AtomicString& readWrite = *new AtomicString("read-write");
    75     static AtomicString& drag = *new AtomicString("-webkit-drag");
    76     static AtomicString& dragAlias = *new AtomicString("-khtml-drag"); // was documented with this name in Apple documentation, so keep an alias
    77     static AtomicString& empty = *new AtomicString("empty");
    78     static AtomicString& enabled = *new AtomicString("enabled");
    79     static AtomicString& firstChild = *new AtomicString("first-child");
    80     static AtomicString& firstLetter = *new AtomicString("first-letter");
    81     static AtomicString& firstLine = *new AtomicString("first-line");
    82     static AtomicString& firstOfType = *new AtomicString("first-of-type");
    83     static AtomicString& fullPageMedia = *new AtomicString("-webkit-full-page-media");
    84     static AtomicString& nthChild = *new AtomicString("nth-child(");
    85     static AtomicString& nthOfType = *new AtomicString("nth-of-type(");
    86     static AtomicString& nthLastChild = *new AtomicString("nth-last-child(");
    87     static AtomicString& nthLastOfType = *new AtomicString("nth-last-of-type(");
    88     static AtomicString& focus = *new AtomicString("focus");
    89     static AtomicString& hover = *new AtomicString("hover");
    90     static AtomicString& indeterminate = *new AtomicString("indeterminate");
    91     static AtomicString& inputPlaceholder = *new AtomicString("-webkit-input-placeholder");
    92     static AtomicString& lastChild = *new AtomicString("last-child");
    93     static AtomicString& lastOfType = *new AtomicString("last-of-type");
    94     static AtomicString& link = *new AtomicString("link");
    95     static AtomicString& lang = *new AtomicString("lang(");
    96     static AtomicString& mediaControlsPanel = *new AtomicString("-webkit-media-controls-panel");
    97     static AtomicString& mediaControlsMuteButton = *new AtomicString("-webkit-media-controls-mute-button");
    98     static AtomicString& mediaControlsPlayButton = *new AtomicString("-webkit-media-controls-play-button");
    99     static AtomicString& mediaControlsTimeDisplay = *new AtomicString("-webkit-media-controls-time-display");
    100     static AtomicString& mediaControlsTimeline = *new AtomicString("-webkit-media-controls-timeline");
    101     static AtomicString& mediaControlsSeekBackButton = *new AtomicString("-webkit-media-controls-seek-back-button");
    102     static AtomicString& mediaControlsSeekForwardButton = *new AtomicString("-webkit-media-controls-seek-forward-button");
    103     static AtomicString& mediaControlsFullscreenButton = *new AtomicString("-webkit-media-controls-fullscreen-button");
    104     static AtomicString& notStr = *new AtomicString("not(");
    105     static AtomicString& onlyChild = *new AtomicString("only-child");
    106     static AtomicString& onlyOfType = *new AtomicString("only-of-type");
    107     static AtomicString& resizer = *new AtomicString("-webkit-resizer");
    108     static AtomicString& root = *new AtomicString("root");
    109     static AtomicString& scrollbar = *new AtomicString("-webkit-scrollbar");
    110     static AtomicString& scrollbarButton = *new AtomicString("-webkit-scrollbar-button");
    111     static AtomicString& scrollbarCorner = *new AtomicString("-webkit-scrollbar-corner");
    112     static AtomicString& scrollbarThumb = *new AtomicString("-webkit-scrollbar-thumb");
    113     static AtomicString& scrollbarTrack = *new AtomicString("-webkit-scrollbar-track");
    114     static AtomicString& scrollbarTrackPiece = *new AtomicString("-webkit-scrollbar-track-piece");
    115     static AtomicString& searchCancelButton = *new AtomicString("-webkit-search-cancel-button");
    116     static AtomicString& searchDecoration = *new AtomicString("-webkit-search-decoration");
    117     static AtomicString& searchResultsDecoration = *new AtomicString("-webkit-search-results-decoration");
    118     static AtomicString& searchResultsButton = *new AtomicString("-webkit-search-results-button");
    119     static AtomicString& selection = *new AtomicString("selection");
    120     static AtomicString& sliderThumb = *new AtomicString("-webkit-slider-thumb");
    121     static AtomicString& target = *new AtomicString("target");
    122     static AtomicString& visited = *new AtomicString("visited");
    123     static AtomicString& windowInactive = *new AtomicString("window-inactive");
    124     static AtomicString& decrement = *new AtomicString("decrement");
    125     static AtomicString& increment = *new AtomicString("increment");
    126     static AtomicString& start = *new AtomicString("start");
    127     static AtomicString& end = *new AtomicString("end");
    128     static AtomicString& horizontal = *new AtomicString("horizontal");
    129     static AtomicString& vertical = *new AtomicString("vertical");
    130     static AtomicString& doubleButton = *new AtomicString("double-button");
    131     static AtomicString& singleButton = *new AtomicString("single-button");
    132     static AtomicString& noButton = *new AtomicString("no-button");
    133     static AtomicString& cornerPresent = *new AtomicString("corner-present");
     65    static AtomicString active("active");
     66    static AtomicString after("after");
     67    static AtomicString anyLink("-webkit-any-link");
     68    static AtomicString autofill("-webkit-autofill");
     69    static AtomicString before("before");
     70    static AtomicString checked("checked");
     71    static AtomicString fileUploadButton("-webkit-file-upload-button");
     72    static AtomicString disabled("disabled");
     73    static AtomicString readOnly("read-only");
     74    static AtomicString readWrite("read-write");
     75    static AtomicString drag("-webkit-drag");
     76    static AtomicString dragAlias("-khtml-drag"); // was documented with this name in Apple documentation, so keep an alias
     77    static AtomicString empty("empty");
     78    static AtomicString enabled("enabled");
     79    static AtomicString firstChild("first-child");
     80    static AtomicString firstLetter("first-letter");
     81    static AtomicString firstLine("first-line");
     82    static AtomicString firstOfType("first-of-type");
     83    static AtomicString fullPageMedia("-webkit-full-page-media");
     84    static AtomicString nthChild("nth-child(");
     85    static AtomicString nthOfType("nth-of-type(");
     86    static AtomicString nthLastChild("nth-last-child(");
     87    static AtomicString nthLastOfType("nth-last-of-type(");
     88    static AtomicString focus("focus");
     89    static AtomicString hover("hover");
     90    static AtomicString indeterminate("indeterminate");
     91    static AtomicString inputPlaceholder("-webkit-input-placeholder");
     92    static AtomicString lastChild("last-child");
     93    static AtomicString lastOfType("last-of-type");
     94    static AtomicString link("link");
     95    static AtomicString lang("lang(");
     96    static AtomicString mediaControlsPanel("-webkit-media-controls-panel");
     97    static AtomicString mediaControlsMuteButton("-webkit-media-controls-mute-button");
     98    static AtomicString mediaControlsPlayButton("-webkit-media-controls-play-button");
     99    static AtomicString mediaControlsTimeDisplay("-webkit-media-controls-time-display");
     100    static AtomicString mediaControlsTimeline("-webkit-media-controls-timeline");
     101    static AtomicString mediaControlsSeekBackButton("-webkit-media-controls-seek-back-button");
     102    static AtomicString mediaControlsSeekForwardButton("-webkit-media-controls-seek-forward-button");
     103    static AtomicString mediaControlsFullscreenButton("-webkit-media-controls-fullscreen-button");
     104    static AtomicString notStr("not(");
     105    static AtomicString onlyChild("only-child");
     106    static AtomicString onlyOfType("only-of-type");
     107    static AtomicString resizer("-webkit-resizer");
     108    static AtomicString root("root");
     109    static AtomicString scrollbar("-webkit-scrollbar");
     110    static AtomicString scrollbarButton("-webkit-scrollbar-button");
     111    static AtomicString scrollbarCorner("-webkit-scrollbar-corner");
     112    static AtomicString scrollbarThumb("-webkit-scrollbar-thumb");
     113    static AtomicString scrollbarTrack("-webkit-scrollbar-track");
     114    static AtomicString scrollbarTrackPiece("-webkit-scrollbar-track-piece");
     115    static AtomicString searchCancelButton("-webkit-search-cancel-button");
     116    static AtomicString searchDecoration("-webkit-search-decoration");
     117    static AtomicString searchResultsDecoration("-webkit-search-results-decoration");
     118    static AtomicString searchResultsButton("-webkit-search-results-button");
     119    static AtomicString selection("selection");
     120    static AtomicString sliderThumb("-webkit-slider-thumb");
     121    static AtomicString target("target");
     122    static AtomicString visited("visited");
     123    static AtomicString windowInactive("window-inactive");
     124    static AtomicString decrement("decrement");
     125    static AtomicString increment("increment");
     126    static AtomicString start("start");
     127    static AtomicString end("end");
     128    static AtomicString horizontal("horizontal");
     129    static AtomicString vertical("vertical");
     130    static AtomicString doubleButton("double-button");
     131    static AtomicString singleButton("single-button");
     132    static AtomicString noButton("no-button");
     133    static AtomicString cornerPresent("corner-present");
    134134
    135135    bool element = false; // pseudo-element
  • trunk/WebCore/css/CSSStyleSelector.cpp

    r38189 r38202  
    373373static const MediaQueryEvaluator& screenEval()
    374374{
    375     static const MediaQueryEvaluator& staticScreenEval = *new MediaQueryEvaluator("screen");
     375    static const MediaQueryEvaluator staticScreenEval("screen");
    376376    return staticScreenEval;
    377377}
     
    379379static const MediaQueryEvaluator& printEval()
    380380{
    381     static const MediaQueryEvaluator& staticPrintEval = *new MediaQueryEvaluator("print");
     381    static const MediaQueryEvaluator staticPrintEval("print");
    382382    return staticPrintEval;
    383383}
  • trunk/WebCore/dom/DOMImplementation.cpp

    r38189 r38202  
    6565{
    6666    static bool initialized = false;
    67     static HashSet<String, CaseFoldingHash>& svgFeatures = *new HashSet<String, CaseFoldingHash>;
     67    static HashSet<String, CaseFoldingHash> svgFeatures;
    6868    if (!initialized) {
    6969#if ENABLE(SVG_USE) && ENABLE(SVG_FOREIGN_OBJECT) && ENABLE(SVG_FILTER) && ENABLE(SVG_FONTS)
     
    9090{
    9191    static bool initialized = false;
    92     static HashSet<String, CaseFoldingHash>& svgFeatures = *new HashSet<String, CaseFoldingHash>;
     92    static HashSet<String, CaseFoldingHash> svgFeatures;
    9393    if (!initialized) {
    9494        // Sadly, we cannot claim to implement any of the SVG 1.1 generic feature sets
     
    275275        return true;
    276276    static const char* validChars = "[0-9a-zA-Z_\\-+~!$\\^{}|.%'`#&*]"; // per RFCs: 3023, 2045
    277     static RegularExpression& xmlTypeRegExp = *new RegularExpression(String("^") + validChars + "+/" + validChars + "+\\+xml$");
     277    static RegularExpression xmlTypeRegExp(String("^") + validChars + "+/" + validChars + "+\\+xml$");
    278278    return xmlTypeRegExp.match(mimeType) > -1;
    279279}
  • trunk/WebCore/dom/Document.cpp

    r38189 r38202  
    714714bool Document::hasPrefixNamespaceMismatch(const QualifiedName& qName)
    715715{
    716     static const AtomicString& xmlnsNamespaceURI = *new AtomicString("http://www.w3.org/2000/xmlns/");
    717     static const AtomicString& xmlns = *new AtomicString("xmlns");
    718     static const AtomicString& xml = *new AtomicString("xml");
     716    static const AtomicString xmlnsNamespaceURI("http://www.w3.org/2000/xmlns/");
     717    static const AtomicString xmlns("xmlns");
     718    static const AtomicString xml("xml");
    719719
    720720    // These checks are from DOM Core Level 2, createElementNS
  • trunk/WebCore/dom/ScriptElement.cpp

    r38189 r38202  
    9292static bool isSupportedJavaScriptLanguage(const String& language)
    9393{
    94     static HashSet<String, CaseFoldingHash>& languages = *new HashSet<String, CaseFoldingHash>;
     94    static HashSet<String, CaseFoldingHash> languages;
    9595    if (languages.isEmpty()) {
    9696        languages.add("javascript");
  • trunk/WebCore/editing/ApplyStyleCommand.cpp

    r38189 r38202  
    217217static String &styleSpanClassString()
    218218{
    219     static String& styleSpanClassString = *new String(AppleStyleSpanClass);
     219    static String styleSpanClassString = AppleStyleSpanClass;
    220220    return styleSpanClassString;
    221221}
  • trunk/WebCore/editing/HTMLInterchange.cpp

    r38189 r38202  
    3737String convertedSpaceString()
    3838{
    39     static String& convertedSpaceString = *new String;
     39    static String convertedSpaceString;
    4040    if (convertedSpaceString.isNull()) {
    4141        convertedSpaceString = "<span class=\"";
  • trunk/WebCore/editing/IndentOutdentCommand.cpp

    r38189 r38202  
    4444static String indentBlockquoteString()
    4545{
    46     static String& string = *new String("webkit-indent-blockquote");
     46    static String string = "webkit-indent-blockquote";
    4747    return string;
    4848}
  • trunk/WebCore/editing/ReplaceSelectionCommand.cpp

    r38189 r38202  
    9090static bool isInterchangeNewlineNode(const Node *node)
    9191{
    92     static String& interchangeNewlineClassString = *new String(AppleInterchangeNewline);
     92    static String interchangeNewlineClassString(AppleInterchangeNewline);
    9393    return node && node->hasTagName(brTag) &&
    9494           static_cast<const Element *>(node)->getAttribute(classAttr) == interchangeNewlineClassString;
     
    9797static bool isInterchangeConvertedSpaceSpan(const Node *node)
    9898{
    99     static String& convertedSpaceSpanClassString = *new String(AppleConvertedSpace);
     99    static String convertedSpaceSpanClassString(AppleConvertedSpace);
    100100    return node->isHTMLElement() &&
    101101           static_cast<const HTMLElement *>(node)->getAttribute(classAttr) == convertedSpaceSpanClassString;
  • trunk/WebCore/editing/htmlediting.cpp

    r38189 r38202  
    365365String stringWithRebalancedWhitespace(const String& string, bool startIsStartOfParagraph, bool endIsEndOfParagraph)
    366366{
    367     static String& twoSpaces = *new String("  ");
    368     static String& nbsp = *new String("\xa0");
    369     static String& pattern = *new String(" \xa0");
     367    static String twoSpaces("  ");
     368    static String nbsp("\xa0");
     369    static String pattern(" \xa0");
    370370
    371371    String rebalancedString = string;
     
    394394const String& nonBreakingSpaceString()
    395395{
    396     static String& nonBreakingSpaceString = *new String(&noBreakSpace, 1);
     396    static String nonBreakingSpaceString = String(&noBreakSpace, 1);
    397397    return nonBreakingSpaceString;
    398398}
  • trunk/WebCore/editing/markup.cpp

    r38189 r38202  
    9595    unsigned lastCopiedFrom = 0;
    9696
    97     static const String& ampEntity = *new String("&amp;");
    98     static const String& gtEntity = *new String("&gt;");
    99     static const String& ltEntity = *new String("&lt;");
    100     static const String& quotEntity = *new String("&quot;");
    101     static const String& nbspEntity = *new String("&nbsp;");
     97    static const String ampEntity("&amp;");
     98    static const String gtEntity("&gt;");
     99    static const String ltEntity("&lt;");
     100    static const String quotEntity("&quot;");
     101    static const String nbspEntity("&nbsp;");
    102102   
    103103    for (unsigned i = 0; i < len; ++i) {
     
    143143    unsigned lastCopiedFrom = 0;
    144144   
    145     static const String& ampEntity = *new String("&amp;");
    146     static const String& gtEntity = *new String("&gt;");
    147     static const String& ltEntity = *new String("&lt;");
    148     static const String& nbspEntity = *new String("&nbsp;");
     145    static const String ampEntity("&amp;");
     146    static const String gtEntity("&gt;");
     147    static const String ltEntity("&lt;");
     148    static const String nbspEntity("&nbsp;");
    149149
    150150    for (unsigned i = 0; i < len; ++i) {
     
    317317{
    318318    // Don't add namespace attributes twice
    319     static const AtomicString& xmlnsURI = *new AtomicString("http://www.w3.org/2000/xmlns/");
    320     static const QualifiedName& xmlnsAttr = *new QualifiedName(nullAtom, "xmlns", xmlnsURI);
     319    static const AtomicString xmlnsURI = "http://www.w3.org/2000/xmlns/";
     320    static const QualifiedName xmlnsAttr(nullAtom, "xmlns", xmlnsURI);
    321321    if (attr->name() == xmlnsAttr) {
    322322        namespaces.set(emptyAtom.impl(), attr->value().impl());
     
    343343    if (foundNS != ns.impl()) {
    344344        namespaces.set(pre, ns.impl());
    345         static const String& xmlns = *new String("xmlns");
     345        static const String xmlns("xmlns");
    346346        result.append(' ');
    347347        append(result, xmlns);
     
    502502                    style->setProperty(CSSPropertyDisplay, CSSValueInline, true);
    503503                if (style->length() > 0) {
    504                     static const String& stylePrefix = *new String(" style=\"");
     504                    static const String stylePrefix(" style=\"");
    505505                    append(result, stylePrefix);
    506506                    appendAttributeValue(result, style->cssText(), documentIsHTML);
     
    703703String createMarkup(const Range* range, Vector<Node*>* nodes, EAnnotateForInterchange annotate, bool convertBlocksToInlines)
    704704{
    705     static const String& interchangeNewlineString = *new String("<br class=\"" AppleInterchangeNewline "\">");
     705    static const String interchangeNewlineString = String("<br class=\"") + AppleInterchangeNewline + "\">";
    706706
    707707    if (!range)
     
    906906                if (style->length()) {
    907907                    Vector<UChar> openTag;
    908                     static const String& divStyle = *new String("<div style=\"");
     908                    static const String divStyle("<div style=\"");
    909909                    append(openTag, divStyle);
    910910                    appendAttributeValue(openTag, style->cssText(), documentIsHTML);
     
    913913                    preMarkups.append(String::adopt(openTag));
    914914
    915                     static const String& divCloseTag = *new String("</div>");
     915                    static const String divCloseTag("</div>");
    916916                    markups.append(divCloseTag);
    917917                }
     
    930930    }
    931931   
    932     static const String& styleSpanOpen = *new String("<span class=\"" AppleStyleSpanClass "\" style=\"");
    933     static const String& styleSpanClose = *new String("</span>");
     932    static const String styleSpanOpen = String("<span class=\"" AppleStyleSpanClass "\" style=\"");
     933    static const String styleSpanClose("</span>");
    934934   
    935935    // Add a wrapper span with the styles that all of the nodes in the markup inherit.
  • trunk/WebCore/html/HTMLButtonElement.cpp

    r38189 r38202  
    5858    switch (m_type) {
    5959        case SUBMIT: {
    60             static const AtomicString& submit = *new AtomicString("submit");
     60            static const AtomicString submit("submit");
    6161            return submit;
    6262        }
    6363        case BUTTON: {
    64             static const AtomicString& button = *new AtomicString("button");
     64            static const AtomicString button("button");
    6565            return button;
    6666        }
    6767        case RESET: {
    68             static const AtomicString& reset = *new AtomicString("reset");
     68            static const AtomicString reset("reset");
    6969            return reset;
    7070        }
  • trunk/WebCore/html/HTMLElement.cpp

    r38189 r38202  
    809809bool HTMLElement::isRecognizedTagName(const QualifiedName& tagName)
    810810{
    811     static HashSet<AtomicStringImpl*>& tagList = *new HashSet<AtomicStringImpl*>;
     811    static HashSet<AtomicStringImpl*> tagList;
    812812    if (tagList.isEmpty()) {
    813813        size_t tagCount = 0;
     
    823823HashSet<AtomicStringImpl*>* inlineTagList()
    824824{
    825     static HashSet<AtomicStringImpl*>& tagList = *new HashSet<AtomicStringImpl*>;
     825    static HashSet<AtomicStringImpl*> tagList;
    826826    if (tagList.isEmpty()) {
    827827        tagList.add(ttTag.localName().impl());
     
    882882HashSet<AtomicStringImpl*>* blockTagList()
    883883{
    884     static HashSet<AtomicStringImpl*>& tagList = *new HashSet<AtomicStringImpl*>;
     884    static HashSet<AtomicStringImpl*> tagList;
    885885    if (tagList.isEmpty()) {
    886886        tagList.add(addressTag.localName().impl());
  • trunk/WebCore/html/HTMLFieldSetElement.cpp

    r38189 r38202  
    5656const AtomicString& HTMLFieldSetElement::type() const
    5757{
    58     static const AtomicString& fieldset = *new AtomicString("fieldset");
     58    static const AtomicString fieldset("fieldset");
    5959    return fieldset;
    6060}
  • trunk/WebCore/html/HTMLInputElement.cpp

    r38193 r38202  
    374374    switch (inputType()) {
    375375        case BUTTON: {
    376             static const AtomicString& button = *new AtomicString("button");
     376            static const AtomicString button("button");
    377377            return button;
    378378        }
    379379        case CHECKBOX: {
    380             static const AtomicString& checkbox = *new AtomicString("checkbox");
     380            static const AtomicString checkbox("checkbox");
    381381            return checkbox;
    382382        }
    383383        case FILE: {
    384             static const AtomicString& file = *new AtomicString("file");
     384            static const AtomicString file("file");
    385385            return file;
    386386        }
    387387        case HIDDEN: {
    388             static const AtomicString& hidden = *new AtomicString("hidden");
     388            static const AtomicString hidden("hidden");
    389389            return hidden;
    390390        }
    391391        case IMAGE: {
    392             static const AtomicString& image = *new AtomicString("image");
     392            static const AtomicString image("image");
    393393            return image;
    394394        }
     
    396396            return emptyAtom;
    397397        case PASSWORD: {
    398             static const AtomicString& password = *new AtomicString("password");
     398            static const AtomicString password("password");
    399399            return password;
    400400        }
    401401        case RADIO: {
    402             static const AtomicString& radio = *new AtomicString("radio");
     402            static const AtomicString radio("radio");
    403403            return radio;
    404404        }
    405405        case RANGE: {
    406             static const AtomicString& range = *new AtomicString("range");
     406            static const AtomicString range("range");
    407407            return range;
    408408        }
    409409        case RESET: {
    410             static const AtomicString& reset = *new AtomicString("reset");
     410            static const AtomicString reset("reset");
    411411            return reset;
    412412        }
    413413        case SEARCH: {
    414             static const AtomicString& search = *new AtomicString("search");
     414            static const AtomicString search("search");
    415415            return search;
    416416        }
    417417        case SUBMIT: {
    418             static const AtomicString& submit = *new AtomicString("submit");
     418            static const AtomicString submit("submit");
    419419            return submit;
    420420        }
    421421        case TEXT: {
    422             static const AtomicString& text = *new AtomicString("text");
     422            static const AtomicString text("text");
    423423            return text;
    424424        }
  • trunk/WebCore/html/HTMLKeygenElement.cpp

    r38189 r38202  
    5757const AtomicString& HTMLKeygenElement::type() const
    5858{
    59     static const AtomicString& keygen = *new AtomicString("keygen");
     59    static const AtomicString keygen("keygen");
    6060    return keygen;
    6161}
  • trunk/WebCore/html/HTMLLegendElement.cpp

    r38189 r38202  
    5959const AtomicString& HTMLLegendElement::type() const
    6060{
    61     static const AtomicString& legend = *new AtomicString("legend");
     61    static const AtomicString legend("legend");
    6262    return legend;
    6363}
  • trunk/WebCore/html/HTMLOptGroupElement.cpp

    r38189 r38202  
    5050const AtomicString& HTMLOptGroupElement::type() const
    5151{
    52     static const AtomicString& optgroup = *new AtomicString("optgroup");
     52    static const AtomicString optgroup("optgroup");
    5353    return optgroup;
    5454}
  • trunk/WebCore/html/HTMLOptionElement.cpp

    r38189 r38202  
    7474const AtomicString& HTMLOptionElement::type() const
    7575{
    76     static const AtomicString& option = *new AtomicString("option");
     76    static const AtomicString option("option");
    7777    return option;
    7878}
  • trunk/WebCore/html/HTMLParser.cpp

    r38189 r38202  
    833833{
    834834    // Init our error handling table.
    835     static FunctionMap& gFunctionMap = *new FunctionMap;
     835    static FunctionMap gFunctionMap;
    836836    if (gFunctionMap.isEmpty()) {
    837837        gFunctionMap.set(aTag.localName().impl(), &HTMLParser::nestedCreateErrorCheck);
     
    944944bool HTMLParser::isHeaderTag(const AtomicString& tagName)
    945945{
    946     static HashSet<AtomicStringImpl*>& headerTags = *new HashSet<AtomicStringImpl*>;
     946    static HashSet<AtomicStringImpl*> headerTags;
    947947    if (headerTags.isEmpty()) {
    948948        headerTags.add(h1Tag.localName().impl());
     
    987987bool HTMLParser::isResidualStyleTag(const AtomicString& tagName)
    988988{
    989     static HashSet<AtomicStringImpl*>& residualStyleTags = *new HashSet<AtomicStringImpl*>;
     989    static HashSet<AtomicStringImpl*> residualStyleTags;
    990990    if (residualStyleTags.isEmpty()) {
    991991        residualStyleTags.add(aTag.localName().impl());
     
    10141014bool HTMLParser::isAffectedByResidualStyle(const AtomicString& tagName)
    10151015{
    1016     static HashSet<AtomicStringImpl*>& unaffectedTags = *new HashSet<AtomicStringImpl*>;
     1016    static HashSet<AtomicStringImpl*> unaffectedTags;
    10171017    if (unaffectedTags.isEmpty()) {
    10181018        unaffectedTags.add(bodyTag.localName().impl());
  • trunk/WebCore/html/HTMLSelectElement.cpp

    r38189 r38202  
    115115const AtomicString& HTMLSelectElement::type() const
    116116{
    117     static const AtomicString& selectMultiple = *new AtomicString("select-multiple");
    118     static const AtomicString& selectOne = *new AtomicString("select-one");
     117    static const AtomicString selectMultiple("select-multiple");
     118    static const AtomicString selectOne("select-one");
    119119    return m_multiple ? selectMultiple : selectOne;
    120120}
  • trunk/WebCore/html/HTMLTextAreaElement.cpp

    r38189 r38202  
    6060const AtomicString& HTMLTextAreaElement::type() const
    6161{
    62     static const AtomicString& textarea = *new AtomicString("textarea");
     62    static const AtomicString textarea("textarea");
    6363    return textarea;
    6464}
  • trunk/WebCore/inspector/InspectorController.cpp

    r38189 r38202  
    863863#if PLATFORM(MAC)
    864864#ifdef BUILDING_ON_TIGER
    865     static const String& platform = *new String("mac-tiger");
     865    static const String platform = "mac-tiger";
    866866#else
    867     static const String& platform = *new String("mac-leopard");
     867    static const String platform = "mac-leopard";
    868868#endif
    869869#elif PLATFORM(WIN_OS)
    870     static const String& platform = *new String("windows");
     870    static const String platform = "windows";
    871871#elif PLATFORM(QT)
    872     static const String& platform = *new String("qt");
     872    static const String platform = "qt";
    873873#elif PLATFORM(GTK)
    874     static const String& platform = *new String("gtk");
     874    static const String platform = "gtk";
    875875#elif PLATFORM(WX)
    876     static const String& platform = *new String("wx");
     876    static const String platform = "wx";
    877877#else
    878     static const String& platform = *new String("unknown");
     878    static const String platform = "unknown";
    879879#endif
    880880
  • trunk/WebCore/inspector/JavaScriptDebugServer.cpp

    r38189 r38202  
    6060JavaScriptDebugServer& JavaScriptDebugServer::shared()
    6161{
    62     static JavaScriptDebugServer& server = *new JavaScriptDebugServer;
     62    static JavaScriptDebugServer server;
    6363    return server;
    6464}
  • trunk/WebCore/inspector/JavaScriptProfile.cpp

    r38189 r38202  
    4646static ProfileMap& profileCache()
    4747{
    48     static ProfileMap& staticProfiles = *new ProfileMap;
     48    static ProfileMap staticProfiles;
    4949    return staticProfiles;
    5050}
  • trunk/WebCore/inspector/JavaScriptProfileNode.cpp

    r38189 r38202  
    4747static ProfileNodeMap& profileNodeCache()
    4848{
    49     static ProfileNodeMap& staticProfileNodes = *new ProfileNodeMap;
     49    static ProfileNodeMap staticProfileNodes;
    5050    return staticProfileNodes;
    5151}
  • trunk/WebCore/loader/FrameLoader.cpp

    r38201 r38202  
    11731173static HashSet<String, CaseFoldingHash>& localSchemes()
    11741174{
    1175     static HashSet<String, CaseFoldingHash>& localSchemes = *new HashSet<String, CaseFoldingHash>;
     1175    static HashSet<String, CaseFoldingHash> localSchemes;
    11761176
    11771177    if (localSchemes.isEmpty()) {
  • trunk/WebCore/loader/appcache/ApplicationCacheStorage.cpp

    r38189 r38202  
    654654ApplicationCacheStorage& cacheStorage()
    655655{
    656     static ApplicationCacheStorage& storage = *new ApplicationCacheStorage;
     656    static ApplicationCacheStorage storage;
    657657   
    658658    return storage;
  • trunk/WebCore/loader/archive/ArchiveFactory.cpp

    r38189 r38202  
    5252static HashMap<String, RawDataCreationFunction*, CaseFoldingHash>& archiveMIMETypes()
    5353{
    54     static HashMap<String, RawDataCreationFunction*, CaseFoldingHash>& mimeTypes = *new HashMap<String, RawDataCreationFunction*, CaseFoldingHash>;
     54    static HashMap<String, RawDataCreationFunction*, CaseFoldingHash> mimeTypes;
    5555    static bool initialized = false;
    5656   
  • trunk/WebCore/loader/icon/IconDatabase.cpp

    r38189 r38202  
    851851String IconDatabase::defaultDatabaseFilename()
    852852{
    853     static String& defaultDatabaseFilename = *new String("WebpageIcons.db");
     853    static String defaultDatabaseFilename = "WebpageIcons.db";
    854854    return defaultDatabaseFilename.copy();
    855855}
  • trunk/WebCore/page/EventHandler.cpp

    r38189 r38202  
    151151EventHandler::EventHandlerDragState& EventHandler::dragState()
    152152{
    153     static EventHandlerDragState& state = *new EventHandlerDragState;
     153    static EventHandlerDragState state;
    154154    return state;
    155155}
  • trunk/WebCore/page/Frame.cpp

    r38189 r38202  
    318318    // the same across calls.  We can't do that.
    319319
    320     static RegularExpression& wordRegExp = *new RegularExpression("\\w");
     320    static RegularExpression wordRegExp = RegularExpression("\\w");
    321321    String pattern("(");
    322322    unsigned int numLabels = labels.size();
     
    10121012static HashSet<Frame*>& keepAliveSet()
    10131013{
    1014     static HashSet<Frame*>& staticKeepAliveSet = *new HashSet<Frame*>;
     1014    static HashSet<Frame*> staticKeepAliveSet;
    10151015    return staticKeepAliveSet;
    10161016}
  • trunk/WebCore/page/Page.cpp

    r38189 r38202  
    233233const String& Page::groupName() const
    234234{
    235     static String& nullString = *new String;
     235    static String nullString;
    236236    return m_group ? m_group->name() : nullString;
    237237}
  • trunk/WebCore/page/SecurityOrigin.cpp

    r38189 r38202  
    4242        return false;
    4343
    44     static HashMap<String, unsigned>& defaultPorts = *new HashMap<String, unsigned>;
     44    static HashMap<String, unsigned> defaultPorts;
    4545    if (defaultPorts.isEmpty()) {
    4646        defaultPorts.set("http", 80);
     
    261261String SecurityOrigin::databaseIdentifier() const
    262262{
    263     static String& separatorString = *new String(&SeparatorCharacter, 1);
     263    static String separatorString = String(&SeparatorCharacter, 1);
    264264    return m_protocol + separatorString + m_host + separatorString + String::number(m_port);
    265265}
  • trunk/WebCore/page/mac/FrameMac.mm

    r38189 r38202  
    8989    static const unsigned int regExpCacheSize = 4;
    9090    static NSMutableArray* regExpLabels = nil;
    91     static Vector<RegularExpression*>& regExps = *new Vector<RegularExpression*>;
    92     static RegularExpression& wordRegExp = *new RegularExpression("\\w");
     91    static Vector<RegularExpression*> regExps;
     92    static RegularExpression wordRegExp = RegularExpression("\\w");
    9393
    9494    RegularExpression* result;
  • trunk/WebCore/platform/KURL.cpp

    r38189 r38202  
    15641564const KURL& blankURL()
    15651565{
    1566     static KURL& staticBlankURL = *new KURL("about:blank");
     1566    static KURL staticBlankURL("about:blank");
    15671567    return staticBlankURL;
    15681568}
  • trunk/WebCore/platform/graphics/FontCache.cpp

    r38189 r38202  
    125125{
    126126    // Alias Courier <-> Courier New
    127     static AtomicString& courier = *new AtomicString("Courier");
    128     static AtomicString& courierNew = *new AtomicString("Courier New");
     127    static AtomicString courier("Courier"), courierNew("Courier New");
    129128    if (equalIgnoringCase(familyName, courier))
    130129        return courierNew;
     
    133132
    134133    // Alias Times and Times New Roman.
    135     static AtomicString& times = *new AtomicString("Times");
    136     static AtomicString& timesNewRoman = *new AtomicString("Times New Roman");
     134    static AtomicString times("Times"), timesNewRoman("Times New Roman");
    137135    if (equalIgnoringCase(familyName, times))
    138136        return timesNewRoman;
     
    141139   
    142140    // Alias Arial and Helvetica
    143     static AtomicString& arial = *new AtomicString("Arial");
    144     static AtomicString& helvetica = *new AtomicString("Helvetica");
     141    static AtomicString arial("Arial"), helvetica("Helvetica");
    145142    if (equalIgnoringCase(familyName, arial))
    146143        return helvetica;
  • trunk/WebCore/platform/graphics/mac/FontCacheMac.mm

    r38189 r38202  
    141141        if (currFamily->family().length()) {
    142142            static String matchWords[3] = { String("Arabic"), String("Pashto"), String("Urdu") };
    143             static AtomicString& geezaStr = *new AtomicString("Geeza Pro");
     143            static AtomicString geezaStr("Geeza Pro");
    144144            for (int j = 0; j < 3 && !platformData; ++j)
    145145                if (currFamily->family().contains(matchWords[j], false))
     
    154154FontPlatformData* FontCache::getLastResortFallbackFont(const FontDescription& fontDescription)
    155155{
    156     static AtomicString& timesStr = *new AtomicString("Times");
    157     static AtomicString& lucidaGrandeStr = *new AtomicString("Lucida Grande");
     156    static AtomicString timesStr("Times");
     157    static AtomicString lucidaGrandeStr("Lucida Grande");
    158158
    159159    // FIXME: Would be even better to somehow get the user's default font here.  For now we'll pick
  • trunk/WebCore/platform/mac/ScrollbarThemeMac.mm

    r38189 r38202  
    8787ScrollbarTheme* ScrollbarTheme::nativeTheme()
    8888{
    89     static ScrollbarThemeMac& theme = *new ScrollbarThemeMac;
     89    static ScrollbarThemeMac theme;
    9090    return &theme;
    9191}
  • trunk/WebCore/platform/mac/ThemeMac.mm

    r38189 r38202  
    4747Theme* platformTheme()
    4848{
    49     static ThemeMac& themeMac = *new ThemeMac;
     49    static ThemeMac themeMac;
    5050    return &themeMac;
    5151}
  • trunk/WebCore/platform/mac/ThreadCheck.mm

    r38189 r38202  
    8080{
    8181    using namespace WebCore;
    82     static HashSet<String>& loggedFunctions = *new HashSet<String>;
     82    static HashSet<String> loggedFunctions;
    8383    switch (threadViolationBehavior) {
    8484        case NoThreadCheck:
  • trunk/WebCore/platform/network/NetworkStateNotifier.cpp

    r38189 r38202  
    3333NetworkStateNotifier& networkStateNotifier()
    3434{
    35     static NetworkStateNotifier& networkStateNotifier = *new NetworkStateNotifier;
     35    static NetworkStateNotifier networkStateNotifier;
    3636   
    3737    return networkStateNotifier;
  • trunk/WebCore/platform/network/mac/FormDataStreamMac.mm

    r38189 r38202  
    5050static StreamFormDataMap& getStreamFormDataMap()
    5151{
    52     static StreamFormDataMap& streamFormDataMap = *new StreamFormDataMap;
     52    static StreamFormDataMap streamFormDataMap;
    5353    return streamFormDataMap;
    5454}
     
    5757static StreamResourceHandleMap& getStreamResourceHandleMap()
    5858{
    59     static StreamResourceHandleMap& streamResourceHandleMap = *new StreamResourceHandleMap;
     59    static StreamResourceHandleMap streamResourceHandleMap;
    6060    return streamResourceHandleMap;
    6161}
  • trunk/WebCore/platform/network/mac/ResourceResponseMac.mm

    r38189 r38202  
    100100        if (m_url.isLocalFile() && m_mimeType == "text/html") {
    101101            const String& path = m_url.path();
    102             static const String& xhtmlExt = *new String(".xhtml");
     102            static const String xhtmlExt(".xhtml");
    103103            if (path.endsWith(xhtmlExt, false))
    104104                m_mimeType = "application/xhtml+xml";
  • trunk/WebCore/platform/text/TextEncoding.cpp

    r38189 r38202  
    123123        return false;
    124124
    125     static HashSet<const char*>& set = *new HashSet<const char*>;
     125    static HashSet<const char*> set;
    126126    if (set.isEmpty()) {
    127127        addEncodingName(set, "x-mac-japanese");
  • trunk/WebCore/rendering/RenderBlock.cpp

    r38189 r38202  
    17991799HashMap<RenderBlock*, RenderFlowSequencedSet*>* continuationOutlineTable()
    18001800{
    1801     static HashMap<RenderBlock*, RenderFlowSequencedSet*>& table = *new HashMap<RenderBlock*, RenderFlowSequencedSet*>;
     1801    static HashMap<RenderBlock*, RenderFlowSequencedSet*> table;
    18021802    return &table;
    18031803}
  • trunk/WebCore/rendering/RenderCounter.cpp

    r38189 r38202  
    4242static CounterMaps& counterMaps()
    4343{
    44     static CounterMaps& staticCounterMaps = *new CounterMaps;
     44    static CounterMaps staticCounterMaps;
    4545    return staticCounterMaps;
    4646}
  • trunk/WebCore/rendering/RenderFlexibleBox.cpp

    r38189 r38202  
    778778
    779779                const UChar ellipsisAndSpace[2] = { horizontalEllipsis, ' ' };
    780                 static AtomicString& ellipsisAndSpaceStr = *new AtomicString(ellipsisAndSpace, 2);
     780                static AtomicString ellipsisAndSpaceStr(ellipsisAndSpace, 2);
    781781
    782782                const Font& font = style(numVisibleLines == 1)->font();
  • trunk/WebCore/rendering/RenderListItem.cpp

    r38189 r38202  
    290290    if (m_marker)
    291291        return m_marker->text();
    292     static String& staticNullString = *new String;
     292    static String staticNullString;
    293293    return staticNullString;
    294294}
  • trunk/WebCore/rendering/RenderScrollbarTheme.cpp

    r38189 r38202  
    3232RenderScrollbarTheme* RenderScrollbarTheme::renderScrollbarTheme()
    3333{
    34     static RenderScrollbarTheme& theme = *new RenderScrollbarTheme;
     34    static RenderScrollbarTheme theme;
    3535    return &theme;
    3636}
  • trunk/WebCore/rendering/RenderThemeMac.mm

    r38189 r38202  
    169169void RenderThemeMac::systemFont(int cssValueId, FontDescription& fontDescription) const
    170170{
    171     static FontDescription& systemFont = *new FontDescription;
    172     static FontDescription& smallSystemFont = *new FontDescription;
    173     static FontDescription& menuFont = *new FontDescription;
    174     static FontDescription& labelFont = *new FontDescription;
    175     static FontDescription& miniControlFont = *new FontDescription;
    176     static FontDescription& smallControlFont = *new FontDescription;
    177     static FontDescription& controlFont = *new FontDescription;
     171    static FontDescription systemFont;
     172    static FontDescription smallSystemFont;
     173    static FontDescription menuFont;
     174    static FontDescription labelFont;
     175    static FontDescription miniControlFont;
     176    static FontDescription smallControlFont;
     177    static FontDescription controlFont;
    178178
    179179    FontDescription* cachedDesc;
  • trunk/WebCore/rendering/bidi.cpp

    r38189 r38202  
    21932193    // FIXME: CSS3 says this is configurable, also need to use 0x002E (FULL STOP) if horizontal ellipsis is "not renderable"
    21942194    TextRun ellipsisRun(&horizontalEllipsis, 1);
    2195     static AtomicString& ellipsisStr = *new AtomicString(&horizontalEllipsis, 1);
     2195    static AtomicString ellipsisStr(&horizontalEllipsis, 1);
    21962196    const Font& firstLineFont = firstLineStyle()->font();
    21972197    const Font& font = style()->font();
  • trunk/WebCore/rendering/style/RenderStyle.cpp

    r38189 r38202  
    721721const Vector<StyleDashboardRegion>& RenderStyle::initialDashboardRegions()
    722722{
    723     static Vector<StyleDashboardRegion>& emptyList = *new Vector<StyleDashboardRegion>;
     723    static Vector<StyleDashboardRegion> emptyList;
    724724    return emptyList;
    725725}
     
    727727const Vector<StyleDashboardRegion>& RenderStyle::noneDashboardRegions()
    728728{
    729     static Vector<StyleDashboardRegion>& noneList = *new Vector<StyleDashboardRegion>;
     729    static Vector<StyleDashboardRegion> noneList;
    730730    static bool noneListInitialized = false;
    731731
  • trunk/WebCore/storage/LocalStorage.cpp

    r38189 r38202  
    4343static LocalStorageMap& localStorageMap()
    4444{
    45     static LocalStorageMap& localStorageMap = *new LocalStorageMap;
     45    static LocalStorageMap localStorageMap;
    4646    return localStorageMap;
    4747}
  • trunk/WebCore/svg/SVGAnimateMotionElement.cpp

    r38189 r38202  
    9292SVGAnimateMotionElement::RotateMode SVGAnimateMotionElement::rotateMode() const
    9393{
    94     static const AtomicString& autoVal = *new AtomicString("auto");
    95     static const AtomicString& autoReverse = *new AtomicString("auto-reverse");
     94    static const AtomicString autoVal("auto");
     95    static const AtomicString autoReverse("auto-reverse");
    9696    String rotate = getAttribute(SVGNames::rotateAttr);
    9797    if (rotate == autoVal)
  • trunk/WebCore/svg/SVGAnimationElement.cpp

    r38189 r38202  
    197197SVGAnimationElement::CalcMode SVGAnimationElement::calcMode() const
    198198{   
    199     static const AtomicString& discrete = *new AtomicString("discrete");
    200     static const AtomicString& linear = *new AtomicString("linear");
    201     static const AtomicString& paced = *new AtomicString("paced");
    202     static const AtomicString& spline = *new AtomicString("spline");
     199    static const AtomicString discrete("discrete");
     200    static const AtomicString linear("linear");
     201    static const AtomicString paced("paced");
     202    static const AtomicString spline("spline");
    203203    const AtomicString& value = getAttribute(SVGNames::calcModeAttr);
    204204    if (value == discrete)
     
    215215SVGAnimationElement::AttributeType SVGAnimationElement::attributeType() const
    216216{   
    217     static const AtomicString& css = *new AtomicString("CSS");
    218     static const AtomicString& xml = *new AtomicString("XML");
     217    static const AtomicString css("CSS");
     218    static const AtomicString xml("XML");
    219219    const AtomicString& value = getAttribute(SVGNames::attributeTypeAttr);
    220220    if (value == css)
     
    242242bool SVGAnimationElement::isAdditive() const
    243243{
    244     static const AtomicString& sum = *new AtomicString("sum");
     244    static const AtomicString sum("sum");
    245245    const AtomicString& value = getAttribute(SVGNames::additiveAttr);
    246246    return value == sum || animationMode() == ByAnimation;
     
    249249bool SVGAnimationElement::isAccumulated() const
    250250{
    251     static const AtomicString& sum = *new AtomicString("sum");
     251    static const AtomicString sum("sum");
    252252    const AtomicString& value = getAttribute(SVGNames::accumulateAttr);
    253253    return value == sum && animationMode() != ToAnimation;
  • trunk/WebCore/svg/SVGLangSpace.cpp

    r38189 r38202  
    5252{
    5353    if (!m_space) {
    54         static const AtomicString& defaultString = *new AtomicString("default");
     54        static const AtomicString defaultString("default");
    5555        return defaultString;
    5656    }
  • trunk/WebCore/svg/SVGSVGElement.cpp

    r38189 r38202  
    9090const AtomicString& SVGSVGElement::contentScriptType() const
    9191{
    92     static const AtomicString& defaultValue = *new AtomicString("text/ecmascript");
     92    static const AtomicString defaultValue("text/ecmascript");
    9393    const AtomicString& n = getAttribute(contentScriptTypeAttr);
    9494    return n.isNull() ? defaultValue : n;
     
    102102const AtomicString& SVGSVGElement::contentStyleType() const
    103103{
    104     static const AtomicString& defaultValue = *new AtomicString("text/css");
     104    static const AtomicString defaultValue("text/css");
    105105    const AtomicString& n = getAttribute(contentStyleTypeAttr);
    106106    return n.isNull() ? defaultValue : n;
  • trunk/WebCore/svg/SVGStyleElement.cpp

    r38189 r38202  
    5454const AtomicString& SVGStyleElement::type() const
    5555{
    56     static const AtomicString& defaultValue = *new AtomicString("text/css");
     56    static const AtomicString defaultValue("text/css");
    5757    const AtomicString& n = getAttribute(typeAttr);
    5858    return n.isNull() ? defaultValue : n;
     
    6666const AtomicString& SVGStyleElement::media() const
    6767{
    68     static const AtomicString& defaultValue = *new AtomicString("all");
     68    static const AtomicString defaultValue("all");
    6969    const AtomicString& n = getAttribute(mediaAttr);
    7070    return n.isNull() ? defaultValue : n;
  • trunk/WebCore/svg/SVGTextContentElement.cpp

    r38189 r38202  
    499499        if (SVGLangSpace::parseMappedAttribute(attr)) {
    500500            if (attr->name().matches(XMLNames::spaceAttr)) {
    501                 static const AtomicString& preserveString = *new AtomicString("preserve");
     501                static const AtomicString preserveString("preserve");
    502502
    503503                if (attr->value() == preserveString)
  • trunk/WebCore/svg/animation/SVGSMILElement.cpp

    r38189 r38202  
    194194    String parse = data.stripWhiteSpace();
    195195
    196     static const AtomicString& indefiniteValue = *new AtomicString("indefinite");
     196    static const AtomicString indefiniteValue("indefinite");
    197197    if (parse == indefiniteValue)
    198198        return SMILTime::indefinite();
     
    458458SVGSMILElement::Restart SVGSMILElement::restart() const
    459459{   
    460     static const AtomicString& never = *new AtomicString("never");
    461     static const AtomicString& whenNotActive = *new AtomicString("whenNotActive");
     460    static const AtomicString never("never");
     461    static const AtomicString whenNotActive("whenNotActive");
    462462    const AtomicString& value = getAttribute(SVGNames::restartAttr);
    463463    if (value == never)
     
    470470SVGSMILElement::FillMode SVGSMILElement::fill() const
    471471{   
    472     static const AtomicString& freeze = *new AtomicString("freeze");
     472    static const AtomicString freeze("freeze");
    473473    const AtomicString& value = getAttribute(SVGNames::fillAttr);
    474474    return value == freeze ? FillFreeze : FillRemove;
     
    507507        return SMILTime::unresolved();
    508508
    509     static const AtomicString& indefiniteValue = *new AtomicString("indefinite");
     509    static const AtomicString indefiniteValue("indefinite");
    510510    if (value == indefiniteValue)
    511511        return SMILTime::indefinite();
     
    862862{
    863863    ASSERT(m_intervalBegin.isFinite());
    864     static HashSet<SVGSMILElement*>& loopBreaker = *new HashSet<SVGSMILElement*>;
     864    static HashSet<SVGSMILElement*> loopBreaker;
    865865    if (loopBreaker.contains(this))
    866866        return;
  • trunk/WebCore/svg/graphics/SVGResource.cpp

    r38189 r38202  
    4949
    5050static HashMap<SVGStyledElement*, ResourceSet*>& clientMap() {
    51     static HashMap<SVGStyledElement*, ResourceSet*>& map = *new HashMap<SVGStyledElement*, ResourceSet*>;
     51    static HashMap<SVGStyledElement*, ResourceSet*> map;
    5252    return map;
    5353}
  • trunk/WebCore/svg/graphics/SVGResourceMarker.cpp

    r38189 r38202  
    6666        return;
    6767
    68     static HashSet<SVGResourceMarker*>& currentlyDrawingMarkers = *new HashSet<SVGResourceMarker*>;
     68    static HashSet<SVGResourceMarker*> currentlyDrawingMarkers;
    6969
    7070    // avoid drawing circular marker references
  • trunk/WebCore/xml/XMLHttpRequest.cpp

    r38189 r38202  
    7474static PreflightResultCache& preflightResultCache()
    7575{
    76     static PreflightResultCache& cache = *new PreflightResultCache;
     76    static PreflightResultCache cache;
    7777    return cache;
    7878}
     
    8989static bool isSafeRequestHeader(const String& name)
    9090{
    91     static HashSet<String, CaseFoldingHash>& forbiddenHeaders = *new HashSet<String, CaseFoldingHash>;
    92     static String& proxyString = *new String("proxy-");
    93     static String& secString = *new String("sec-");
     91    static HashSet<String, CaseFoldingHash> forbiddenHeaders;
     92    static String proxyString("proxy-");
     93    static String secString("sec-");
    9494   
    9595    if (forbiddenHeaders.isEmpty()) {
     
    122122static bool isOnAccessControlResponseHeaderWhitelist(const String& name)
    123123{
    124     static HashSet<String, CaseFoldingHash>& allowedHeaders = *new HashSet<String, CaseFoldingHash>;
     124    static HashSet<String, CaseFoldingHash> allowedHeaders;
    125125    if (allowedHeaders.isEmpty()) {
    126126        allowedHeaders.add("cache-control");
  • trunk/WebCore/xml/XPathExpressionNode.cpp

    r38189 r38202  
    3838EvaluationContext& Expression::evaluationContext()
    3939{
    40     static EvaluationContext& evaluationContext = *new EvaluationContext;
     40    static EvaluationContext evaluationContext;
    4141    return evaluationContext;
    4242}
  • trunk/WebCore/xml/XPathParser.cpp

    r38189 r38202  
    9898static bool isAxisName(const String& name, Step::Axis& type)
    9999{
    100     static HashMap<String, Step::Axis>& axisNames = *new HashMap<String, Step::Axis>;
     100    static HashMap<String, Step::Axis> axisNames;
    101101
    102102    if (axisNames.isEmpty())
     
    112112static bool isNodeTypeName(const String& name)
    113113{
    114     static HashSet<String>& nodeTypeNames = *new HashSet<String>;
     114    static HashSet<String> nodeTypeNames;
    115115    if (nodeTypeNames.isEmpty()) {
    116116        nodeTypeNames.add("comment");
  • trunk/WebCore/xml/XPathValue.cpp

    r38189 r38202  
    4646{
    4747    if (!m_data) {
    48         static NodeSet& emptyNodeSet = *new NodeSet;
     48        static NodeSet emptyNodeSet;
    4949        return emptyNodeSet;
    5050    }
  • trunk/WebKit/mac/ChangeLog

    r38194 r38202  
     12008-11-06  David Kilzer  <ddkilzer@apple.com>
     2
     3        BUILD FIX: Backed out r38189 since it apparently broke the world.
     4
    152008-11-06  John Sullivan  <sullivan@apple.com>
    26
  • trunk/WebKit/mac/History/WebBackForwardList.mm

    r38189 r38202  
    5252static HashMap<BackForwardList*, WebBackForwardList*>& backForwardLists()
    5353{
    54     static HashMap<BackForwardList*, WebBackForwardList*>& staticBackForwardLists = *new HashMap<BackForwardList*, WebBackForwardList*>;
     54    static HashMap<BackForwardList*, WebBackForwardList*> staticBackForwardLists;
    5555    return staticBackForwardLists;
    5656}
  • trunk/WebKit/mac/History/WebHistoryItem.mm

    r38189 r38202  
    7171HashMap<HistoryItem*, WebHistoryItem*>& historyItemWrappers()
    7272{
    73     static HashMap<HistoryItem*, WebHistoryItem*>& historyItemWrappers = *new HashMap<HistoryItem*, WebHistoryItem*>;
     73    static HashMap<HistoryItem*, WebHistoryItem*> historyItemWrappers;
    7474    return historyItemWrappers;
    7575}
  • trunk/WebKit/mac/Misc/WebStringTruncator.m

    r38189 r38202  
    5050{
    5151    static NSFont *currentFont;
    52     static Font& currentRenderer = *new Font;
     52    static Font currentRenderer;
    5353
    5454    if ([font isEqual:currentFont])
  • trunk/WebKit/mac/Plugins/WebBaseNetscapePluginStream.mm

    r38189 r38202  
    5656static StreamMap& streams()
    5757{
    58     static StreamMap& staticStreams = *new StreamMap;
     58    static StreamMap staticStreams;
    5959    return staticStreams;
    6060}
  • trunk/WebKit/mac/WebView/WebView.mm

    r38194 r38202  
    36073607        }
    36083608        else if (object->inherits(&JSArray::info)) {
    3609             static HashSet<JSObject*>& visitedElems = *new HashSet<JSObject*>;
     3609            static HashSet<JSObject*> visitedElems;
    36103610            if (!visitedElems.contains(object)) {
    36113611                visitedElems.add(object);
  • trunk/WebKitTools/ChangeLog

    r38200 r38202  
     12008-11-06  David Kilzer  <ddkilzer@apple.com>
     2
     3        BUILD FIX: Backed out r38189 since it apparently broke the world.
     4
    152008-11-06  Chris Fleizach  <cfleizach@apple.com>
    26
  • trunk/WebKitTools/Scripts/check-for-exit-time-destructors

    r38189 r38202  
    9696        next if $shortName eq "AccessibilityObject.o";
    9797        next if $shortName eq "AccessibilityRenderObject.o";
     98        next if $shortName eq "ApplicationCacheStorage.o";
     99        next if $shortName eq "ApplyStyleCommand.o";
     100        next if $shortName eq "ArchiveFactory.o";
     101        next if $shortName eq "CSSMutableStyleDeclaration.o";
     102        next if $shortName eq "CSSPrimitiveValue.o";
     103        next if $shortName eq "CSSSelector.o";
    98104        next if $shortName eq "CSSStyleSelector.o";
    99105        next if $shortName eq "CachedImage.o";
    100106        next if $shortName eq "ColorMac.o";
     107        next if $shortName eq "DOMImplementation.o";
     108        next if $shortName eq "Document.o";
     109        next if $shortName eq "EventHandler.o";
    101110        next if $shortName eq "EventHandlerMac.o";
    102111        next if $shortName eq "FTPDirectoryDocument.o";
    103112        next if $shortName eq "FontCache.o";
    104113        next if $shortName eq "FontCacheMac.o";
     114        next if $shortName eq "FormDataStreamMac.o";
     115        next if $shortName eq "Frame.o";
     116        next if $shortName eq "FrameLoader.o";
     117        next if $shortName eq "FrameMac.o";
     118        next if $shortName eq "GCController.o";
    105119        next if $shortName eq "GraphicsContextMac.o";
     120        next if $shortName eq "HTMLButtonElement.o";
     121        next if $shortName eq "HTMLElement.o";
     122        next if $shortName eq "HTMLFieldSetElement.o";
     123        next if $shortName eq "HTMLInputElement.o";
     124        next if $shortName eq "HTMLInterchange.o";
     125        next if $shortName eq "HTMLKeygenElement.o";
     126        next if $shortName eq "HTMLLegendElement.o";
     127        next if $shortName eq "HTMLOptGroupElement.o";
     128        next if $shortName eq "HTMLOptionElement.o";
     129        next if $shortName eq "HTMLParser.o";
     130        next if $shortName eq "HTMLSelectElement.o";
    106131        next if $shortName eq "HTMLTableElement.o";
     132        next if $shortName eq "HTMLTextAreaElement.o";
    107133        next if $shortName eq "IconDatabase.o";
    108134        next if $shortName eq "Image.o";
     135        next if $shortName eq "IndentOutdentCommand.o";
     136        next if $shortName eq "InspectorController.o";
     137        next if $shortName eq "JSDOMBinding.o";
    109138        next if $shortName eq "JSHTMLElementWrapperFactory.o";
     139        next if $shortName eq "JSInspectedObjectWrapper.o";
     140        next if $shortName eq "JSInspectorCallbackWrapper.o";
    110141        next if $shortName eq "JSSVGAnimatedLength.o";
    111142        next if $shortName eq "JSSVGAnimatedRect.o";
     
    113144        next if $shortName eq "JSSVGLength.o";
    114145        next if $shortName eq "JSSVGRect.o";
     146        next if $shortName eq "JavaScriptDebugServer.o";
     147        next if $shortName eq "JavaScriptProfile.o";
     148        next if $shortName eq "JavaScriptProfileNode.o";
     149        next if $shortName eq "KURL.o";
     150        next if $shortName eq "LocalStorage.o";
     151        next if $shortName eq "NetworkStateNotifier.o";
     152        next if $shortName eq "Page.o";
    115153        next if $shortName eq "PasteboardMac.o";
     154        next if $shortName eq "RenderBlock.o";
     155        next if $shortName eq "RenderCounter.o";
     156        next if $shortName eq "RenderFlexibleBox.o";
    116157        next if $shortName eq "RenderLayer.o";
     158        next if $shortName eq "RenderListItem.o";
     159        next if $shortName eq "RenderScrollbarTheme.o";
     160        next if $shortName eq "RenderStyle.o";
     161        next if $shortName eq "RenderThemeMac.o";
     162        next if $shortName eq "ReplaceSelectionCommand.o";
     163        next if $shortName eq "ResourceResponseMac.o";
     164        next if $shortName eq "SVGAnimateMotionElement.o";
     165        next if $shortName eq "SVGAnimationElement.o";
     166        next if $shortName eq "SVGLangSpace.o";
     167        next if $shortName eq "SVGResource.o";
     168        next if $shortName eq "SVGResourceMarker.o";
     169        next if $shortName eq "SVGSMILElement.o";
     170        next if $shortName eq "SVGSVGElement.o";
     171        next if $shortName eq "SVGStyleElement.o";
     172        next if $shortName eq "SVGTextContentElement.o";
     173        next if $shortName eq "ScriptElement.o";
    117174        next if $shortName eq "ScrollView.o";
     175        next if $shortName eq "ScrollbarThemeMac.o";
    118176        next if $shortName eq "SecurityOrigin.o";
    119177        next if $shortName eq "SimpleFontDataMac.o";
    120178        next if $shortName eq "StyleTransformData.o";
     179        next if $shortName eq "TextEncoding.o";
     180        next if $shortName eq "ThemeMac.o";
     181        next if $shortName eq "ThreadCheck.o";
     182        next if $shortName eq "XMLHttpRequest.o";
     183        next if $shortName eq "XPathExpressionNode.o";
     184        next if $shortName eq "XPathParser.o";
     185        next if $shortName eq "XPathValue.o";
     186        next if $shortName eq "bidi.o";
     187        next if $shortName eq "htmlediting.o";
     188        next if $shortName eq "markup.o";
     189        next if $shortName eq "runtime_root.o";
    121190    }
    122191
    123192    if ($target eq "WebKit") {
     193        next if $shortName eq "AccessibilityObject.o";
     194        next if $shortName eq "WebBackForwardList.o";
     195        next if $shortName eq "WebBaseNetscapePluginStream.o";
    124196        next if $shortName eq "WebHTMLRepresentation.o";
     197        next if $shortName eq "WebHistoryItem.o";
    125198        next if $shortName eq "WebNSPasteboardExtras.o";
    126199        next if $shortName eq "WebPasteboardHelper.o";
     200        next if $shortName eq "WebStringTruncator.o";
     201        next if $shortName eq "WebView.o";
    127202    }
    128203
Note: See TracChangeset for help on using the changeset viewer.