From fd348f0cc28db4a20b06102b419139c0f1473aec Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 3 Sep 2009 14:07:49 +0200 Subject: Fix compilation with Sun CC 5.9: ambiguity in ?: Error: Ambiguous "?:" expression, second operand of type "WTF::PassRefPtr" and third operand of type "int" can be converted to one another. Error: Ambiguous "?:" expression, second operand of type "WTF::PassRefPtr" and third operand of type "int" can be converted to one another. [and others similar] Conflicts: src/3rdparty/webkit/WebCore/workers/WorkerContext.cpp --- .../webkit/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp | 2 +- src/3rdparty/webkit/WebCore/editing/CompositeEditCommand.cpp | 2 +- src/3rdparty/webkit/WebCore/editing/markup.cpp | 2 +- src/3rdparty/webkit/WebCore/html/HTMLParser.cpp | 4 ++-- src/3rdparty/webkit/WebCore/loader/DocumentLoader.cpp | 2 +- .../webkit/WebCore/loader/appcache/ApplicationCacheGroup.cpp | 2 +- src/3rdparty/webkit/WebCore/loader/archive/ArchiveFactory.cpp | 2 +- src/3rdparty/webkit/WebCore/loader/archive/ArchiveResource.cpp | 6 +++--- src/3rdparty/webkit/WebCore/loader/icon/IconDatabase.cpp | 2 +- src/3rdparty/webkit/WebCore/page/DOMWindow.cpp | 2 +- src/3rdparty/webkit/WebCore/page/animation/AnimationBase.cpp | 2 +- src/3rdparty/webkit/WebCore/rendering/RenderLayer.cpp | 4 ++-- src/3rdparty/webkit/WebCore/rendering/RenderScrollbar.cpp | 2 +- src/3rdparty/webkit/WebCore/rendering/RenderTextFragment.cpp | 2 +- src/3rdparty/webkit/WebCore/svg/SVGElement.cpp | 2 +- src/3rdparty/webkit/WebCore/workers/Worker.cpp | 2 +- 16 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/3rdparty/webkit/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp b/src/3rdparty/webkit/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp index ce5518f..711beb4 100644 --- a/src/3rdparty/webkit/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp +++ b/src/3rdparty/webkit/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp @@ -521,7 +521,7 @@ PassRefPtr BytecodeGenerator::newLabelScope(LabelScope::Type type, c m_labelScopes.removeLast(); // Allocate new label scope. - LabelScope scope(type, name, scopeDepth(), newLabel(), type == LabelScope::Loop ? newLabel() : PassRefPtr