2009-03-24 Adele Peterson 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): 2009-03-24 Brent Fulgham Build fix, no review. Remove ResourceLoaderCFNet.cpp from build list for Cairo Releas and Debug targets. * WebCore.vcproj/WebCore.vcproj: 2009-03-24 Eric Carlson Fix layout tests broken by r41907. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::setReadyState): Don't set "was playing" based on the new ready state 2009-03-24 Dmitry Titov Reviewed by Dimitri Glazkov. https://bugs.webkit.org/show_bug.cgi?id=24689 Fix Chromium compilation errors. * bindings/v8/WorkerContextExecutionProxy.cpp: (WebCore::WorkerContextExecutionProxy::FindOrCreateEventListener): (WebCore::WorkerContextExecutionProxy::RemoveEventListener): 2009-03-24 Yury Semikhatsky Reviewed by Darin Adler. https://bugs.webkit.org/show_bug.cgi?id=24759 Add missing methods Element.prototype.removeMatchingStyleClasses and Node.prototype.enclosingNodeOrSelfWithNodeNameInArray to SourceFrame content iframe. These methods are called by Element.prototype.removeStyleClass and Node.prototype.enclosingNodeOrSelfWithNodeName. * inspector/front-end/SourceFrame.js: (WebInspector.SourceFrame.prototype._loaded): 2009-03-24 Mark Mentovai Reviewed by Mark Rowe. https://bugs.webkit.org/show_bug.cgi?id=24653 WebKit should be buildable without prefix header injection. Adds missing #includes and forward declarations as needed. * editing/SmartReplaceCF.cpp: * platform/graphics/mac/ColorMac.mm: * platform/graphics/mac/FontCacheMac.mm: * platform/graphics/mac/FontCustomPlatformData.h: * platform/graphics/mac/FontMac.mm: * platform/graphics/mac/FontMacATSUI.mm: * platform/graphics/mac/FontPlatformData.h: * platform/graphics/mac/FontPlatformDataMac.mm: * platform/graphics/mac/GraphicsContextMac.mm: * platform/graphics/mac/SimpleFontDataMac.mm: * platform/mac/FoundationExtras.h: * platform/mac/LocalCurrentGraphicsContext.h: * platform/mac/WebCoreSystemInterface.h: * platform/mac/WebCoreSystemInterface.mm: * platform/mac/WebCoreTextRenderer.h: * platform/mac/WebCoreTextRenderer.mm: * platform/mac/WebFontCache.h: * platform/mac/WebFontCache.mm: * platform/text/PlatformString.h: * platform/text/mac/ShapeArabic.c: * platform/text/mac/StringMac.mm: * rendering/RenderThemeChromiumMac.h: 2009-03-24 Dan Bernstein Reviewed by Darin Adler. - fix by capping the nesting depth of "block-level" elements generated by the parser Test: fast/parser/block-nesting-cap.html * html/HTMLParser.cpp: (WebCore::HTMLParser::HTMLParser): (WebCore::HTMLParser::insertNode): (WebCore::HTMLParser::pushBlock): (WebCore::HTMLParser::popOneBlockCommon): (WebCore::HTMLParser::freeBlock): * html/HTMLParser.h: 2009-03-23 Greg Bolsinga Reviewed by David Kilzer. https://bugs.webkit.org/show_bug.cgi?id=24771 DOMTimeStamps are based upon 1970. * platform/mac/GeolocationServiceMac.mm: (-[WebCoreCoreLocationObserver locationManager:didUpdateToLocation:fromLocation:]): 2009-03-23 Eric Seidel Build fix, no review. * rendering/RenderObject.cpp: (WebCore::RenderObject::createVisiblePosition): change .container to .isNotNull() 2009-03-23 Eric Seidel Reviewed by Darin Adler. Rename Position::container to m_anchorNode and make it private https://bugs.webkit.org/show_bug.cgi?id=24760 More code cleanup for Position. Change all uses of m_container to node() Eventually most uses of node() should change to anchorNode() to designate that it's the node the Position is anchored to, but not necessarily the container of the position (it could be the before/after neighbor). Remove any code which sets m_container, and change it to use a new Position::moveToPosition function which takes a node and offset. It never makes sense to change the node and leave the offset. * dom/Position.h: (WebCore::Position::Position): (WebCore::Position::clear): (WebCore::Position::anchorNode): (WebCore::Position::node): (WebCore::Position::moveToPosition): (WebCore::Position::moveToOffset): (WebCore::Position::isNull): (WebCore::Position::isNotNull): (WebCore::operator==): * dom/Range.cpp: (WebCore::Range::create): (WebCore::Range::compareBoundaryPoints): * dom/RangeBoundaryPoint.h: (WebCore::RangeBoundaryPoint::container): (WebCore::RangeBoundaryPoint::set): (WebCore::RangeBoundaryPoint::setOffset): (WebCore::RangeBoundaryPoint::setToChild): (WebCore::RangeBoundaryPoint::setToStart): (WebCore::RangeBoundaryPoint::setToEnd): 2009-03-17 Eric Seidel Reviewed by David Hyatt. document.write() should be able to make a document strict mode https://bugs.webkit.org/show_bug.cgi?id=24336 Remove an implicit write of "" on the first document.write call this was added as part of a KDE import http://trac.webkit.org/changeset/798 with no layout test or explanation. I can't think of any reason why an implicit write is necessary (or correct), so I'm removing it and adding a test for the correct behavior. The parser will add any necessary HTMLHTMLElements during the write() anyway. Our behavior is now tested by fast/dom/Document/document-write-doctype and matches IE, FF fails this new test. Mozilla bug filed: https://bugzilla.mozilla.org/show_bug.cgi?id=483908 * dom/Document.cpp: (WebCore::Document::write): 2009-03-23 Sam Weinig Reviewed by Dan Bernstein. Fix for Empty Caches does not clear the Cross-site XMLHttpRequest preflight cache * WebCore.base.exp: * WebCore.xcodeproj/project.pbxproj: * loader/CrossOriginPreflightResultCache.cpp: (WebCore::CrossOriginPreflightResultCache::empty): * loader/CrossOriginPreflightResultCache.h: 2009-03-23 Darin Adler Reviewed by Adele Peterson. Bug 24726: hit testing doesn't work right when the click is on anonymous content https://bugs.webkit.org/show_bug.cgi?id=24726 rdar://problem/6696992 Test: editing/selection/hit-test-anonymous.html * rendering/RenderBR.cpp: (WebCore::RenderBR::positionForPoint): Call createVisiblePosition instead of creating a VisiblePosition directly. It will handle finding non-anonymous content nearby if node() is 0. * rendering/RenderBlock.cpp: (WebCore::positionForPointRespectingEditingBoundaries): Ditto. (WebCore::positionForPointWithInlineChildren): Ditto. (WebCore::RenderBlock::positionForPoint): Ditto. * rendering/RenderBox.cpp: (WebCore::RenderBox::positionForPoint): Ditto. * rendering/RenderObject.cpp: (WebCore::RenderObject::positionForPoint): Ditto. (WebCore::RenderObject::createVisiblePosition): Added. * rendering/RenderObject.h: Added createVisiblePosition. * rendering/RenderReplaced.cpp: (WebCore::RenderReplaced::positionForPoint): Call createVisiblePosition. * rendering/RenderSVGInlineText.cpp: (WebCore::RenderSVGInlineText::positionForPoint): Ditto. * rendering/RenderText.cpp: (WebCore::RenderText::positionForPoint): Ditto. 2009-03-23 Adele Peterson Reviewed by Darin Adler & Dave Hyatt. Fix for REGRESSION(35185): Apple Travel HTML emails missing some style after Safari 4 upgrade Leopard Mail doesn't expect