Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp
int DumpRenderTreeSupportGtk::pageNumberForElementById(WebKitWebFrame* frame, const char* id, float pageWidth, float pageHeight)
{
    g_return_val_if_fail(WEBKIT_IS_WEB_FRAME(frame), 0);

    Frame* coreFrame = core(frame);
    if (!coreFrame)
        return -1;

    Element* coreElement = coreFrame->document()->getElementById(AtomicString(id));
    if (!coreElement)
        return -1;
    return PrintContext::pageNumberForElement(coreElement, FloatSize(pageWidth, pageHeight));
}
/**
 * numberForElementById
 * @frame: a #WebKitWebFrame
 * @id: an element ID string
 * @pageWidth: width of a page
 * @pageHeight: height of a page
 *
 * Return value: The number of page where the specified element will be put
 */
numberForElementById
@frame: a #WebKitWebFrame
@id: an element ID string
@pageWidth: width of a page
@pageHeight: height of a page

Return value: The number of page where the specified element will be put
numberForElementById @frame : a #WebKitWebFrame @id : an element ID string @pageWidth : width of a page @pageHeight : height of a page Return value : The number of page where the specified element will be put
int DumpRenderTreeSupportGtk::pageNumberForElementById(WebKitWebFrame* frame, const char* id, float pageWidth, float pageHeight)
{
    g_return_val_if_fail(WEBKIT_IS_WEB_FRAME(frame), 0);
    Frame* coreFrame = core(frame);
    if (!coreFrame)
        return -1;
    Element* coreElement = coreFrame->document()->getElementById(AtomicString(id));
    if (!coreElement)
        return -1;
    return PrintContext::pageNumberForElement(coreElement, FloatSize(pageWidth, pageHeight));
}
int DumpRenderTreeSupportGtk :: pageNumberForElementById ( WebKitWebFrame * frame , const char * id , float pageWidth , float pageHeight ) { g_return_val_if_fail ( WEBKIT_IS_WEB_FRAME ( frame ) , 0 ) ; Frame * coreFrame = core ( frame ) ; if ( ! coreFrame ) return -1 ; Element * coreElement = coreFrame -> document ( ) -> getElementById ( AtomicString ( id ) ) ; if ( ! coreElement ) return -1 ; return PrintContext :: pageNumberForElement ( coreElement , FloatSize ( pageWidth , pageHeight ) ) ; }
numberForElementById
 @frame: a #WebKitWebFrame
 @id: an element ID string
 @pageWidth: width of a page
 @pageHeight: height of a page
numberForElementById @frame : a #WebKitWebFrame @id : an element ID string @pageWidth : width of a page @pageHeight : height of a page