这篇教程C++ useFallbackContent函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中useFallbackContent函数的典型用法代码示例。如果您正苦于以下问题:C++ useFallbackContent函数的具体用法?C++ useFallbackContent怎么用?C++ useFallbackContent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了useFallbackContent函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: willRecalcStylebool HTMLPlugInImageElement::willRecalcStyle(StyleChange){ // FIXME: Why is this necessary? Manual re-attach is almost always wrong. if (!useFallbackContent() && needsWidgetUpdate() && renderer() && !isImageType()) reattach(); return true;}
开发者ID:sysrqb,项目名称:chromium-src,代码行数:7,
示例2: documentRenderObject* HTMLPlugInImageElement::createRenderer(RenderArena* arena, RenderStyle* style){ // Once a PlugIn Element creates its renderer, it needs to be told when the Document goes // inactive or reactivates so it can clear the renderer before going into the page cache. if (!m_needsDocumentActivationCallbacks) { m_needsDocumentActivationCallbacks = true; document()->registerForPageCacheSuspensionCallbacks(this); } if (displayState() == DisplayingSnapshot) { RenderSnapshottedPlugIn* renderSnapshottedPlugIn = new (arena) RenderSnapshottedPlugIn(this); renderSnapshottedPlugIn->updateSnapshot(m_snapshotImage); return renderSnapshottedPlugIn; } // Fallback content breaks the DOM->Renderer class relationship of this // class and all superclasses because createObject won't necessarily // return a RenderEmbeddedObject, RenderPart or even RenderWidget. if (useFallbackContent()) return RenderObject::createObject(this, style); if (isImageType()) { RenderImage* image = new (arena) RenderImage(this); image->setImageResource(RenderImageResource::create()); return image; } return new (arena) RenderEmbeddedObject(this);}
开发者ID:ragner,项目名称:webkit,代码行数:29,
示例3: recalcStylevoid HTMLPlugInImageElement::recalcStyle(StyleChange ch){ // FIXME: Why is this necessary? Manual re-attach is almost always wrong. if (!useFallbackContent() && needsWidgetUpdate() && renderer() && !isImageType()) reattach(); HTMLPlugInElement::recalcStyle(ch);}
开发者ID:studiomobile,项目名称:webcore,代码行数:7,
示例4: setNeedsStyleRecalcvoid HTMLObjectElement::renderFallbackContent(){ if (useFallbackContent()) return; if (!inDocument()) return; setNeedsStyleRecalc(ReconstructRenderTree); // Before we give up and use fallback content, check to see if this is a MIME type issue. auto* loader = imageLoader(); if (loader && loader->image() && loader->image()->status() != CachedResource::LoadError) { m_serviceType = loader->image()->response().mimeType(); if (!isImageType()) { // If we don't think we have an image type anymore, then clear the image from the loader. loader->setImage(nullptr); return; } } m_useFallbackContent = true; // This was added to keep Acid 2 non-flaky. A style recalc is required to make fallback resources load. // Without forcing, this may happen after all the other resources have been loaded and the document is already // considered complete. FIXME: Would be better to address this with incrementLoadEventDelayCount instead // or disentangle loading from style entirely. document().updateStyleIfNeeded();}
开发者ID:CannedFish,项目名称:webkit,代码行数:29,
示例5: supportsFocusbool HTMLPlugInElement::supportsFocus() const{ if (HTMLFrameOwnerElement::supportsFocus()) return true; if (useFallbackContent() || !renderer() || !renderer()->isEmbeddedObject()) return false; return !toRenderEmbeddedObject(renderer())->isPluginUnavailable();}
开发者ID:Nord001,项目名称:webkit.js,代码行数:9,
示例6: supportsFocusbool HTMLPlugInElement::supportsFocus() const{ if (HTMLFrameOwnerElement::supportsFocus()) return true; if (useFallbackContent() || !is<RenderEmbeddedObject>(renderer())) return false; return !downcast<RenderEmbeddedObject>(*renderer()).isPluginUnavailable();}
开发者ID:valbok,项目名称:WebKitForWayland,代码行数:9,
示例7: finishParsingChildrenvoid HTMLPlugInImageElement::finishParsingChildren(){ HTMLPlugInElement::finishParsingChildren(); if (useFallbackContent()) return; setNeedsWidgetUpdate(true); if (inDocument()) setNeedsStyleRecalc(); }
开发者ID:sysrqb,项目名称:chromium-src,代码行数:10,
示例8: detachvoid HTMLPlugInImageElement::detach(){ // FIXME: Because of the insanity that is HTMLPlugInImageElement::recalcStyle, // we can end up detaching during an attach() call, before we even have a // renderer. In that case, don't mark the widget for update. if (attached() && renderer() && !useFallbackContent()) // Update the widget the next time we attach (detaching destroys the plugin). setNeedsWidgetUpdate(true); HTMLPlugInElement::detach();}
开发者ID:sysrqb,项目名称:chromium-src,代码行数:10,
示例9: documentvoid HTMLPlugInImageElement::updateWidgetIfNecessary(){ document()->updateStyleIfNeeded(); if (!needsWidgetUpdate() || useFallbackContent() || isImageType()) return; if (!renderEmbeddedObject() || renderEmbeddedObject()->pluginCrashedOrWasMissing()) return; updateWidget(CreateOnlyNonNetscapePlugins);}
开发者ID:sysrqb,项目名称:chromium-src,代码行数:12,
示例10: createRendererRenderObject* HTMLPlugInImageElement::createRenderer(RenderArena* arena, RenderStyle* style){ // Fallback content breaks the DOM->Renderer class relationship of this // class and all superclasses because createObject won't necessarily // return a RenderEmbeddedObject, RenderPart or even RenderWidget. if (useFallbackContent()) return RenderObject::createObject(this, style); if (isImageType()) { RenderImage* image = new (arena) RenderImage(this); image->setImageResource(RenderImageResource::create()); return image; } return new (arena) RenderEmbeddedObject(this);}
开发者ID:sysrqb,项目名称:chromium-src,代码行数:14,
示例11: isImageTypevoid HTMLPlugInImageElement::attach(){ bool isImage = isImageType(); if (!isImage) queuePostAttachCallback(&HTMLPlugInImageElement::updateWidgetCallback, this); HTMLPlugInElement::attach(); if (isImage && renderer() && !useFallbackContent()) { if (!m_imageLoader) m_imageLoader = adoptPtr(new HTMLImageLoader(this)); m_imageLoader->updateFromElement(); }}
开发者ID:sysrqb,项目名称:chromium-src,代码行数:15,
注:本文中的useFallbackContent函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ useVBOs函数代码示例 C++ use函数代码示例 |