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

Side by Side Diff: Source/core/rendering/RenderLayer.cpp

Issue 339333002: Removing using declarations that import names in the C++ Standard library. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing mac error Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "platform/graphics/GraphicsContextStateSaver.h" 84 #include "platform/graphics/GraphicsContextStateSaver.h"
85 #include "platform/graphics/filters/ReferenceFilter.h" 85 #include "platform/graphics/filters/ReferenceFilter.h"
86 #include "platform/graphics/filters/SourceGraphic.h" 86 #include "platform/graphics/filters/SourceGraphic.h"
87 #include "platform/transforms/ScaleTransformOperation.h" 87 #include "platform/transforms/ScaleTransformOperation.h"
88 #include "platform/transforms/TransformationMatrix.h" 88 #include "platform/transforms/TransformationMatrix.h"
89 #include "platform/transforms/TranslateTransformOperation.h" 89 #include "platform/transforms/TranslateTransformOperation.h"
90 #include "public/platform/Platform.h" 90 #include "public/platform/Platform.h"
91 #include "wtf/StdLibExtras.h" 91 #include "wtf/StdLibExtras.h"
92 #include "wtf/text/CString.h" 92 #include "wtf/text/CString.h"
93 93
94 using namespace std;
95
96 namespace WebCore { 94 namespace WebCore {
97 95
98 namespace { 96 namespace {
99 97
100 static CompositingQueryMode gCompositingQueryMode = 98 static CompositingQueryMode gCompositingQueryMode =
101 CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases; 99 CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases;
102 100
103 } // namespace 101 } // namespace
104 102
105 using namespace HTMLNames; 103 using namespace HTMLNames;
(...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after
2759 RefPtr<HitTestingTransformState> unflattenedTransformState = localTransformS tate; 2757 RefPtr<HitTestingTransformState> unflattenedTransformState = localTransformS tate;
2760 if (localTransformState && !preserves3D()) { 2758 if (localTransformState && !preserves3D()) {
2761 // Keep a copy of the pre-flattening state, for computing z-offsets for the container 2759 // Keep a copy of the pre-flattening state, for computing z-offsets for the container
2762 unflattenedTransformState = HitTestingTransformState::create(*localTrans formState); 2760 unflattenedTransformState = HitTestingTransformState::create(*localTrans formState);
2763 // This layer is flattening, so flatten the state passed to descendants. 2761 // This layer is flattening, so flatten the state passed to descendants.
2764 localTransformState->flatten(); 2762 localTransformState->flatten();
2765 } 2763 }
2766 2764
2767 // The following are used for keeping track of the z-depth of the hit point of 3d-transformed 2765 // The following are used for keeping track of the z-depth of the hit point of 3d-transformed
2768 // descendants. 2766 // descendants.
2769 double localZOffset = -numeric_limits<double>::infinity(); 2767 double localZOffset = -std::numeric_limits<double>::infinity();
2770 double* zOffsetForDescendantsPtr = 0; 2768 double* zOffsetForDescendantsPtr = 0;
2771 double* zOffsetForContentsPtr = 0; 2769 double* zOffsetForContentsPtr = 0;
2772 2770
2773 bool depthSortDescendants = false; 2771 bool depthSortDescendants = false;
2774 if (preserves3D()) { 2772 if (preserves3D()) {
2775 depthSortDescendants = true; 2773 depthSortDescendants = true;
2776 // Our layers can depth-test with our container, so share the z depth po inter with the container, if it passed one down. 2774 // Our layers can depth-test with our container, so share the z depth po inter with the container, if it passed one down.
2777 zOffsetForDescendantsPtr = zOffset ? zOffset : &localZOffset; 2775 zOffsetForDescendantsPtr = zOffset ? zOffset : &localZOffset;
2778 zOffsetForContentsPtr = zOffset ? zOffset : &localZOffset; 2776 zOffsetForContentsPtr = zOffset ? zOffset : &localZOffset;
2779 } else if (m_has3DTransformedDescendant) { 2777 } else if (m_has3DTransformedDescendant) {
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
3850 } 3848 }
3851 } 3849 }
3852 3850
3853 void showLayerTree(const WebCore::RenderObject* renderer) 3851 void showLayerTree(const WebCore::RenderObject* renderer)
3854 { 3852 {
3855 if (!renderer) 3853 if (!renderer)
3856 return; 3854 return;
3857 showLayerTree(renderer->enclosingLayer()); 3855 showLayerTree(renderer->enclosingLayer());
3858 } 3856 }
3859 #endif 3857 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderInline.cpp ('k') | Source/core/rendering/RenderLayerModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698