345
346
// Try the <body> element first as a scrollbar source.
346
347
Element* body = doc ? doc->body() : 0;
347
348
if (body && body->renderer() && body->renderer()->style()->hasPseudoStyle(SCROLLBAR))
350
351
// If the <body> didn't have a custom style, then the root element might.
351
352
Element* docElement = doc ? doc->documentElement() : 0;