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

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

Issue 2181953004: Changed ComputedStyle's EVisibility to be an enum class and fixed naming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_move_computedstyle_around
Patch Set: Rebase Created 4 years, 4 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 573
574 adjustedLayoutBoundsWithScrollbars.setWidth(layoutView->viewWidth(Includ eScrollbars)); 574 adjustedLayoutBoundsWithScrollbars.setWidth(layoutView->viewWidth(Includ eScrollbars));
575 adjustedLayoutBoundsWithScrollbars.setHeight(layoutView->viewHeight(Incl udeScrollbars)); 575 adjustedLayoutBoundsWithScrollbars.setHeight(layoutView->viewHeight(Incl udeScrollbars));
576 } 576 }
577 577
578 if (markedLayer) 578 if (markedLayer)
579 ts << (markedLayer == &layer ? "*" : " "); 579 ts << (markedLayer == &layer ? "*" : " ");
580 580
581 writeIndent(ts, indent); 581 writeIndent(ts, indent);
582 582
583 if (layer.layoutObject()->style()->visibility() == HIDDEN) 583 if (layer.layoutObject()->style()->visibility() == EVisibility::Hidden)
584 ts << "hidden "; 584 ts << "hidden ";
585 585
586 ts << "layer "; 586 ts << "layer ";
587 587
588 if (behavior & LayoutAsTextShowAddresses) 588 if (behavior & LayoutAsTextShowAddresses)
589 ts << static_cast<const void*>(&layer) << " "; 589 ts << static_cast<const void*>(&layer) << " ";
590 590
591 ts << adjustedLayoutBoundsWithScrollbars; 591 ts << adjustedLayoutBoundsWithScrollbars;
592 592
593 if (!adjustedLayoutBounds.isEmpty()) { 593 if (!adjustedLayoutBounds.isEmpty()) {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 element->document().updateStyleAndLayout(); 845 element->document().updateStyleAndLayout();
846 846
847 LayoutObject* layoutObject = element->layoutObject(); 847 LayoutObject* layoutObject = element->layoutObject();
848 if (!layoutObject || !layoutObject->isListItem()) 848 if (!layoutObject || !layoutObject->isListItem())
849 return String(); 849 return String();
850 850
851 return toLayoutListItem(layoutObject)->markerText(); 851 return toLayoutListItem(layoutObject)->markerText();
852 } 852 }
853 853
854 } // namespace blink 854 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698