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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp

Issue 2723993002: Rename platform/Widget to platform/FrameViewBase in core. (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 } 519 }
520 520
521 for (LayoutObject* child = o.slowFirstChild(); child; 521 for (LayoutObject* child = o.slowFirstChild(); child;
522 child = child->nextSibling()) { 522 child = child->nextSibling()) {
523 if (child->hasLayer()) 523 if (child->hasLayer())
524 continue; 524 continue;
525 write(ts, *child, indent + 1, behavior); 525 write(ts, *child, indent + 1, behavior);
526 } 526 }
527 527
528 if (o.isLayoutPart()) { 528 if (o.isLayoutPart()) {
529 Widget* widget = toLayoutPart(o).widget(); 529 FrameViewBase* frameViewBase = toLayoutPart(o).widget();
530 if (widget && widget->isFrameView()) { 530 if (frameViewBase && frameViewBase->isFrameView()) {
531 FrameView* view = toFrameView(widget); 531 FrameView* view = toFrameView(frameViewBase);
532 LayoutViewItem rootItem = view->layoutViewItem(); 532 LayoutViewItem rootItem = view->layoutViewItem();
533 if (!rootItem.isNull()) { 533 if (!rootItem.isNull()) {
534 rootItem.updateStyleAndLayout(); 534 rootItem.updateStyleAndLayout();
535 PaintLayer* layer = rootItem.layer(); 535 PaintLayer* layer = rootItem.layer();
536 if (layer) 536 if (layer)
537 LayoutTreeAsText::writeLayers(ts, layer, layer, layer->rect(), 537 LayoutTreeAsText::writeLayers(ts, layer, layer, layer->rect(),
538 indent + 1, behavior); 538 indent + 1, behavior);
539 } 539 }
540 } 540 }
541 } 541 }
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 element->document().updateStyleAndLayout(); 883 element->document().updateStyleAndLayout();
884 884
885 LayoutObject* layoutObject = element->layoutObject(); 885 LayoutObject* layoutObject = element->layoutObject();
886 if (!layoutObject || !layoutObject->isListItem()) 886 if (!layoutObject || !layoutObject->isListItem())
887 return String(); 887 return String();
888 888
889 return toLayoutListItem(layoutObject)->markerText(); 889 return toLayoutListItem(layoutObject)->markerText();
890 } 890 }
891 891
892 } // namespace blink 892 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698