| 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 return String(); | 1003 return String(); |
| 1004 return marker->description(); | 1004 return marker->description(); |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 void Internals::addTextMatchMarker(const Range* range, bool isActive) { | 1007 void Internals::addTextMatchMarker(const Range* range, bool isActive) { |
| 1008 DCHECK(range); | 1008 DCHECK(range); |
| 1009 if (!range->ownerDocument().view()) | 1009 if (!range->ownerDocument().view()) |
| 1010 return; | 1010 return; |
| 1011 | 1011 |
| 1012 range->ownerDocument().updateStyleAndLayoutIgnorePendingStylesheets(); | 1012 range->ownerDocument().updateStyleAndLayoutIgnorePendingStylesheets(); |
| 1013 range->ownerDocument().markers().addTextMatchMarker(EphemeralRange(range), | 1013 range->ownerDocument().markers().addTextMatchMarker( |
| 1014 isActive); | 1014 EphemeralRange(range), isActive ? DocumentMarker::MatchStatus::kActive |
| 1015 : DocumentMarker::MatchStatus::kInactive); |
| 1015 | 1016 |
| 1016 // This simulates what the production code does after | 1017 // This simulates what the production code does after |
| 1017 // DocumentMarkerController::addTextMatchMarker(). | 1018 // DocumentMarkerController::addTextMatchMarker(). |
| 1018 range->ownerDocument().view()->invalidatePaintForTickmarks(); | 1019 range->ownerDocument().view()->invalidatePaintForTickmarks(); |
| 1019 } | 1020 } |
| 1020 | 1021 |
| 1021 static bool parseColor(const String& value, | 1022 static bool parseColor(const String& value, |
| 1022 Color& color, | 1023 Color& color, |
| 1023 ExceptionState& exceptionState, | 1024 ExceptionState& exceptionState, |
| 1024 String errorMessage) { | 1025 String errorMessage) { |
| (...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3220 | 3221 |
| 3221 void Internals::crash() { | 3222 void Internals::crash() { |
| 3222 CHECK(false) << "Intentional crash"; | 3223 CHECK(false) << "Intentional crash"; |
| 3223 } | 3224 } |
| 3224 | 3225 |
| 3225 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3226 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
| 3226 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3227 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
| 3227 } | 3228 } |
| 3228 | 3229 |
| 3229 } // namespace blink | 3230 } // namespace blink |
| OLD | NEW |