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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2789373003: Rename DocumentMarker::activeMatch() to IsActiveMatch() (Closed)
Patch Set: Remove dependency Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 unsigned Internals::activeMarkerCountForNode(Node* node) { 947 unsigned Internals::activeMarkerCountForNode(Node* node) {
948 DCHECK(node); 948 DCHECK(node);
949 949
950 // Only TextMatch markers can be active. 950 // Only TextMatch markers can be active.
951 DocumentMarker::MarkerType markerType = DocumentMarker::TextMatch; 951 DocumentMarker::MarkerType markerType = DocumentMarker::TextMatch;
952 DocumentMarkerVector markers = 952 DocumentMarkerVector markers =
953 node->document().markers().markersFor(node, markerType); 953 node->document().markers().markersFor(node, markerType);
954 954
955 unsigned activeMarkerCount = 0; 955 unsigned activeMarkerCount = 0;
956 for (const auto& marker : markers) { 956 for (const auto& marker : markers) {
957 if (marker->activeMatch()) 957 if (marker->IsActiveMatch())
958 activeMarkerCount++; 958 activeMarkerCount++;
959 } 959 }
960 960
961 return activeMarkerCount; 961 return activeMarkerCount;
962 } 962 }
963 963
964 DocumentMarker* Internals::markerAt(Node* node, 964 DocumentMarker* Internals::markerAt(Node* node,
965 const String& markerType, 965 const String& markerType,
966 unsigned index, 966 unsigned index,
967 ExceptionState& exceptionState) { 967 ExceptionState& exceptionState) {
(...skipping 2252 matching lines...) Expand 10 before | Expand all | Expand 10 after
3220 3220
3221 void Internals::crash() { 3221 void Internals::crash() {
3222 CHECK(false) << "Intentional crash"; 3222 CHECK(false) << "Intentional crash";
3223 } 3223 }
3224 3224
3225 void Internals::setIsLowEndDevice(bool isLowEndDevice) { 3225 void Internals::setIsLowEndDevice(bool isLowEndDevice) {
3226 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); 3226 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice);
3227 } 3227 }
3228 3228
3229 } // namespace blink 3229 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698