本文整理汇总了C++中Page::captionPreferencesChanged方法的典型用法代码示例。如果您正苦于以下问题:C++ Page::captionPreferencesChanged方法的具体用法?C++ Page::captionPreferencesChanged怎么用?C++ Page::captionPreferencesChanged使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Page
的用法示例。
在下文中一共展示了Page::captionPreferencesChanged方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: restore
void CachedPage::restore(Page& page)
{
ASSERT(m_cachedMainFrame);
ASSERT(m_cachedMainFrame->view()->frame().isMainFrame());
ASSERT(!page.subframeCount());
m_cachedMainFrame->open();
// Restore the focus appearance for the focused element.
// FIXME: Right now we don't support pages w/ frames in the b/f cache. This may need to be tweaked when we add support for that.
Document* focusedDocument = page.focusController().focusedOrMainFrame().document();
if (Element* element = focusedDocument->focusedElement())
element->updateFocusAppearance(true);
if (m_needStyleRecalcForVisitedLinks) {
for (Frame* frame = &page.mainFrame(); frame; frame = frame->tree().traverseNext())
frame->document()->visitedLinkState().invalidateStyleForAllLinks();
}
#if USE(ACCELERATED_COMPOSITING)
if (m_needsDeviceScaleChanged) {
page.mainFrame().deviceOrPageScaleFactorChanged();
}
#endif
if (m_needsFullStyleRecalc)
page.setNeedsRecalcStyleInAllFrames();
#if ENABLE(VIDEO_TRACK)
if (m_needsCaptionPreferencesChanged)
page.captionPreferencesChanged();
#endif
clear();
}