本文整理汇总了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);
}
示例2: clientDestroyed
void SVGResourcesCache::clientDestroyed(RenderElement& renderer)
{
SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(renderer);
if (resources)
resources->removeClientFromCache(renderer);
SVGResourcesCache* cache = resourcesCacheFromRenderObject(renderer);
cache->removeResourcesFromRenderer(renderer);
}
示例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);
}
示例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);
}
示例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);
}
示例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
}