| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 7 * reserved. | 7 * reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 const HeapVector<Member<DocumentMarker>>& markers_in_list = | 666 const HeapVector<Member<DocumentMarker>>& markers_in_list = |
| 667 list->GetMarkers(); | 667 list->GetMarkers(); |
| 668 for (const DocumentMarker* marker : markers_in_list) { | 668 for (const DocumentMarker* marker : markers_in_list) { |
| 669 builder.Append(" "); | 669 builder.Append(" "); |
| 670 builder.AppendNumber(marker->GetType()); | 670 builder.AppendNumber(marker->GetType()); |
| 671 builder.Append(":["); | 671 builder.Append(":["); |
| 672 builder.AppendNumber(marker->StartOffset()); | 672 builder.AppendNumber(marker->StartOffset()); |
| 673 builder.Append(":"); | 673 builder.Append(":"); |
| 674 builder.AppendNumber(marker->EndOffset()); | 674 builder.AppendNumber(marker->EndOffset()); |
| 675 builder.Append("]("); | 675 builder.Append("]("); |
| 676 builder.AppendNumber(marker->IsActiveMatch()); | 676 builder.AppendNumber(type == DocumentMarker::kTextMatch |
| 677 ? ToTextMatchMarker(marker)->IsActiveMatch() |
| 678 : 0); |
| 677 builder.Append(")"); | 679 builder.Append(")"); |
| 678 } | 680 } |
| 679 } | 681 } |
| 680 builder.Append("\n"); | 682 builder.Append("\n"); |
| 681 } | 683 } |
| 682 LOG(INFO) << markers_.size() << " nodes have markers:\n" | 684 LOG(INFO) << markers_.size() << " nodes have markers:\n" |
| 683 << builder.ToString().Utf8().data(); | 685 << builder.ToString().Utf8().data(); |
| 684 } | 686 } |
| 685 #endif | 687 #endif |
| 686 | 688 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 716 } | 718 } |
| 717 | 719 |
| 718 } // namespace blink | 720 } // namespace blink |
| 719 | 721 |
| 720 #ifndef NDEBUG | 722 #ifndef NDEBUG |
| 721 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { | 723 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { |
| 722 if (controller) | 724 if (controller) |
| 723 controller->ShowMarkers(); | 725 controller->ShowMarkers(); |
| 724 } | 726 } |
| 725 #endif | 727 #endif |
| OLD | NEW |