Changeset 147888 in webkit
- Timestamp:
- Apr 7, 2013, 5:52:39 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 deleted
- 77 edited
-
ChangeLog (modified) (1 diff)
-
bindings/generic/RuntimeEnabledFeatures.cpp (modified) (1 diff)
-
config.h (modified) (1 diff)
-
history/PageCache.cpp (modified) (4 diffs)
-
html/HTMLCanvasElement.cpp (modified) (4 diffs)
-
html/HTMLCanvasElement.h (modified) (1 diff)
-
html/HTMLMediaElement.cpp (modified) (5 diffs)
-
html/HTMLSelectElement.cpp (modified) (2 diffs)
-
html/MediaDocument.cpp (modified) (2 diffs)
-
html/canvas/EXTDrawBuffers.cpp (modified) (1 diff)
-
html/canvas/WebGLRenderingContext.cpp (modified) (5 diffs)
-
inspector/InspectorInstrumentation.cpp (modified) (2 diffs)
-
inspector/InspectorTimelineAgent.cpp (modified) (1 diff)
-
loader/DocumentLoader.cpp (modified) (1 diff)
-
page/FeatureObserver.cpp (modified) (1 diff)
-
platform/AsyncFileSystem.cpp (modified) (1 diff)
-
platform/ContextMenu.h (modified) (1 diff)
-
platform/ContextMenuItem.h (modified) (1 diff)
-
platform/Cursor.h (modified) (1 diff)
-
platform/DragData.cpp (modified) (2 diffs)
-
platform/DragData.h (modified) (1 diff)
-
platform/DragImage.h (modified) (1 diff)
-
platform/LocalizedStrings.h (modified) (1 diff)
-
platform/Pasteboard.h (modified) (2 diffs)
-
platform/PlatformExportMacros.h (modified) (1 diff)
-
platform/PlatformInstrumentation.h (modified) (5 diffs)
-
platform/PlatformMenuDescription.h (modified) (2 diffs)
-
platform/PlatformSpeechSynthesizer.h (modified) (2 diffs)
-
platform/PlatformWheelEvent.h (modified) (5 diffs)
-
platform/ScrollAnimator.cpp (modified) (2 diffs)
-
platform/ScrollAnimator.h (modified) (1 diff)
-
platform/ScrollAnimatorNone.cpp (modified) (4 diffs)
-
platform/ScrollView.cpp (modified) (1 diff)
-
platform/ScrollableArea.cpp (modified) (2 diffs)
-
platform/Scrollbar.cpp (modified) (1 diff)
-
platform/SecureTextInput.cpp (deleted)
-
platform/SecureTextInput.h (modified) (1 diff)
-
platform/SuddenTermination.h (modified) (1 diff)
-
platform/Widget.h (modified) (3 diffs)
-
platform/graphics/ANGLEWebKitBridge.h (modified) (1 diff)
-
platform/graphics/BitmapImage.h (modified) (1 diff)
-
platform/graphics/FloatPoint.h (modified) (2 diffs)
-
platform/graphics/FloatRect.h (modified) (2 diffs)
-
platform/graphics/FloatSize.h (modified) (2 diffs)
-
platform/graphics/Font.cpp (modified) (2 diffs)
-
platform/graphics/Font.h (modified) (1 diff)
-
platform/graphics/FontCache.cpp (modified) (1 diff)
-
platform/graphics/FontCache.h (modified) (2 diffs)
-
platform/graphics/FontDescription.h (modified) (1 diff)
-
platform/graphics/FontPlatformData.cpp (modified) (1 diff)
-
platform/graphics/GlyphBuffer.h (modified) (3 diffs)
-
platform/graphics/GraphicsContext.cpp (modified) (2 diffs)
-
platform/graphics/GraphicsContext3D.h (modified) (5 diffs)
-
platform/graphics/GraphicsLayer.h (modified) (1 diff)
-
platform/graphics/Icon.h (modified) (3 diffs)
-
platform/graphics/ImageSource.cpp (modified) (1 diff)
-
platform/graphics/ImageSource.h (modified) (1 diff)
-
platform/graphics/IntRect.h (modified) (3 diffs)
-
platform/graphics/MediaPlayer.cpp (modified) (1 diff)
-
platform/graphics/PlatformLayer.h (modified) (1 diff)
-
platform/graphics/SimpleFontData.h (modified) (5 diffs)
-
platform/graphics/filters/FECustomFilter.cpp (modified) (1 diff)
-
platform/graphics/gpu/DrawingBuffer.h (modified) (2 diffs)
-
platform/graphics/gpu/SharedGraphicsContext3D.cpp (modified) (1 diff)
-
platform/graphics/opengl/Extensions3DOpenGLCommon.cpp (modified) (1 diff)
-
platform/image-decoders/ImageDecoder.h (modified) (1 diff)
-
platform/leveldb/LevelDBDatabase.cpp (modified) (5 diffs)
-
platform/network/BlobRegistry.cpp (modified) (2 diffs)
-
platform/network/BlobRegistryImpl.cpp (modified) (2 diffs)
-
platform/network/NetworkStateNotifier.cpp (modified) (1 diff)
-
platform/network/NetworkStateNotifier.h (modified) (1 diff)
-
platform/network/NetworkingContext.h (modified) (2 diffs)
-
platform/network/ResourceHandleClient.h (modified) (1 diff)
-
platform/network/ResourceRequestBase.cpp (modified) (1 diff)
-
platform/text/cf/HyphenationCF.cpp (modified) (2 diffs)
-
plugins/PluginViewNone.cpp (modified) (1 diff)
-
testing/Internals.cpp (modified) (1 diff)
-
xml/XMLHttpRequest.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r147886 r147888 1 2013-04-07 Zan Dobersek <zdobersek@igalia.com> 2 3 Remove remaining PLATFORM(CHROMIUM)-guarded code in WebCore 4 https://bugs.webkit.org/show_bug.cgi?id=114081 5 6 Remove the remaining PLATFORM(CHROMIUM) build guards. There are still a couple of guards 7 that most likely apply only to Chromium, like OS(ANDROID) or USE(SKIA_ON_MAC_CHROMIUM), 8 but removal of these should go into separate patches. 9 10 * bindings/generic/RuntimeEnabledFeatures.cpp: 11 (WebCore): 12 * config.h: 13 * history/PageCache.cpp: 14 (WebCore): 15 (WebCore::logCanCacheFrameDecision): 16 (WebCore::logCanCachePageDecision): 17 (WebCore::PageCache::canCache): 18 * html/HTMLCanvasElement.cpp: 19 (WebCore::HTMLCanvasElement::getContext): 20 (WebCore::HTMLCanvasElement::shouldAccelerate): 21 * html/HTMLCanvasElement.h: 22 * html/HTMLMediaElement.cpp: 23 (WebCore::createFileURLForApplicationCacheResource): 24 (WebCore::HTMLMediaElement::loadResource): 25 * html/HTMLSelectElement.cpp: 26 (WebCore): 27 (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): 28 * html/MediaDocument.cpp: 29 (WebCore::MediaDocument::defaultEventHandler): 30 * html/canvas/EXTDrawBuffers.cpp: 31 (WebCore::EXTDrawBuffers::satisfiesWebGLRequirements): 32 * html/canvas/WebGLRenderingContext.cpp: 33 (WebCore): 34 (WebCore::WebGLRenderingContext::create): 35 (WebCore::WebGLRenderingContext::WebGLRenderingContext): 36 (WebCore::WebGLRenderingContext::paintRenderingResultsToCanvas): 37 (WebCore::WebGLRenderingContext::platformLayer): 38 * inspector/InspectorInstrumentation.cpp: 39 (WebCore): 40 (WebCore::InspectorInstrumentation::willPaintImpl): 41 * inspector/InspectorTimelineAgent.cpp: 42 (WebCore::InspectorTimelineAgent::didBeginFrame): 43 * loader/DocumentLoader.cpp: 44 (WebCore::DocumentLoader::notifyFinished): 45 * page/FeatureObserver.cpp: 46 (WebCore::FeatureObserver::~FeatureObserver): 47 * platform/AsyncFileSystem.cpp: 48 (WebCore): 49 * platform/ContextMenu.h: 50 (ContextMenu): 51 * platform/ContextMenuItem.h: 52 * platform/Cursor.h: 53 * platform/DragData.cpp: 54 (WebCore): 55 * platform/DragData.h: 56 * platform/DragImage.h: 57 * platform/LocalizedStrings.h: 58 (WebCore): 59 * platform/Pasteboard.h: 60 (Pasteboard): 61 * platform/PlatformExportMacros.h: 62 * platform/PlatformInstrumentation.h: 63 (WebCore::PlatformInstrumentation::willDecodeImage): 64 (WebCore::PlatformInstrumentation::didDecodeImage): 65 (WebCore::PlatformInstrumentation::willResizeImage): 66 (WebCore::PlatformInstrumentation::didResizeImage): 67 * platform/PlatformMenuDescription.h: 68 (WebCore): 69 * platform/PlatformSpeechSynthesizer.h: 70 (PlatformSpeechSynthesizer): 71 * platform/PlatformWheelEvent.h: 72 (WebCore::PlatformWheelEvent::PlatformWheelEvent): 73 (PlatformWheelEvent): 74 * platform/ScrollAnimator.cpp: 75 (WebCore): 76 (WebCore::ScrollAnimator::handleWheelEvent): 77 * platform/ScrollAnimator.h: 78 (ScrollAnimator): 79 * platform/ScrollAnimatorNone.cpp: 80 (WebCore::ScrollAnimatorNone::scroll): 81 (WebCore::ScrollAnimatorNone::animationTimerFired): 82 * platform/ScrollView.cpp: 83 (WebCore::ScrollView::updateOverhangAreas): 84 * platform/ScrollableArea.cpp: 85 (WebCore::ScrollableArea::scrollPositionChanged): 86 * platform/Scrollbar.cpp: 87 * platform/SecureTextInput.cpp: Removed. 88 * platform/SecureTextInput.h: 89 (WebCore): 90 * platform/SuddenTermination.h: 91 (WebCore): 92 * platform/Widget.h: 93 (Widget): 94 * platform/graphics/ANGLEWebKitBridge.h: 95 * platform/graphics/BitmapImage.h: 96 * platform/graphics/FloatPoint.h: 97 (FloatPoint): 98 * platform/graphics/FloatRect.h: 99 (FloatRect): 100 * platform/graphics/FloatSize.h: 101 (FloatSize): 102 * platform/graphics/Font.cpp: 103 (WebCore): 104 (WebCore::Font::width): 105 * platform/graphics/Font.h: 106 (Font): 107 * platform/graphics/FontCache.cpp: 108 (WebCore): 109 * platform/graphics/FontCache.h: 110 (FontCache): 111 * platform/graphics/FontDescription.h: 112 * platform/graphics/FontPlatformData.cpp: 113 * platform/graphics/GlyphBuffer.h: 114 (WebCore): 115 (WebCore::GlyphBuffer::add): 116 * platform/graphics/GraphicsContext.cpp: 117 (WebCore::GraphicsContext::drawImage): 118 (WebCore::GraphicsContext::drawImageBuffer): 119 * platform/graphics/GraphicsContext3D.h: 120 (GraphicsContext3D): 121 * platform/graphics/GraphicsLayer.h: 122 (WebCore::GraphicsLayer::supportsBackgroundColorContent): 123 * platform/graphics/Icon.h: 124 (Icon): 125 * platform/graphics/ImageSource.cpp: 126 * platform/graphics/ImageSource.h: 127 (WebCore): 128 * platform/graphics/IntRect.h: 129 (IntRect): 130 (WebCore): 131 * platform/graphics/MediaPlayer.cpp: 132 * platform/graphics/PlatformLayer.h: 133 * platform/graphics/SimpleFontData.h: 134 (SimpleFontData): 135 (DerivedFontData): 136 * platform/graphics/filters/FECustomFilter.cpp: 137 (WebCore::FECustomFilter::resizeContext): 138 * platform/graphics/gpu/DrawingBuffer.h: 139 (WebCore): 140 (DrawingBuffer): 141 * platform/graphics/gpu/SharedGraphicsContext3D.cpp: 142 * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp: 143 (WebCore::Extensions3DOpenGLCommon::getTranslatedShaderSourceANGLE): 144 * platform/image-decoders/ImageDecoder.h: 145 * platform/leveldb/LevelDBDatabase.cpp: 146 (WebCore::LevelDBDatabase::open): 147 * platform/network/BlobRegistry.cpp: 148 (WebCore::blobRegistry): 149 * platform/network/BlobRegistryImpl.cpp: 150 * platform/network/NetworkStateNotifier.cpp: 151 * platform/network/NetworkStateNotifier.h: 152 (NetworkStateNotifier): 153 * platform/network/NetworkingContext.h: 154 (NetworkingContext): 155 * platform/network/ResourceHandleClient.h: 156 * platform/network/ResourceRequestBase.cpp: 157 (WebCore): 158 * platform/text/cf/HyphenationCF.cpp: 159 * plugins/PluginViewNone.cpp: 160 (WebCore): 161 * testing/Internals.cpp: 162 * xml/XMLHttpRequest.cpp: 163 (WebCore::XMLHttpRequest::createRequest): 164 1 165 2013-04-07 Ed Bartosh <bartosh@gmail.com> 2 166 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
r146847 r147888 179 179 180 180 #if ENABLE(VIDEO_TRACK) 181 #if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM( CHROMIUM) || PLATFORM(BLACKBERRY) || PLATFORM(WIN)181 #if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(BLACKBERRY) || PLATFORM(WIN) 182 182 bool RuntimeEnabledFeatures::isVideoTrackEnabled = true; 183 183 #else -
trunk/Source/WebCore/config.h
r147766 r147888 121 121 #endif // PLATFORM(MAC) 122 122 123 #if PLATFORM(CHROMIUM)124 125 // Chromium uses this file instead of JavaScriptCore/config.h to compile126 // JavaScriptCore/wtf (chromium doesn't compile the rest of JSC). Therefore,127 // this define is required.128 #define WTF_CHANGES 1129 130 #endif /* PLATFORM(CHROMIUM) */131 132 123 #if USE(CG) 133 124 #ifndef CGFLOAT_DEFINED -
trunk/Source/WebCore/history/PageCache.cpp
r145826 r147888 58 58 namespace WebCore { 59 59 60 #if PLATFORM(CHROMIUM) ||!defined(NDEBUG)60 #if !defined(NDEBUG) 61 61 62 62 #define PCLOG(...) LOG(PageCache, "%*s%s", indentLevel*4, "", makeString(__VA_ARGS__).utf8().data()) … … 84 84 COMPILE_ASSERT(NumberOfReasonsFramesCannotBeInPageCache <= sizeof(unsigned)*8, ReasonFrameCannotBeInPageCacheDoesNotFitInBitmap); 85 85 86 #if PLATFORM(CHROMIUM)87 static int indexOfSingleBit(int32_t v)88 {89 int index = 0;90 if (v & 0xFFFF0000)91 index = 16;92 if (v & 0xFF00FF00)93 index += 8;94 if (v & 0xF0F0F0F0)95 index += 4;96 if (v & 0xCCCCCCCC)97 index += 2;98 if (v & 0xAAAAAAAA)99 index += 1;100 return index;101 }102 #endif // PLATFORM(CHROMIUM)103 104 86 static unsigned logCanCacheFrameDecision(Frame* frame, int indentLevel) 105 87 { 106 #ifdef NDEBUG107 UNUSED_PARAM(indentLevel);108 #endif109 88 PCLOG("+---"); 110 89 if (!frame->loader()->documentLoader()) { … … 297 276 } 298 277 } 299 #if PLATFORM(CHROMIUM)300 // This strangely specific histogram is particular to chromium: as of 2012-03-16, the FrameClientImpl always denies caching, so301 // of particular interest are solitary reasons other than the frameRejectReasons. If we didn't get to the ClientDeniesCaching, we302 // took the early exit for the boring reason NoDocumentLoader, so we should have only one reason, and not two.303 // FIXME: remove this histogram after data is gathered.304 if (frameReasonCount == 2) {305 ASSERT(frameRejectReasons & (1 << ClientDeniesCaching));306 const unsigned singleReasonForRejectingFrameOtherThanClientDeniesCaching = frameRejectReasons & ~(1 << ClientDeniesCaching);307 COMPILE_ASSERT(NumberOfReasonsPagesCannotBeInPageCache <= 32, ReasonPageCannotBeInPageCacheDoesNotFitInInt32);308 const int index = indexOfSingleBit(static_cast<int32_t>(singleReasonForRejectingFrameOtherThanClientDeniesCaching));309 HistogramSupport::histogramEnumeration("PageCache.FrameRejectReasonByPageWhenSingleExcludingFrameClient", index, NumberOfReasonsPagesCannotBeInPageCache);310 }311 #endif312 278 313 279 HistogramSupport::histogramEnumeration("PageCache.FrameRejectReasonCountByPage", frameReasonCount, 1 + NumberOfReasonsFramesCannotBeInPageCache); 314 280 } 315 281 316 #endif 282 #endif // !defined(NDEBUG) 317 283 318 284 PageCache* pageCache() … … 373 339 return false; 374 340 375 #if PLATFORM(CHROMIUM) ||!defined(NDEBUG)341 #if !defined(NDEBUG) 376 342 logCanCachePageDecision(page); 377 343 #endif -
trunk/Source/WebCore/html/HTMLCanvasElement.cpp
r147795 r147888 59 59 #endif 60 60 61 #if PLATFORM(CHROMIUM)62 #include <public/Platform.h>63 #endif64 65 61 namespace WebCore { 66 62 … … 188 184 Settings* settings = document()->settings(); 189 185 if (settings && settings->webGLEnabled() 190 #if !PLATFORM( CHROMIUM) && !PLATFORM(GTK) && !PLATFORM(EFL) && !PLATFORM(QT)186 #if !PLATFORM(GTK) && !PLATFORM(EFL) && !PLATFORM(QT) 191 187 && settings->acceleratedCompositingEnabled() 192 188 #endif … … 195 191 // Accept the legacy "webkit-3d" name as well as the provisional "experimental-webgl" name. 196 192 bool is3dContext = (type == "webkit-3d") || (type == "experimental-webgl"); 197 198 #if PLATFORM(CHROMIUM) && !OS(ANDROID)199 // Now that WebGL is ratified, we will also accept "webgl" as the context name in Chrome.200 is3dContext |= (type == "webgl");201 #endif202 193 203 194 if (is3dContext) { … … 513 504 return false; 514 505 515 #if PLATFORM(CHROMIUM)516 if (!WebKit::Platform::current()->canAccelerate2dCanvas())517 return false;518 #endif519 520 506 return true; 521 507 #else -
trunk/Source/WebCore/html/HTMLCanvasElement.h
r146351 r147888 34 34 #include <wtf/Forward.h> 35 35 36 #if PLATFORM( CHROMIUM) || PLATFORM(QT)36 #if PLATFORM(QT) 37 37 #define DefaultInterpolationQuality InterpolationMedium 38 38 #elif USE(CG) -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r147675 r147888 943 943 } 944 944 945 #if !PLATFORM(CHROMIUM)946 945 static KURL createFileURLForApplicationCacheResource(const String& path) 947 946 { … … 962 961 return url; 963 962 } 964 #endif965 963 966 964 void HTMLMediaElement::loadResource(const KURL& initialURL, ContentType& contentType, const String& keySystem) … … 985 983 m_networkState = NETWORK_LOADING; 986 984 987 #if !PLATFORM(CHROMIUM)988 985 // If the url should be loaded from the application cache, pass the url of the cached file 989 986 // to the media engine. … … 998 995 } 999 996 } 1000 #endif1001 997 1002 998 // Set m_currentSrc *before* changing to the cache url, the fact that we are loading from the app … … 1004 1000 m_currentSrc = url; 1005 1001 1006 #if !PLATFORM(CHROMIUM)1007 1002 if (resource) { 1008 1003 url = createFileURLForApplicationCacheResource(resource->path()); 1009 1004 LOG(Media, "HTMLMediaElement::loadResource - will load from app cache -> %s", urlForLoggingMedia(url).utf8().data()); 1010 1005 } 1011 #endif1012 1006 1013 1007 LOG(Media, "HTMLMediaElement::loadResource - m_currentSrc -> %s", urlForLoggingMedia(m_currentSrc).utf8().data()); -
trunk/Source/WebCore/html/HTMLSelectElement.cpp
r147548 r147888 1063 1063 } 1064 1064 1065 #if (!PLATFORM(WIN) && !(PLATFORM(CHROMIUM) && OS(WINDOWS))) || OS(WINCE)1065 #if !PLATFORM(WIN) || OS(WINCE) 1066 1066 bool HTMLSelectElement::platformHandleKeydownEvent(KeyboardEvent* event) 1067 1067 { … … 1300 1300 if (listIndex >= 0) { 1301 1301 if (!isDisabledFormControl()) { 1302 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))1302 #if PLATFORM(MAC) 1303 1303 updateSelectedState(listIndex, mouseEvent->metaKey(), mouseEvent->shiftKey()); 1304 1304 #else -
trunk/Source/WebCore/html/MediaDocument.cpp
r145914 r147888 167 167 return; 168 168 169 #if !PLATFORM(CHROMIUM)170 169 if (HTMLVideoElement* video = ancestorVideoElement(targetNode)) { 171 170 if (event->type() == eventNames().clickEvent) { … … 181 180 } 182 181 } 183 #endif184 182 185 183 if (event->type() == eventNames().keydownEvent && event->isKeyboardEvent()) { -
trunk/Source/WebCore/html/canvas/EXTDrawBuffers.cpp
r146694 r147888 115 115 context->bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, fbo); 116 116 117 #if PLATFORM(CHROMIUM)118 const unsigned char* buffer = 0; // Chromium doesn't allow init data for depth/stencil tetxures.119 #else120 117 const unsigned char buffer[4] = { 0, 0, 0, 0 }; // textures are required to be initialized for other ports. 121 #endif122 118 bool supportsDepth = (context->getExtensions()->supports("GL_CHROMIUM_depth_texture") 123 119 || context->getExtensions()->supports("GL_OES_depth_texture") -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
r147042 r147888 429 429 430 430 attributes.noExtensions = true; 431 #if PLATFORM(CHROMIUM)432 attributes.shareResources = true;433 #else434 431 attributes.shareResources = false; 435 #endif436 432 attributes.preferDiscreteGPU = true; 437 433 attributes.topDocumentURL = document->topDocument()->url(); … … 450 446 OwnPtr<WebGLRenderingContext> renderingContext = adoptPtr(new WebGLRenderingContext(canvas, context, attributes)); 451 447 renderingContext->suspendIfNeeded(); 452 453 #if PLATFORM(CHROMIUM)454 if (!renderingContext->m_drawingBuffer) {455 canvas->dispatchEvent(WebGLContextEvent::create(eventNames().webglcontextcreationerrorEvent, false, true, "Could not create a WebGL context."));456 return nullptr;457 }458 #endif459 448 460 449 return renderingContext.release(); … … 483 472 m_maxViewportDims[0] = m_maxViewportDims[1] = 0; 484 473 m_context->getIntegerv(GraphicsContext3D::MAX_VIEWPORT_DIMS, m_maxViewportDims); 485 486 #if PLATFORM(CHROMIUM)487 // Create the DrawingBuffer and initialize the platform layer.488 DrawingBuffer::PreserveDrawingBuffer preserve = m_attributes.preserveDrawingBuffer ? DrawingBuffer::Preserve : DrawingBuffer::Discard;489 DrawingBuffer::AlphaRequirement alpha = m_attributes.alpha ? DrawingBuffer::Alpha : DrawingBuffer::Opaque;490 m_drawingBuffer = DrawingBuffer::create(m_context.get(), clampedCanvasSize(), preserve, alpha);491 #endif492 474 493 475 if (m_drawingBuffer) … … 764 746 if (m_context->layerComposited() && !m_attributes.preserveDrawingBuffer) { 765 747 m_context->paintCompositedResultsToCanvas(canvas()->buffer()); 766 767 #if USE(ACCELERATED_COMPOSITING) && PLATFORM(CHROMIUM)768 if (m_drawingBuffer)769 m_drawingBuffer->paintCompositedResultsToCanvas(canvas()->buffer());770 #endif771 748 772 749 canvas()->makePresentationCopy(); … … 4693 4670 PlatformLayer* WebGLRenderingContext::platformLayer() const 4694 4671 { 4695 #if PLATFORM(CHROMIUM)4696 if (m_drawingBuffer)4697 return m_drawingBuffer->platformLayer();4698 #endif4699 4700 4672 return m_context->platformLayer(); 4701 4673 } -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r147795 r147888 80 80 #include <wtf/text/CString.h> 81 81 82 #if PLATFORM(CHROMIUM)83 #include "platform/chromium/TraceEvent.h"84 #endif85 86 82 namespace WebCore { 87 83 … … 529 525 void InspectorInstrumentation::willPaintImpl(InstrumentingAgents* instrumentingAgents, RenderObject* renderer) 530 526 { 531 #if PLATFORM(CHROMIUM)532 TRACE_EVENT_INSTANT1("instrumentation", InstrumentationEvents::Paint, InstrumentationEventArguments::PageId, reinterpret_cast<unsigned long long>(renderer->frame()->page()));533 #endif534 535 527 if (InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimelineAgent()) 536 528 timelineAgent->willPaint(renderer->frame()); -
trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp
r147422 r147888 226 226 void InspectorTimelineAgent::didBeginFrame() 227 227 { 228 #if PLATFORM(CHROMIUM)229 TRACE_EVENT_INSTANT0("webkit", InstrumentationEvents::BeginFrame);230 #endif231 228 m_pendingFrameRecord = TimelineRecordFactory::createGenericRecord(timestamp(), 0); 232 229 } -
trunk/Source/WebCore/loader/DocumentLoader.cpp
r147730 r147888 346 346 } 347 347 348 // FIXME: we should fix the design to eliminate the need for a platform ifdef here349 #if !PLATFORM(CHROMIUM)350 348 if (m_request.cachePolicy() == ReturnCacheDataDontLoad && !m_mainResource->wasCanceled()) { 351 349 frameLoader()->retryAfterFailedCacheOnlyMainResourceLoad(); 352 350 return; 353 351 } 354 #endif355 352 356 353 mainReceivedError(m_mainResource->resourceError()); -
trunk/Source/WebCore/page/FeatureObserver.cpp
r147749 r147888 40 40 FeatureObserver::~FeatureObserver() 41 41 { 42 #if PLATFORM(CHROMUM)43 // We always log PageDestruction so that we have a scale for the rest of the features.44 HistogramSupport::histogramEnumeration("WebCore.FeatureObserver", PageDestruction, NumberOfFeatures);45 #endif46 47 42 updateMeasurements(); 48 43 } -
trunk/Source/WebCore/platform/AsyncFileSystem.cpp
r130281 r147888 40 40 namespace WebCore { 41 41 42 #if !PLATFORM( CHROMIUM) && !PLATFORM(GTK) && !PLATFORM(BLACKBERRY) && !PLATFORM(EFL)42 #if !PLATFORM(GTK) && !PLATFORM(BLACKBERRY) && !PLATFORM(EFL) 43 43 bool AsyncFileSystem::isAvailable() 44 44 { -
trunk/Source/WebCore/platform/ContextMenu.h
r147545 r147888 96 96 // Keep this in sync with the PlatformMenuDescription typedef 97 97 RetainPtr<NSMutableArray> m_platformDescription; 98 #elif PLATFORM(CHROMIUM)99 Vector<ContextMenuItem> m_items;100 98 #else 101 99 PlatformMenuDescription m_platformDescription; -
trunk/Source/WebCore/platform/ContextMenuItem.h
r147870 r147888 198 198 bool enabled; 199 199 }; 200 #elif PLATFORM(CHROMIUM)201 struct PlatformMenuItemDescription {202 PlatformMenuItemDescription()203 : type(ActionType)204 , action(ContextMenuItemTagNoAction)205 , checked(false)206 , enabled(true) { }207 ContextMenuItemType type;208 ContextMenuAction action;209 String title;210 Vector<ContextMenuItem> subMenuItems;211 bool checked;212 bool enabled;213 };214 200 #else 215 201 typedef void* PlatformMenuItemDescription; -
trunk/Source/WebCore/platform/Cursor.h
r136919 r147888 61 61 62 62 // Looks like it's just PLATFORM(WX) and PLATFORM(BLACKBERRY) still not using this? 63 #if PLATFORM(WIN) || PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(QT) || PLATFORM(EFL) || PLATFORM(CHROMIUM)63 #if PLATFORM(WIN) || PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(QT) || PLATFORM(EFL) 64 64 #define WTF_USE_LAZY_NATIVE_CURSOR 1 65 65 #endif -
trunk/Source/WebCore/platform/DragData.cpp
r120667 r147888 54 54 #endif 55 55 56 #if !PLATFORM(CHROMIUM)57 56 int DragData::modifierKeyState() const 58 57 { … … 78 77 } 79 78 #endif 80 #endif81 79 82 80 } // namespace WebCore -
trunk/Source/WebCore/platform/DragData.h
r120667 r147888 62 62 } 63 63 typedef WebCore::DataObjectGtk* DragDataRef; 64 #elif PLATFORM(CHROMIUM)65 #include "DragDataRef.h"66 64 #elif PLATFORM(EFL) || PLATFORM(BLACKBERRY) 67 65 typedef void* DragDataRef; -
trunk/Source/WebCore/platform/DragImage.h
r130636 r147888 43 43 #elif PLATFORM(WX) 44 44 class wxDragImage; 45 #elif PLATFORM(CHROMIUM)46 #include "DragImageRef.h"47 45 #elif PLATFORM(GTK) 48 46 typedef struct _cairo_surface cairo_surface_t; -
trunk/Source/WebCore/platform/LocalizedStrings.h
r147675 r147888 283 283 String snapshottedPlugInLabelSubtitle(); 284 284 285 #if !PLATFORM(CHROMIUM)286 285 #define WEB_UI_STRING(string, description) WebCore::localizedString(string) 287 286 #define WEB_UI_STRING_KEY(string, key, description) WebCore::localizedString(key) 288 287 289 288 String localizedString(const char* key); 290 #endif291 289 292 290 } // namespace WebCore -
trunk/Source/WebCore/platform/Pasteboard.h
r146835 r147888 103 103 String plainText(Frame* = 0); 104 104 105 #if PLATFORM(QT) || PLATFORM( CHROMIUM) || PLATFORM(GTK)105 #if PLATFORM(QT) || PLATFORM(GTK) 106 106 bool isSelectionMode() const; 107 107 void setSelectionMode(bool); … … 126 126 #endif 127 127 128 #if PLATFORM(QT) || PLATFORM(CHROMIUM)128 #if PLATFORM(QT) 129 129 bool m_selectionMode; 130 130 #endif -
trunk/Source/WebCore/platform/PlatformExportMacros.h
r122805 r147888 49 49 #else // !USE(EXPORT_MACROS) 50 50 51 #if !PLATFORM(CHROMIUM) &&OS(WINDOWS) && !defined(BUILDING_WX__) && !COMPILER(GCC)51 #if OS(WINDOWS) && !defined(BUILDING_WX__) && !COMPILER(GCC) 52 52 53 53 #if defined(WEBCORE_IS_LINKED_IN_SAME_BINARY) -
trunk/Source/WebCore/platform/PlatformInstrumentation.h
r145889 r147888 34 34 #include <wtf/MainThread.h> 35 35 #include <wtf/text/WTFString.h> 36 37 #if PLATFORM(CHROMIUM)38 #include "TraceEvent.h"39 #endif40 36 41 37 namespace WebCore { … … 77 73 inline void PlatformInstrumentation::willDecodeImage(const String& imageType) 78 74 { 79 #if PLATFORM(CHROMIUM)80 TRACE_EVENT_BEGIN1(CategoryName, ImageDecodeEvent, ImageTypeArgument, TRACE_STR_COPY(imageType.ascii().data()));81 #endif82 75 FAST_RETURN_IF_NO_CLIENT_OR_NOT_MAIN_THREAD(); 83 76 m_client->willDecodeImage(imageType); … … 86 79 inline void PlatformInstrumentation::didDecodeImage() 87 80 { 88 #if PLATFORM(CHROMIUM)89 TRACE_EVENT_END0(CategoryName, ImageDecodeEvent);90 #endif91 81 FAST_RETURN_IF_NO_CLIENT_OR_NOT_MAIN_THREAD(); 92 82 m_client->didDecodeImage(); … … 95 85 inline void PlatformInstrumentation::willResizeImage(bool shouldCache) 96 86 { 97 #if PLATFORM(CHROMIUM)98 TRACE_EVENT_BEGIN1(CategoryName, ImageResizeEvent, CachedArgument, shouldCache);99 #endif100 87 FAST_RETURN_IF_NO_CLIENT_OR_NOT_MAIN_THREAD(); 101 88 m_client->willResizeImage(shouldCache); … … 104 91 inline void PlatformInstrumentation::didResizeImage() 105 92 { 106 #if PLATFORM(CHROMIUM)107 TRACE_EVENT_END0(CategoryName, ImageResizeEvent);108 #endif109 93 FAST_RETURN_IF_NO_CLIENT_OR_NOT_MAIN_THREAD(); 110 94 m_client->didResizeImage(); -
trunk/Source/WebCore/platform/PlatformMenuDescription.h
r147870 r147888 37 37 #elif PLATFORM(WX) 38 38 class wxMenu; 39 #elif PLATFORM(CHROMIUM)40 #include <wtf/Vector.h>41 39 #endif 42 40 … … 53 51 #elif PLATFORM(WX) 54 52 typedef wxMenu* PlatformMenuDescription; 55 #elif PLATFORM(CHROMIUM)56 class ContextMenuItem;57 typedef const Vector<ContextMenuItem>* PlatformMenuDescription;58 53 #else 59 54 typedef void* PlatformMenuDescription; -
trunk/Source/WebCore/platform/PlatformSpeechSynthesizer.h
r146724 r147888 36 36 #include <wtf/RetainPtr.h> 37 37 OBJC_CLASS WebSpeechSynthesisWrapper; 38 #endif39 40 #if PLATFORM(CHROMIUM)41 namespace WebKit {42 class WebSpeechSynthesizer;43 class WebSpeechSynthesizerClient;44 }45 38 #endif 46 39 … … 94 87 RetainPtr<WebSpeechSynthesisWrapper> m_platformSpeechWrapper; 95 88 #endif 96 #if PLATFORM(CHROMIUM)97 OwnPtr<WebKit::WebSpeechSynthesizer> m_webSpeechSynthesizer;98 OwnPtr<WebKit::WebSpeechSynthesizerClient> m_webSpeechSynthesizerClient;99 #endif100 89 }; 101 90 -
trunk/Source/WebCore/platform/PlatformWheelEvent.h
r144531 r147888 61 61 }; 62 62 63 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))63 #if PLATFORM(MAC) 64 64 enum PlatformWheelEventPhase { 65 65 PlatformWheelEventPhaseNone = 0, … … 83 83 , m_granularity(ScrollByPixelWheelEvent) 84 84 , m_directionInvertedFromDevice(false) 85 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)85 #if PLATFORM(MAC) 86 86 , m_hasPreciseScrollingDeltas(false) 87 #endif88 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))89 87 , m_phase(PlatformWheelEventPhaseNone) 90 88 , m_momentumPhase(PlatformWheelEventPhaseNone) … … 106 104 , m_granularity(granularity) 107 105 , m_directionInvertedFromDevice(false) 108 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)106 #if PLATFORM(MAC) 109 107 , m_hasPreciseScrollingDeltas(false) 110 #endif111 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))112 108 , m_phase(PlatformWheelEventPhaseNone) 113 109 , m_momentumPhase(PlatformWheelEventPhaseNone) … … 152 148 #endif 153 149 154 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)150 #if PLATFORM(MAC) 155 151 bool hasPreciseScrollingDeltas() const { return m_hasPreciseScrollingDeltas; } 156 152 void setHasPreciseScrollingDeltas(bool b) { m_hasPreciseScrollingDeltas = b; } 157 #endif158 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))159 153 PlatformWheelEventPhase phase() const { return m_phase; } 160 154 PlatformWheelEventPhase momentumPhase() const { return m_momentumPhase; } … … 185 179 PlatformWheelEventGranularity m_granularity; 186 180 bool m_directionInvertedFromDevice; 187 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)181 #if PLATFORM(MAC) 188 182 bool m_hasPreciseScrollingDeltas; 189 #endif190 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))191 183 PlatformWheelEventPhase m_phase; 192 184 PlatformWheelEventPhase m_momentumPhase; -
trunk/Source/WebCore/platform/ScrollAnimator.cpp
r141610 r147888 42 42 namespace WebCore { 43 43 44 #if !ENABLE(SMOOTH_SCROLLING) && !(PLATFORM(CHROMIUM) && OS(DARWIN))44 #if !ENABLE(SMOOTH_SCROLLING) 45 45 PassOwnPtr<ScrollAnimator> ScrollAnimator::create(ScrollableArea* scrollableArea) 46 46 { … … 94 94 bool handled = false; 95 95 96 #if PLATFORM(CHROMIUM) && !OS(DARWIN)97 ScrollGranularity granularity = e.hasPreciseScrollingDeltas() ? ScrollByPrecisePixel : ScrollByPixel;98 #else99 96 ScrollGranularity granularity = ScrollByPixel; 100 #endif101 102 97 IntSize maxForwardScrollDelta = m_scrollableArea->maximumScrollPosition() - m_scrollableArea->scrollPosition(); 103 98 IntSize maxBackwardScrollDelta = m_scrollableArea->scrollPosition() - m_scrollableArea->minimumScrollPosition(); -
trunk/Source/WebCore/platform/ScrollAnimator.h
r141625 r147888 66 66 virtual bool handleWheelEvent(const PlatformWheelEvent&); 67 67 68 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))68 #if PLATFORM(MAC) 69 69 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { } 70 70 #endif -
trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp
r141610 r147888 43 43 #include <wtf/CurrentTime.h> 44 44 #include <wtf/PassOwnPtr.h> 45 46 #if PLATFORM(CHROMIUM)47 #include "TraceEvent.h"48 #endif49 45 50 46 #if ENABLE(GESTURE_EVENTS) … … 437 433 return ScrollAnimator::scroll(orientation, granularity, step, multiplier); 438 434 439 #if PLATFORM(CHROMIUM)440 TRACE_EVENT0("webkit", "ScrollAnimatorNone::scroll");441 #endif442 443 435 // FIXME: get the type passed in. MouseWheel could also be by line, but should still have different 444 436 // animation parameters than the keyboard. … … 532 524 void ScrollAnimatorNone::animationTimerFired() 533 525 { 534 #if PLATFORM(CHROMIUM)535 TRACE_EVENT0("webkit", "ScrollAnimatorNone::animationTimerFired");536 #endif537 538 526 double currentTime = WTF::monotonicallyIncreasingTime(); 539 527 double deltaToNextFrame = ceil((currentTime - m_startTime) * kFrameRate) / kFrameRate - (currentTime - m_startTime); … … 555 543 #endif 556 544 557 #if PLATFORM(CHROMIUM)558 TRACE_EVENT0("webkit", "ScrollAnimatorNone::notifyPositionChanged");559 #endif560 545 notifyPositionChanged(FloatSize()); 561 546 -
trunk/Source/WebCore/platform/ScrollView.cpp
r147436 r147888 1157 1157 IntRect verticalOverhangRect; 1158 1158 calculateOverhangAreasForPainting(horizontalOverhangRect, verticalOverhangRect); 1159 #if USE(ACCELERATED_COMPOSITING) && PLATFORM(CHROMIUM) && ENABLE(RUBBER_BANDING)1160 if (GraphicsLayer* overhangLayer = layerForOverhangAreas()) {1161 bool hasOverhangArea = !horizontalOverhangRect.isEmpty() || !verticalOverhangRect.isEmpty();1162 overhangLayer->setDrawsContent(hasOverhangArea);1163 if (hasOverhangArea)1164 overhangLayer->setNeedsDisplay();1165 }1166 #endif1167 1159 if (!horizontalOverhangRect.isEmpty()) 1168 1160 hostWindow()->invalidateContentsAndRootView(horizontalOverhangRect, false /*immediate*/); -
trunk/Source/WebCore/platform/ScrollableArea.cpp
r147471 r147888 42 42 #include <wtf/PassOwnPtr.h> 43 43 44 #if PLATFORM(CHROMIUM)45 #include "TraceEvent.h"46 #endif47 48 44 namespace WebCore { 49 45 … … 146 142 void ScrollableArea::scrollPositionChanged(const IntPoint& position) 147 143 { 148 #if PLATFORM(CHROMIUM)149 TRACE_EVENT0("webkit", "ScrollableArea::scrollPositionChanged");150 #endif151 152 144 IntPoint oldPosition = scrollPosition(); 153 145 // Tell the derived class to scroll its contents. -
trunk/Source/WebCore/platform/Scrollbar.cpp
r146726 r147888 48 48 using namespace std; 49 49 50 #if (PLATFORM(CHROMIUM) && (OS(UNIX) && !OS(DARWIN))) ||PLATFORM(GTK)50 #if PLATFORM(GTK) 51 51 // The position of the scrollbar thumb affects the appearance of the steppers, so 52 52 // when the thumb moves, we have to invalidate them for painting. -
trunk/Source/WebCore/platform/SecureTextInput.h
r143499 r147888 34 34 namespace WebCore { 35 35 36 // Once enableSecureTextInput is called, secure text input mode is set until 37 // disableSecureTextInput has been called. 38 void enableSecureTextInput(); 39 void disableSecureTextInput(); 40 41 #if !(PLATFORM(CHROMIUM) && OS(DARWIN)) 36 // FIXME: Remove these methods. (http://wkb.ug/114126) 42 37 inline void enableSecureTextInput() { } 43 38 inline void disableSecureTextInput() { } 44 #endif45 39 46 40 } // namespace WebCore -
trunk/Source/WebCore/platform/SuddenTermination.h
r121524 r147888 35 35 void enableSuddenTermination(); 36 36 37 #if !PLATFORM(MAC) && !PLATFORM(CHROMIUM)37 #if !PLATFORM(MAC) 38 38 inline void disableSuddenTermination() { } 39 39 inline void enableSuddenTermination() { } -
trunk/Source/WebCore/platform/Widget.h
r145913 r147888 32 32 #include <wtf/RefCounted.h> 33 33 34 #if PLATFORM(CHROMIUM)35 #include "PageClientChromium.h"36 #include "PlatformWidget.h"37 #endif38 39 34 #if PLATFORM(MAC) 40 35 #include <wtf/RetainPtr.h> … … 97 92 class PageClientEfl; 98 93 typedef PageClientEfl* PlatformPageClient; 99 #elif PLATFORM(CHROMIUM)100 typedef WebCore::PageClientChromium* PlatformPageClient;101 94 #else 102 95 typedef PlatformWidget PlatformPageClient; … … 228 221 #endif 229 222 230 #if PLATFORM(CHROMIUM)231 virtual bool isPluginContainer() const { return false; }232 #endif233 234 223 #if PLATFORM(QT) 235 224 QObject* bindingObject() const; -
trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.h
r131952 r147888 30 30 #include <wtf/text/WTFString.h> 31 31 32 #if !PLATFORM(GTK) && !PLATFORM(EFL) && !PLATFORM(BLACKBERRY) && !PLATFORM( CHROMIUM) && !PLATFORM(QT)32 #if !PLATFORM(GTK) && !PLATFORM(EFL) && !PLATFORM(BLACKBERRY) && !PLATFORM(QT) 33 33 #include "ANGLE/ShaderLang.h" 34 34 #else -
trunk/Source/WebCore/platform/graphics/BitmapImage.h
r147643 r147888 206 206 #endif 207 207 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode); 208 #if USE(CG) || PLATFORM(CHROMIUM) ||USE(CAIRO) || PLATFORM(BLACKBERRY)208 #if USE(CG) || USE(CAIRO) || PLATFORM(BLACKBERRY) 209 209 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode, RespectImageOrientationEnum) OVERRIDE; 210 210 #endif -
trunk/Source/WebCore/platform/graphics/FloatPoint.h
r147855 r147888 44 44 #endif 45 45 46 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))46 #if PLATFORM(MAC) 47 47 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 48 48 typedef struct CGPoint NSPoint; … … 156 156 #endif 157 157 158 #if (PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))) \ 159 && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 158 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 160 159 FloatPoint(const NSPoint&); 161 160 operator NSPoint() const; -
trunk/Source/WebCore/platform/graphics/FloatRect.h
r147855 r147888 35 35 #endif 36 36 37 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))37 #if PLATFORM(MAC) 38 38 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 39 39 typedef struct CGRect NSRect; … … 201 201 #endif 202 202 203 #if (PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))) \ 204 && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 203 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 205 204 FloatRect(const NSRect&); 206 205 operator NSRect() const; -
trunk/Source/WebCore/platform/graphics/FloatSize.h
r147855 r147888 50 50 #endif 51 51 52 #if PLATFORM(MAC) || (PLATFORM( CHROMIUM) && OS(DARWIN)) || (PLATFORM(QT) && USE(QTKIT))52 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) 53 53 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 54 54 typedef struct CGSize NSSize; … … 136 136 #endif 137 137 138 #if (PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))) \ 139 && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) \ 140 || (PLATFORM(QT) && USE(QTKIT)) 138 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) || (PLATFORM(QT) && USE(QTKIT)) 141 139 explicit FloatSize(const NSSize &); // don't do this implicitly since it's lossy 142 140 operator NSSize() const; -
trunk/Source/WebCore/platform/graphics/Font.cpp
r142810 r147888 238 238 } 239 239 240 #if !(PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))) 241 240 #if !PLATFORM(MAC) 242 241 PassOwnPtr<TextLayout> Font::createLayout(RenderText*, float, bool) const 243 242 { … … 254 253 return 0; 255 254 } 256 257 255 #endif 258 256 -
trunk/Source/WebCore/platform/graphics/Font.h
r146630 r147888 156 156 return glyphDataAndPageForCharacter(c, mirror, variant).first; 157 157 } 158 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))158 #if PLATFORM(MAC) 159 159 const SimpleFontData* fontDataForCombiningCharacterSequence(const UChar*, size_t length, FontDataVariant) const; 160 160 #endif -
trunk/Source/WebCore/platform/graphics/FontCache.cpp
r147702 r147888 289 289 static FontDataCache* gFontDataCache = 0; 290 290 291 #if PLATFORM(CHROMIUM) && !OS(ANDROID)292 const int cMaxInactiveFontData = 250;293 const int cTargetInactiveFontData = 200;294 #else295 291 const int cMaxInactiveFontData = 225; 296 292 const int cTargetInactiveFontData = 200; 297 #endif298 293 static ListHashSet<RefPtr<SimpleFontData> >* gInactiveFontData = 0; 299 294 -
trunk/Source/WebCore/platform/graphics/FontCache.h
r147639 r147888 108 108 #if PLATFORM(WIN) 109 109 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescription&, ShouldRetain, const LOGFONT&, AtomicString& outFontFamilyName); 110 #elif PLATFORM(CHROMIUM) && OS(WINDOWS)111 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescription&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName);112 110 #endif 113 111 … … 158 156 int m_purgePreventCount; 159 157 160 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN)) ||OS(ANDROID)158 #if PLATFORM(MAC) || OS(ANDROID) 161 159 friend class ComplexTextController; 162 160 #endif -
trunk/Source/WebCore/platform/graphics/FontDescription.h
r136640 r147888 148 148 void setWeight(FontWeight w) { m_weight = w; } 149 149 void setGenericFamily(GenericFamilyType genericFamily) { m_genericFamily = genericFamily; } 150 #if PLATFORM(CHROMIUM) && OS(DARWIN)151 void setUsePrinterFont(bool) { }152 #else153 150 void setUsePrinterFont(bool p) { m_usePrinterFont = p; } 154 #endif155 151 void setRenderingMode(FontRenderingMode mode) { m_renderingMode = mode; } 156 152 void setKerning(Kerning kerning) { m_kerning = kerning; } -
trunk/Source/WebCore/platform/graphics/FontPlatformData.cpp
r147855 r147888 27 27 #include <wtf/text/StringHash.h> 28 28 #include <wtf/text/WTFString.h> 29 30 #if PLATFORM(CHROMIUM) && OS(DARWIN)31 #include "HarfBuzzFace.h"32 #endif33 29 34 30 using namespace std; -
trunk/Source/WebCore/platform/graphics/GlyphBuffer.h
r146209 r147888 40 40 #endif 41 41 42 #if OS(DARWIN) && (PLATFORM(WX) || PLATFORM(CHROMIUM))42 #if OS(DARWIN) && PLATFORM(WX) 43 43 #include <ApplicationServices/ApplicationServices.h> 44 44 #endif … … 65 65 // CG uses CGSize instead of FloatSize so that the result of advances() 66 66 // can be passed directly to CGContextShowGlyphsWithAdvances in FontMac.mm 67 #if USE(CG) || (OS(DARWIN) && (PLATFORM(WX) || PLATFORM(CHROMIUM)))67 #if USE(CG) || (OS(DARWIN) && PLATFORM(WX)) 68 68 struct GlyphBufferAdvance : CGSize { 69 69 public: … … 166 166 #endif 167 167 168 #if USE(CG) || (OS(DARWIN) && (PLATFORM(WX) || PLATFORM(CHROMIUM)))168 #if USE(CG) || (OS(DARWIN) && PLATFORM(WX)) 169 169 CGSize advance = { width, 0 }; 170 170 m_advances.append(advance); -
trunk/Source/WebCore/platform/graphics/GraphicsContext.cpp
r147750 r147888 509 509 if (useLowQualityScale) { 510 510 previousInterpolationQuality = imageInterpolationQuality(); 511 #if PLATFORM(CHROMIUM)512 setImageInterpolationQuality(InterpolationLow);513 #else514 511 // FIXME (49002): Should be InterpolationLow 515 512 setImageInterpolationQuality(InterpolationNone); 516 #endif517 513 } 518 514 … … 596 592 if (useLowQualityScale) { 597 593 InterpolationQuality previousInterpolationQuality = imageInterpolationQuality(); 598 #if PLATFORM(CHROMIUM)599 setImageInterpolationQuality(InterpolationLow);600 #else601 594 // FIXME (49002): Should be InterpolationLow 602 595 setImageInterpolationQuality(InterpolationNone); 603 #endif604 596 image->draw(this, styleColorSpace, dest, src, op, blendMode, useLowQualityScale); 605 597 setImageInterpolationQuality(previousInterpolationQuality); -
trunk/Source/WebCore/platform/graphics/GraphicsContext3D.h
r147684 r147888 41 41 42 42 // FIXME: Find a better way to avoid the name confliction for NO_ERROR. 43 #if ((PLATFORM(CHROMIUM) && OS(WINDOWS)) || PLATFORM(WIN) || (PLATFORM(QT) && OS(WINDOWS)))43 #if PLATFORM(WIN) || (PLATFORM(QT) && OS(WINDOWS)) 44 44 #undef NO_ERROR 45 45 #elif PLATFORM(GTK) … … 81 81 #endif 82 82 83 #if (PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY)) && USE(SKIA)83 #if PLATFORM(BLACKBERRY) && USE(SKIA) 84 84 class GrContext; 85 85 #endif … … 493 493 Platform3DObject platformTexture() const { return m_compositorTexture; } 494 494 CALayer* platformLayer() const { return reinterpret_cast<CALayer*>(m_webGLLayer.get()); } 495 #elif PLATFORM( CHROMIUM) || PLATFORM(BLACKBERRY)495 #elif PLATFORM(BLACKBERRY) 496 496 PlatformGraphicsContext3D platformGraphicsContext3D() const; 497 497 Platform3DObject platformTexture() const; … … 529 529 bool makeContextCurrent(); 530 530 531 #if PLATFORM(MAC) || PLATFORM( CHROMIUM) || PLATFORM(GTK) || PLATFORM(QT) || PLATFORM(EFL) || PLATFORM(BLACKBERRY)531 #if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(QT) || PLATFORM(EFL) || PLATFORM(BLACKBERRY) 532 532 // With multisampling on, blit from multisampleFBO to regular FBO. 533 533 void prepareTexture(); … … 1057 1057 friend class Extensions3DOpenGLES; 1058 1058 OwnPtr<Extensions3DOpenGLES> m_extensions; 1059 #el if !PLATFORM(CHROMIUM)1059 #else 1060 1060 friend class Extensions3DOpenGL; 1061 1061 OwnPtr<Extensions3DOpenGL> m_extensions; -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.h
r147797 r147888 429 429 static bool supportsBackgroundColorContent() 430 430 { 431 #if USE(CA) || USE(TEXTURE_MAPPER) || PLATFORM(CHROMIUM)431 #if USE(CA) || USE(TEXTURE_MAPPER) 432 432 return true; 433 433 #else -
trunk/Source/WebCore/platform/graphics/Icon.h
r138326 r147888 36 36 #elif PLATFORM(GTK) 37 37 typedef struct _GdkPixbuf GdkPixbuf; 38 #elif PLATFORM(CHROMIUM)39 #include "Image.h"40 #include "PlatformIcon.h"41 38 #endif 42 39 … … 56 53 #if PLATFORM(WIN) 57 54 static PassRefPtr<Icon> create(HICON hIcon) { return adoptRef(new Icon(hIcon)); } 58 #elif PLATFORM(CHROMIUM)59 static PassRefPtr<Icon> create(PassRefPtr<PlatformIcon> icon) { return adoptRef(new Icon(icon)); }60 55 #endif 61 56 … … 76 71 Icon(); 77 72 Evas_Object* m_icon; 78 #elif PLATFORM(CHROMIUM)79 Icon(PassRefPtr<PlatformIcon>);80 RefPtr<PlatformIcon> m_icon;81 73 #endif 82 74 }; -
trunk/Source/WebCore/platform/graphics/ImageSource.cpp
r147622 r147888 36 36 #include "PlatformMemoryInstrumentation.h" 37 37 38 #if PLATFORM(CHROMIUM)39 #include "DeferredImageDecoder.h"40 #endif41 42 38 namespace WebCore { 43 39 -
trunk/Source/WebCore/platform/graphics/ImageSource.h
r147622 r147888 49 49 #if USE(CG) 50 50 typedef CGImageSourceRef NativeImageDecoderPtr; 51 #el if !PLATFORM(CHROMIUM)51 #else 52 52 class ImageDecoder; 53 53 typedef ImageDecoder* NativeImageDecoderPtr; 54 54 #endif 55 55 56 #if PLATFORM(CHROMIUM) 57 class DeferredImageDecoder; 58 typedef DeferredImageDecoder NativeImageDecoder; 59 typedef DeferredImageDecoder* NativeImageDecoderPtr; 60 #elif USE(CG) 56 #if USE(CG) 61 57 #define NativeImageDecoder ImageDecoder 62 58 #else -
trunk/Source/WebCore/platform/graphics/IntRect.h
r147855 r147888 34 34 #endif 35 35 36 #if PLATFORM(MAC) || (PLATFORM( CHROMIUM) && OS(DARWIN)) || (PLATFORM(QT) && USE(QTKIT))36 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) 37 37 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 38 38 typedef struct CGRect NSRect; … … 231 231 #endif 232 232 233 #if (PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))) \ 234 && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) \ 235 || (PLATFORM(QT) && USE(QTKIT)) 233 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) || (PLATFORM(QT) && USE(QTKIT)) 236 234 operator NSRect() const; 237 235 #endif … … 284 282 #endif 285 283 286 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \ 287 || (PLATFORM(CHROMIUM) && OS(DARWIN)) || (PLATFORM(QT) && USE(QTKIT)) 284 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) || (PLATFORM(QT) && USE(QTKIT)) 288 285 IntRect enclosingIntRect(const NSRect&); 289 286 #endif -
trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp
r147675 r147888 77 77 #define PlatformMediaEngineClassName MediaPlayerPrivateQt 78 78 #endif 79 #elif PLATFORM(CHROMIUM)80 #include "MediaPlayerPrivateChromium.h"81 #define PlatformMediaEngineClassName MediaPlayerPrivate82 79 #elif PLATFORM(BLACKBERRY) 83 80 #include "MediaPlayerPrivateBlackBerry.h" -
trunk/Source/WebCore/platform/graphics/PlatformLayer.h
r146478 r147888 39 39 typedef TextureMapperPlatformLayer PlatformLayer; 40 40 }; 41 #elif PLATFORM(CHROMIUM)42 namespace WebKit {43 class WebLayer;44 }45 namespace WebCore {46 typedef WebKit::WebLayer PlatformLayer;47 }48 41 #elif PLATFORM(GTK) 49 42 #if USE(TEXTURE_MAPPER_CAIRO) || USE(TEXTURE_MAPPER_GL) -
trunk/Source/WebCore/platform/graphics/SimpleFontData.h
r147855 r147888 46 46 #endif 47 47 48 #if PLATFORM(MAC) || (PLATFORM( CHROMIUM) && OS(DARWIN)) || (PLATFORM(WX) && OS(DARWIN))48 #if PLATFORM(MAC) || (PLATFORM(WX) && OS(DARWIN)) 49 49 #include <wtf/RetainPtr.h> 50 50 #endif … … 186 186 #endif 187 187 188 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))188 #if PLATFORM(MAC) 189 189 const SimpleFontData* getCompositeFontReferenceFontData(NSFont *key) const; 190 190 NSFont* getNSFont() const { return m_platformData.font(); } … … 194 194 #endif 195 195 196 #if PLATFORM(MAC) || (PLATFORM( CHROMIUM) && OS(DARWIN)) || (PLATFORM(WX) && OS(DARWIN))196 #if PLATFORM(MAC) || (PLATFORM(WX) && OS(DARWIN)) 197 197 CFDictionaryRef getCFStringAttributes(TypesettingFeatures, FontOrientation) const; 198 198 #endif 199 199 200 #if PLATFORM(MAC) || (PLATFORM( CHROMIUM) && OS(DARWIN)) || (PLATFORM(WX) && OS(DARWIN)) || USE(HARFBUZZ)200 #if PLATFORM(MAC) || (PLATFORM(WX) && OS(DARWIN)) || USE(HARFBUZZ) 201 201 bool canRenderCombiningCharacterSequence(const UChar*, size_t) const; 202 202 #endif … … 301 301 RefPtr<SimpleFontData> verticalRightOrientation; 302 302 RefPtr<SimpleFontData> uprightOrientation; 303 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))303 #if PLATFORM(MAC) 304 304 mutable RetainPtr<CFMutableDictionaryRef> compositeFontReferences; 305 305 #endif … … 318 318 #endif 319 319 320 #if PLATFORM(MAC) || (PLATFORM( CHROMIUM) && OS(DARWIN)) || (PLATFORM(WX) && OS(DARWIN))320 #if PLATFORM(MAC) || (PLATFORM(WX) && OS(DARWIN)) 321 321 mutable HashMap<unsigned, RetainPtr<CFDictionaryRef> > m_CFStringAttributes; 322 322 #endif 323 323 324 #if PLATFORM(MAC) || (PLATFORM( CHROMIUM) && OS(DARWIN)) || (PLATFORM(WX) && OS(DARWIN)) || USE(HARFBUZZ)324 #if PLATFORM(MAC) || (PLATFORM(WX) && OS(DARWIN)) || USE(HARFBUZZ) 325 325 mutable OwnPtr<HashMap<String, bool> > m_combiningCharacterSequenceSupport; 326 326 #endif -
trunk/Source/WebCore/platform/graphics/filters/FECustomFilter.cpp
r137754 r147888 332 332 m_context->bindTexture(GraphicsContext3D::TEXTURE_2D, m_destTexture); 333 333 // We are going to clear the output buffer anyway, so we can safely initialize the destination texture with garbage data. 334 #if PLATFORM(CHROMIUM)335 // FIXME: GraphicsContext3D::texImage2DDirect is not implemented on Chromium.336 m_context->texImage2D(GraphicsContext3D::TEXTURE_2D, 0, GraphicsContext3D::RGBA, newContextSize.width(), newContextSize.height(), 0, GraphicsContext3D::RGBA, GraphicsContext3D::UNSIGNED_BYTE, 0);337 #else338 334 m_context->texImage2DDirect(GraphicsContext3D::TEXTURE_2D, 0, GraphicsContext3D::RGBA, newContextSize.width(), newContextSize.height(), 0, GraphicsContext3D::RGBA, GraphicsContext3D::UNSIGNED_BYTE, 0); 339 #endif340 335 m_context->framebufferTexture2D(GraphicsContext3D::FRAMEBUFFER, GraphicsContext3D::COLOR_ATTACHMENT0, GraphicsContext3D::TEXTURE_2D, m_destTexture, 0); 341 336 -
trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.h
r145856 r147888 47 47 class GraphicsContext3D; 48 48 class ImageData; 49 #if PLATFORM(CHROMIUM)50 class DrawingBufferPrivate;51 #endif52 49 53 50 // Manages a rendering target (framebuffer + attachment) for a canvas. Can publish its rendering … … 173 170 bool m_contentsChanged; 174 171 175 #if PLATFORM(CHROMIUM)176 OwnPtr<DrawingBufferPrivate> m_private;177 #endif178 179 172 #if PLATFORM(MAC) 180 173 RetainPtr<WebGLLayer> m_platformLayer; -
trunk/Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp
r147775 r147888 30 30 31 31 #include "Extensions3D.h" 32 #if PLATFORM(CHROMIUM)33 #include "GraphicsContext3DPrivate.h"34 #include <public/Platform.h>35 #include <public/WebGraphicsContext3D.h>36 #endif37 32 #include <wtf/MainThread.h> 38 33 -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
r144358 r147888 171 171 String translatedShaderSource; 172 172 String shaderInfoLog; 173 int extraCompileOptions = SH_MAP_LONG_VARIABLE_NAMES ;173 int extraCompileOptions = SH_MAP_LONG_VARIABLE_NAMES | SH_CLAMP_INDIRECT_ARRAY_BOUNDS; 174 174 175 175 if (m_requiresBuiltInFunctionEmulation) 176 176 extraCompileOptions |= SH_EMULATE_BUILT_IN_FUNCTIONS; 177 178 #if !PLATFORM(CHROMIUM)179 // Chromium does not use the ANGLE bundled in WebKit source, and thus180 // does not yet have the symbol SH_CLAMP_INDIRECT_ARRAY_BOUNDS.181 extraCompileOptions |= SH_CLAMP_INDIRECT_ARRAY_BOUNDS;182 #endif183 177 184 178 Vector<ANGLEShaderSymbol> symbols; -
trunk/Source/WebCore/platform/image-decoders/ImageDecoder.h
r147622 r147888 148 148 } 149 149 150 #if PLATFORM(CHROMIUM)151 void setSkBitmap(const SkBitmap& bitmap)152 {153 m_bitmap = NativeImageSkia::create(bitmap);154 }155 156 const SkBitmap& getSkBitmap() const157 {158 return m_bitmap->bitmap();159 }160 161 void setMemoryAllocator(SkBitmap::Allocator* allocator)162 {163 m_allocator = allocator;164 }165 166 SkBitmap::Allocator* allocator() const { return m_allocator; }167 #endif168 169 150 // Use fix point multiplier instead of integer division or floating point math. 170 151 // This multipler produces exactly the same result for all values in range 0 - 255. -
trunk/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
r146950 r147888 35 35 #include "LevelDBWriteBatch.h" 36 36 #include "Logging.h" 37 #include "NotImplemented.h" 37 38 #include <helpers/memenv/memenv.h> 38 39 #include <leveldb/comparator.h> … … 45 46 #include <wtf/text/WTFString.h> 46 47 47 #if PLATFORM(CHROMIUM)48 #include <env_idb.h>49 #include <public/Platform.h>50 #endif51 52 #if !PLATFORM(CHROMIUM)53 48 namespace leveldb { 54 49 … … 59 54 60 55 } 61 #endif62 56 63 57 namespace WebCore { … … 142 136 const leveldb::Status s = leveldb::DestroyDB(fileName.utf8().data(), options); 143 137 return s.ok(); 144 }145 146 static void histogramFreeSpace(const char* type, String fileName)147 {148 #if PLATFORM(CHROMIUM)149 String name = "WebCore.IndexedDB.LevelDB.Open" + String(type) + "FreeDiskSpace";150 long long freeDiskSpaceInKBytes = WebKit::Platform::current()->availableDiskSpaceInBytes(fileName) / 1024;151 if (freeDiskSpaceInKBytes < 0) {152 HistogramSupport::histogramEnumeration("WebCore.IndexedDB.LevelDB.FreeDiskSpaceFailure", 1/*sample*/, 2/*boundary*/);153 return;154 }155 int clampedDiskSpaceKBytes = freeDiskSpaceInKBytes > INT_MAX ? INT_MAX : freeDiskSpaceInKBytes;156 const uint64_t histogramMax = static_cast<uint64_t>(1e9);157 COMPILE_ASSERT(histogramMax <= INT_MAX, histogramMaxTooBig);158 HistogramSupport::histogramCustomCounts(name.utf8().data(), clampedDiskSpaceKBytes, 1, histogramMax, 11/*buckets*/);159 #endif160 138 } 161 139 … … 189 167 if (!s.ok()) { 190 168 histogramLevelDBError("WebCore.IndexedDB.LevelDBOpenErrors", s); 191 histogramFreeSpace("Failure", fileName);192 169 193 170 LOG_ERROR("Failed to open LevelDB database from %s: %s", fileName.ascii().data(), s.ToString().c_str()); 194 171 return nullptr; 195 172 } 196 197 histogramFreeSpace("Success", fileName);198 173 199 174 OwnPtr<LevelDBDatabase> result = adoptPtr(new LevelDBDatabase); -
trunk/Source/WebCore/platform/network/BlobRegistry.cpp
r144354 r147888 36 36 namespace WebCore { 37 37 38 #if !PLATFORM(CHROMIUM)39 38 BlobRegistry& blobRegistry() 40 39 { … … 48 47 return instance; 49 48 } 50 #endif51 49 52 50 BlobRegistry::~BlobRegistry() -
trunk/Source/WebCore/platform/network/BlobRegistryImpl.cpp
r144671 r147888 50 50 } 51 51 52 #if !PLATFORM(CHROMIUM)53 52 static PassRefPtr<ResourceHandle> createResourceHandle(const ResourceRequest& request, ResourceHandleClient* client) 54 53 { … … 71 70 } 72 71 } 73 74 #else75 76 static void registerBlobResourceHandleConstructor()77 {78 }79 #endif80 72 81 73 PassRefPtr<ResourceHandle> BlobRegistryImpl::createResourceHandle(const ResourceRequest& request, ResourceHandleClient* client) -
trunk/Source/WebCore/platform/network/NetworkStateNotifier.cpp
r127258 r147888 47 47 } 48 48 49 #if PLATFORM(CHROMIUM)50 void NetworkStateNotifier::setOnLine(bool onLine)51 {52 if (m_isOnLine == onLine)53 return;54 55 m_isOnLine = onLine;56 57 if (m_networkStateChangedFunction)58 m_networkStateChangedFunction();59 49 } 60 #endif // PLATFORM(CHROMIUM) || PLATFORM(EFL)61 62 } -
trunk/Source/WebCore/platform/network/NetworkStateNotifier.h
r145741 r147888 72 72 #if (PLATFORM(QT) && !defined(QT_NO_BEARERMANAGEMENT)) 73 73 void setNetworkAccessAllowed(bool); 74 #elif PLATFORM(CHROMIUM)75 void setOnLine(bool);76 74 #endif 77 75 -
trunk/Source/WebCore/platform/network/NetworkingContext.h
r146536 r147888 27 27 #if PLATFORM(MAC) 28 28 #include <wtf/SchedulePair.h> 29 #endif30 31 #if PLATFORM(CHROMIUM)32 namespace WebKit {33 class WebCookieJar;34 }35 29 #endif 36 30 … … 67 61 68 62 virtual bool shouldClearReferrerOnHTTPSToHTTPRedirect() const = 0; 69 70 #if PLATFORM(CHROMIUM)71 // FIXME: Wrap WebCookieJar into a NetworkStorageSession to make the code cross-platform.72 virtual WebKit::WebCookieJar* cookieJar() const = 0;73 #endif74 63 75 64 #if PLATFORM(MAC) -
trunk/Source/WebCore/platform/network/ResourceHandleClient.h
r147839 r147888 117 117 virtual bool shouldCacheResponse(ResourceHandle*, CFCachedURLResponseRef) { return true; } 118 118 #endif 119 #if PLATFORM(CHROMIUM)120 virtual void didDownloadData(ResourceHandle*, int /*dataLength*/) { }121 #endif122 119 123 120 #if USE(SOUP) -
trunk/Source/WebCore/platform/network/ResourceRequestBase.cpp
r144216 r147888 527 527 } 528 528 529 #if !PLATFORM(MAC) && !USE(CFNETWORK) && !USE(SOUP) && !PLATFORM( CHROMIUM) && !PLATFORM(QT) && !PLATFORM(BLACKBERRY)529 #if !PLATFORM(MAC) && !USE(CFNETWORK) && !USE(SOUP) && !PLATFORM(QT) && !PLATFORM(BLACKBERRY) 530 530 unsigned initializeMaximumHTTPConnectionCountPerHost() 531 531 { -
trunk/Source/WebCore/platform/text/cf/HyphenationCF.cpp
r132916 r147888 27 27 #include "Hyphenation.h" 28 28 29 #if (!PLATFORM(MAC) && !PLATFORM(CHROMIUM)) || PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 107029 #if !PLATFORM(MAC) || PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 30 30 31 31 #include "AtomicStringKeyedMRUCache.h" … … 77 77 } // namespace WebCore 78 78 79 #endif // (!PLATFORM(MAC) && !PLATFORM(CHROMIUM)) || PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 107079 #endif // !PLATFORM(MAC) || PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 -
trunk/Source/WebCore/plugins/PluginViewNone.cpp
r147795 r147888 133 133 // added, please make sure they have the proper platform #ifs so that changes 134 134 // do not break ports who compile both this file and PluginView.cpp. 135 #if PLATFORM(MAC) || PLATFORM( CHROMIUM) || PLATFORM(EFL) || (OS(WINCE) && !PLATFORM(QT)) || (PLATFORM(QT) && !OS(WINCE))135 #if PLATFORM(MAC) || PLATFORM(EFL) || (OS(WINCE) && !PLATFORM(QT)) || (PLATFORM(QT) && !OS(WINCE)) 136 136 #if ENABLE(NETSCAPE_PLUGIN_API) 137 137 void PluginView::keepAlive(NPP) -
trunk/Source/WebCore/testing/Internals.cpp
r147857 r147888 125 125 #if ENABLE(MOUSE_CURSOR_SCALE) 126 126 #include <wtf/dtoa.h> 127 #endif128 129 #if PLATFORM(CHROMIUM)130 #include "FilterOperation.h"131 #include "FilterOperations.h"132 #include "GraphicsLayer.h"133 #include "GraphicsLayerChromium.h"134 #include "RenderLayerBacking.h"135 127 #endif 136 128 -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r147795 r147888 766 766 ResourceRequest request(m_url); 767 767 request.setHTTPMethod(m_method); 768 #if PLATFORM( CHROMIUM) || PLATFORM(BLACKBERRY)768 #if PLATFORM(BLACKBERRY) 769 769 request.setTargetType(ResourceRequest::TargetIsXHR); 770 770 #endif
Note:
See TracChangeset
for help on using the changeset viewer.