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

Unified Diff: Source/core/rendering/svg/SVGInlineTextBox.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/svg/SVGInlineFlowBox.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGInlineTextBox.cpp
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp
index a5dc2fc742cfec09d39bcbf618eb1d3d2b314233..939feb577d140caf08573d08728ee269e22d5d22 100644
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp
@@ -44,8 +44,6 @@
#include "platform/graphics/DrawLooperBuilder.h"
#include "platform/graphics/GraphicsContextStateSaver.h"
-using namespace std;
-
namespace WebCore {
struct ExpectedSVGInlineTextBoxSize : public InlineTextBox {
@@ -147,8 +145,8 @@ FloatRect SVGInlineTextBox::selectionRectForTextFragment(const SVGTextFragment&
LayoutRect SVGInlineTextBox::localSelectionRect(int startPosition, int endPosition)
{
int boxStart = start();
- startPosition = max(startPosition - boxStart, 0);
- endPosition = min(endPosition - boxStart, static_cast<int>(len()));
+ startPosition = std::max(startPosition - boxStart, 0);
+ endPosition = std::min(endPosition - boxStart, static_cast<int>(len()));
if (startPosition >= endPosition)
return LayoutRect();
@@ -728,8 +726,8 @@ void SVGInlineTextBox::paintTextMatchMarker(GraphicsContext* context, const Floa
SVGInlineTextBox* textBox = toSVGInlineTextBox(box);
- int markerStartPosition = max<int>(marker->startOffset() - textBox->start(), 0);
- int markerEndPosition = min<int>(marker->endOffset() - textBox->start(), textBox->len());
+ int markerStartPosition = std::max<int>(marker->startOffset() - textBox->start(), 0);
+ int markerEndPosition = std::min<int>(marker->endOffset() - textBox->start(), textBox->len());
if (markerStartPosition >= markerEndPosition)
continue;
« no previous file with comments | « Source/core/rendering/svg/SVGInlineFlowBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698