当前位置: 首页>>代码示例>>C++>>正文


C++ SVGResources::removeClientFromCache方法代码示例

本文整理汇总了C++中SVGResources::removeClientFromCache方法的典型用法代码示例。如果您正苦于以下问题:C++ SVGResources::removeClientFromCache方法的具体用法?C++ SVGResources::removeClientFromCache怎么用?C++ SVGResources::removeClientFromCache使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SVGResources的用法示例。


在下文中一共展示了SVGResources::removeClientFromCache方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: clientLayoutChanged

void SVGResourcesCache::clientLayoutChanged(RenderObject* object)
{
    SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(object);
    if (!resources)
        return;

    resources->removeClientFromCache(object);
}
开发者ID:Xertz,项目名称:EAWebKit,代码行数:8,代码来源:SVGResourcesCache.cpp

示例2: clientDestroyed

void SVGResourcesCache::clientDestroyed(RenderElement& renderer)
{
    SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(renderer);
    if (resources)
        resources->removeClientFromCache(renderer);

    SVGResourcesCache* cache = resourcesCacheFromRenderObject(renderer);
    cache->removeResourcesFromRenderer(renderer);
}
开发者ID:CannedFish,项目名称:webkitgtk,代码行数:9,代码来源:SVGResourcesCache.cpp

示例3: clientLayoutChanged

void SVGResourcesCache::clientLayoutChanged(RenderElement& renderer)
{
    SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(renderer);
    if (!resources)
        return;

    // Invalidate the resources if either the RenderElement itself changed,
    // or we have filter resources, which could depend on the layout of children.
    if (renderer.selfNeedsLayout())
        resources->removeClientFromCache(renderer);
}
开发者ID:CannedFish,项目名称:webkitgtk,代码行数:11,代码来源:SVGResourcesCache.cpp

示例4: clientLayoutChanged

void SVGResourcesCache::clientLayoutChanged(LayoutObject* object)
{
    SVGResources* resources = SVGResourcesCache::cachedResourcesForLayoutObject(object);
    if (!resources)
        return;

    // Invalidate the resources if either the LayoutObject itself changed,
    // or we have filter resources, which could depend on the layout of children.
    if (object->selfNeedsLayout() || resources->filter())
        resources->removeClientFromCache(object);
}
开发者ID:alexanderbill,项目名称:blink-crosswalk,代码行数:11,代码来源:SVGResourcesCache.cpp

示例5: clientDestroyed

void SVGResourcesCache::clientDestroyed(LayoutObject* layoutObject)
{
    ASSERT(layoutObject);

    SVGResources* resources = SVGResourcesCache::cachedResourcesForLayoutObject(layoutObject);
    if (resources)
        resources->removeClientFromCache(layoutObject);

    SVGResourcesCache* cache = resourcesCacheFromLayoutObject(layoutObject);
    cache->removeResourcesFromLayoutObject(layoutObject);
}
开发者ID:alexanderbill,项目名称:blink-crosswalk,代码行数:11,代码来源:SVGResourcesCache.cpp

示例6: clientUpdatedFromElement

void SVGResourcesCache::clientUpdatedFromElement(RenderObject* renderer, const RenderStyle* newStyle)
{
    ASSERT(renderer);
    ASSERT(renderer->parent());

    SVGResourcesCache* cache = resourcesCacheFromRenderObject(renderer);
    cache->removeResourcesFromRenderObject(renderer);
    cache->addResourcesFromRenderObject(renderer, newStyle);

#if ENABLE(FILTERS)
    SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(renderer);
    if (resources && resources->filter())
        resources->removeClientFromCache(renderer);
#endif
}
开发者ID:1833183060,项目名称:wke,代码行数:15,代码来源:SVGResourcesCache.cpp


注:本文中的SVGResources::removeClientFromCache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。