OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 webCoreMessageLevel = LogMessageLevel; | 759 webCoreMessageLevel = LogMessageLevel; |
760 break; | 760 break; |
761 case WebConsoleMessage::LevelWarning: | 761 case WebConsoleMessage::LevelWarning: |
762 webCoreMessageLevel = WarningMessageLevel; | 762 webCoreMessageLevel = WarningMessageLevel; |
763 break; | 763 break; |
764 case WebConsoleMessage::LevelError: | 764 case WebConsoleMessage::LevelError: |
765 webCoreMessageLevel = ErrorMessageLevel; | 765 webCoreMessageLevel = ErrorMessageLevel; |
766 break; | 766 break; |
767 // Unsupported values. | 767 // Unsupported values. |
768 case WebConsoleMessage::LevelInfo: | 768 case WebConsoleMessage::LevelInfo: |
769 case WebConsoleMessage::LevelRevokedError: | |
770 break; | 769 break; |
771 } | 770 } |
772 | 771 |
773 frame()->document()->addConsoleMessage(ConsoleMessage::create(OtherMessageSo
urce, webCoreMessageLevel, message.text, SourceLocation::create(message.url, mes
sage.lineNumber, message.columnNumber, nullptr))); | 772 frame()->document()->addConsoleMessage(ConsoleMessage::create(OtherMessageSo
urce, webCoreMessageLevel, message.text, SourceLocation::create(message.url, mes
sage.lineNumber, message.columnNumber, nullptr))); |
774 } | 773 } |
775 | 774 |
776 void WebLocalFrameImpl::collectGarbage() | 775 void WebLocalFrameImpl::collectGarbage() |
777 { | 776 { |
778 if (!frame()) | 777 if (!frame()) |
779 return; | 778 return; |
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2143 { | 2142 { |
2144 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2143 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2145 } | 2144 } |
2146 | 2145 |
2147 void WebLocalFrameImpl::clearActiveFindMatch() | 2146 void WebLocalFrameImpl::clearActiveFindMatch() |
2148 { | 2147 { |
2149 ensureTextFinder().clearActiveFindMatch(); | 2148 ensureTextFinder().clearActiveFindMatch(); |
2150 } | 2149 } |
2151 | 2150 |
2152 } // namespace blink | 2151 } // namespace blink |
OLD | NEW |