Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Side by Side Diff: Source/core/page/Frame.cpp

Issue 16509007: Cleanup constants for layerTreeAsText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: naming Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 if (isMainFrame) 515 if (isMainFrame)
516 frameView->setParentVisible(true); 516 frameView->setParentVisible(true);
517 517
518 if (ownerRenderer()) 518 if (ownerRenderer())
519 ownerRenderer()->setWidget(frameView); 519 ownerRenderer()->setWidget(frameView);
520 520
521 if (HTMLFrameOwnerElement* owner = ownerElement()) 521 if (HTMLFrameOwnerElement* owner = ownerElement())
522 view()->setCanHaveScrollbars(owner->scrollingMode() != ScrollbarAlwaysOf f); 522 view()->setCanHaveScrollbars(owner->scrollingMode() != ScrollbarAlwaysOf f);
523 } 523 }
524 524
525 String Frame::layerTreeAsText(LayerTreeFlags flags) const 525 String Frame::layerTreeAsText(unsigned flags) const
526 { 526 {
527 document()->updateLayout(); 527 document()->updateLayout();
528 528
529 if (!contentRenderer()) 529 if (!contentRenderer())
530 return String(); 530 return String();
531 531
532 return contentRenderer()->compositor()->layerTreeAsText(flags); 532 return contentRenderer()->compositor()->layerTreeAsText(static_cast<LayerTre eFlags>(flags));
533 } 533 }
534 534
535 String Frame::trackedRepaintRectsAsText() const 535 String Frame::trackedRepaintRectsAsText() const
536 { 536 {
537 if (!m_view) 537 if (!m_view)
538 return String(); 538 return String();
539 return m_view->trackedRepaintRectsAsText(); 539 return m_view->trackedRepaintRectsAsText();
540 } 540 }
541 541
542 void Frame::setPageZoomFactor(float factor) 542 void Frame::setPageZoomFactor(float factor)
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); 721 buffer->context()->translate(-paintingRect.x(), -paintingRect.y());
722 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma xY())); 722 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma xY()));
723 723
724 m_view->paintContents(buffer->context(), paintingRect); 724 m_view->paintContents(buffer->context(), paintingRect);
725 725
726 RefPtr<Image> image = buffer->copyImage(); 726 RefPtr<Image> image = buffer->copyImage();
727 return createDragImageFromImage(image.get()); 727 return createDragImageFromImage(image.get());
728 } 728 }
729 729
730 } // namespace WebCore 730 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698