Changeset 41944 in webkit


Ignore:
Timestamp:
Mar 24, 2009 11:25:43 AM (15 years ago)
Author:
adele@apple.com
Message:

2009-03-24 Adele Peterson <adele@apple.com>

RS by Mark Rowe.

Only build these Mail quirks checks in on the Mac.

  • dom/Document.cpp: (WebCore::disableRangeMutation):
  • html/HTMLElement.cpp: (WebCore::HTMLElement::inEitherTagList):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r41943 r41944  
     12009-03-24  Adele Peterson  <adele@apple.com>
     2
     3        RS by Mark Rowe.
     4
     5        Only build these Mail quirks checks in on the Mac.
     6
     7        * dom/Document.cpp: (WebCore::disableRangeMutation):
     8        * html/HTMLElement.cpp: (WebCore::HTMLElement::inEitherTagList):
     9
    1102009-03-24  Brent Fulgham  <bfulgham@webkit.org>
    211
  • trunk/WebCore/dom/Document.cpp

    r41932 r41944  
    278278static bool disableRangeMutation(Page* page)
    279279{
     280#if PLATFORM(MAC)
    280281    // Disable Range mutation on document modifications in Tiger and Leopard Mail
    281282    // See <rdar://problem/5865171>
    282283    return page && (page->settings()->needsLeopardMailQuirks() || page->settings()->needsTigerMailQuirks());
     284#else
     285    return false;
     286#endif
    283287}
    284288
  • trunk/WebCore/html/HTMLElement.cpp

    r41926 r41944  
    922922        const HTMLElement* child = static_cast<const HTMLElement*>(newChild);
    923923        if (inlineTagList()->contains(child->tagQName().localName().impl())) {
     924#if PLATFORM(MAC)
    924925            if (child->tagQName().localName() == styleTag) {
    925926                // Leopard Mail doesn't expect <style> to be in the body of the document, so don't allow it in that case.
     
    929930                    return false;
    930931            }
     932#endif
    931933            return true;
    932934        }
Note: See TracChangeset for help on using the changeset viewer.