| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Changes Blink-style names to Chrome-style names. Currently transforms: | 5 // Changes Blink-style names to Chrome-style names. Currently transforms: |
| 6 // fields: | 6 // fields: |
| 7 // int m_operationCount => int operation_count_ | 7 // int m_operationCount => int operation_count_ |
| 8 // variables (including parameters): | 8 // variables (including parameters): |
| 9 // int mySuperVariable => int my_super_variable | 9 // int mySuperVariable => int my_super_variable |
| 10 // constants: | 10 // constants: |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 static const char* kConflictingMethods[] = {"accumulatorMap", | 668 static const char* kConflictingMethods[] = {"accumulatorMap", |
| 669 "animationWorklet", | 669 "animationWorklet", |
| 670 "attrNodeList", | 670 "attrNodeList", |
| 671 "audioWorklet", | 671 "audioWorklet", |
| 672 "binaryType", | 672 "binaryType", |
| 673 "blob", | 673 "blob", |
| 674 "channelCountMode", | 674 "channelCountMode", |
| 675 "color", | 675 "color", |
| 676 "compositorElementId", | 676 "compositorElementId", |
| 677 "constructionStack", | 677 "constructionStack", |
| 678 "controlSize", |
| 678 "counterDirectives", | 679 "counterDirectives", |
| 679 "counterMaps", | 680 "counterMaps", |
| 680 "document", | 681 "document", |
| 681 "dragOperation", | 682 "dragOperation", |
| 682 "element", | 683 "element", |
| 683 "emptyChromeClient", | 684 "emptyChromeClient", |
| 684 "emptyEditorClient", | 685 "emptyEditorClient", |
| 685 "emptySpellCheckerClient", | 686 "emptySpellCheckerClient", |
| 686 "entryType", | 687 "entryType", |
| 687 "error", | 688 "error", |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 "originAccessMap", | 724 "originAccessMap", |
| 724 "outcome", | 725 "outcome", |
| 725 "pagePopup", | 726 "pagePopup", |
| 726 "paintWorklet", | 727 "paintWorklet", |
| 727 "path", | 728 "path", |
| 728 "position", | 729 "position", |
| 729 "presentationAttributeCache", | 730 "presentationAttributeCache", |
| 730 "processingInstruction", | 731 "processingInstruction", |
| 731 "qualifiedNameCache", | 732 "qualifiedNameCache", |
| 732 "readyState", | 733 "readyState", |
| 733 "relList", | |
| 734 "referrer", | 734 "referrer", |
| 735 "referrerPolicy", | 735 "referrerPolicy", |
| 736 "relList", |
| 736 "resource", | 737 "resource", |
| 737 "response", | 738 "response", |
| 738 "restrictedKeyMap", | 739 "restrictedKeyMap", |
| 739 "sandboxSupport", | 740 "sandboxSupport", |
| 740 "screenInfo", | 741 "screenInfo", |
| 741 "screenOrientationController", | 742 "screenOrientationController", |
| 742 "scrollAnimator", | 743 "scrollAnimator", |
| 744 "scrollbarPainterMap", |
| 745 "scrollbarSet", |
| 743 "selectionInDOMTree", | 746 "selectionInDOMTree", |
| 744 "selectionInFlatTree", | 747 "selectionInFlatTree", |
| 745 "selectionVisualRectMap", | 748 "selectionVisualRectMap", |
| 746 "selectorTextCache", | 749 "selectorTextCache", |
| 747 "settings", | 750 "settings", |
| 751 "shadowRootType", |
| 748 "signalingState", | 752 "signalingState", |
| 749 "snapshotById", | 753 "snapshotById", |
| 750 "state", | 754 "state", |
| 755 "stickyConstraintsMap", |
| 751 "string", | 756 "string", |
| 752 "styleSharingList", | 757 "styleSharingList", |
| 753 "styleSheet", | 758 "styleSheet", |
| 754 "supplementable", | 759 "supplementable", |
| 755 "text", | 760 "text", |
| 756 "textAlign", | 761 "textAlign", |
| 757 "textBaseline", | 762 "textBaseline", |
| 763 "textDirection", |
| 758 "theme", | 764 "theme", |
| 759 "thread", | 765 "thread", |
| 760 "timing", | 766 "timing", |
| 761 "topLevelBlameContext", | 767 "topLevelBlameContext", |
| 762 "type", | 768 "type", |
| 763 "vector", | 769 "vector", |
| 764 "visibleSelection", | 770 "visibleSelection", |
| 765 "visibleSelectionInFlatTree", | 771 "visibleSelectionInFlatTree", |
| 766 "weakHeapObjectSet", | 772 "weakHeapObjectSet", |
| 767 "webFrame", | 773 "webFrame", |
| 768 "widget", | 774 "widget", |
| 769 "wordBoundaries", | 775 "wordBoundaries", |
| 776 "workerThread", |
| 777 "worldId", |
| 770 "worldMap", | 778 "worldMap", |
| 771 "wrapperTypeInfo"}; | 779 "wrapperTypeInfo"}; |
| 772 for (const auto& conflicting_method : kConflictingMethods) { | 780 for (const auto& conflicting_method : kConflictingMethods) { |
| 773 if (old_method_name == conflicting_method) | 781 if (old_method_name == conflicting_method) |
| 774 return true; | 782 return true; |
| 775 } | 783 } |
| 776 | 784 |
| 777 return false; | 785 return false; |
| 778 } | 786 } |
| 779 | 787 |
| (...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1951 for (const auto& r : replacements) { | 1959 for (const auto& r : replacements) { |
| 1952 std::string replacement_text = r.getReplacementText().str(); | 1960 std::string replacement_text = r.getReplacementText().str(); |
| 1953 std::replace(replacement_text.begin(), replacement_text.end(), '\n', '\0'); | 1961 std::replace(replacement_text.begin(), replacement_text.end(), '\n', '\0'); |
| 1954 llvm::outs() << "r:::" << r.getFilePath() << ":::" << r.getOffset() | 1962 llvm::outs() << "r:::" << r.getFilePath() << ":::" << r.getOffset() |
| 1955 << ":::" << r.getLength() << ":::" << replacement_text << "\n"; | 1963 << ":::" << r.getLength() << ":::" << replacement_text << "\n"; |
| 1956 } | 1964 } |
| 1957 llvm::outs() << "==== END EDITS ====\n"; | 1965 llvm::outs() << "==== END EDITS ====\n"; |
| 1958 | 1966 |
| 1959 return 0; | 1967 return 0; |
| 1960 } | 1968 } |
| OLD | NEW |