| OLD | NEW |
| 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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 range->startPosition(), range->endPosition(), underlineColor, thick, | 1047 range->startPosition(), range->endPosition(), underlineColor, thick, |
| 1048 backgroundColor); | 1048 backgroundColor); |
| 1049 } | 1049 } |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 void Internals::setMarkersActive(Node* node, | 1052 void Internals::setMarkersActive(Node* node, |
| 1053 unsigned startOffset, | 1053 unsigned startOffset, |
| 1054 unsigned endOffset, | 1054 unsigned endOffset, |
| 1055 bool active) { | 1055 bool active) { |
| 1056 DCHECK(node); | 1056 DCHECK(node); |
| 1057 node->document().markers().setMarkersActive(node, startOffset, endOffset, | 1057 node->document().markers().setTextMatchMarkersActive(node, startOffset, |
| 1058 active); | 1058 endOffset, active); |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 void Internals::setMarkedTextMatchesAreHighlighted(Document* document, | 1061 void Internals::setMarkedTextMatchesAreHighlighted(Document* document, |
| 1062 bool highlight) { | 1062 bool highlight) { |
| 1063 if (!document || !document->frame()) | 1063 if (!document || !document->frame()) |
| 1064 return; | 1064 return; |
| 1065 | 1065 |
| 1066 document->frame()->editor().setMarkedTextMatchesAreHighlighted(highlight); | 1066 document->frame()->editor().setMarkedTextMatchesAreHighlighted(highlight); |
| 1067 } | 1067 } |
| 1068 | 1068 |
| (...skipping 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |