| 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 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "core/dom/Text.h" | 41 #include "core/dom/Text.h" |
| 42 #include "core/dom/shadow/ElementShadow.h" | 42 #include "core/dom/shadow/ElementShadow.h" |
| 43 #include "core/dom/shadow/ShadowRoot.h" | 43 #include "core/dom/shadow/ShadowRoot.h" |
| 44 #include "core/editing/markup.h" | 44 #include "core/editing/markup.h" |
| 45 #include "core/events/EventListener.h" | 45 #include "core/events/EventListener.h" |
| 46 #include "core/events/KeyboardEvent.h" | 46 #include "core/events/KeyboardEvent.h" |
| 47 #include "core/frame/Settings.h" | 47 #include "core/frame/Settings.h" |
| 48 #include "core/html/HTMLBRElement.h" | 48 #include "core/html/HTMLBRElement.h" |
| 49 #include "core/html/HTMLFormElement.h" | 49 #include "core/html/HTMLFormElement.h" |
| 50 #include "core/html/HTMLInputElement.h" | 50 #include "core/html/HTMLInputElement.h" |
| 51 #include "core/html/HTMLMenuElement.h" |
| 51 #include "core/html/HTMLTemplateElement.h" | 52 #include "core/html/HTMLTemplateElement.h" |
| 52 #include "core/html/HTMLTextFormControlElement.h" | 53 #include "core/html/HTMLTextFormControlElement.h" |
| 53 #include "core/html/parser/HTMLParserIdioms.h" | 54 #include "core/html/parser/HTMLParserIdioms.h" |
| 54 #include "core/rendering/RenderObject.h" | 55 #include "core/rendering/RenderObject.h" |
| 55 #include "platform/text/BidiResolver.h" | 56 #include "platform/text/BidiResolver.h" |
| 56 #include "platform/text/BidiTextRun.h" | 57 #include "platform/text/BidiTextRun.h" |
| 57 #include "platform/text/TextRunIterator.h" | 58 #include "platform/text/TextRunIterator.h" |
| 58 #include "wtf/StdLibExtras.h" | 59 #include "wtf/StdLibExtras.h" |
| 59 #include "wtf/text/CString.h" | 60 #include "wtf/text/CString.h" |
| 60 | 61 |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString)); | 894 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString)); |
| 894 | 895 |
| 895 style->setProperty(propertyID, cssValuePool().createColorValue(parsedColor.r
gb())); | 896 style->setProperty(propertyID, cssValuePool().createColorValue(parsedColor.r
gb())); |
| 896 } | 897 } |
| 897 | 898 |
| 898 bool HTMLElement::isInteractiveContent() const | 899 bool HTMLElement::isInteractiveContent() const |
| 899 { | 900 { |
| 900 return false; | 901 return false; |
| 901 } | 902 } |
| 902 | 903 |
| 904 HTMLMenuElement* HTMLElement::menuElement() const |
| 905 { |
| 906 Element* element = treeScope().getElementById(fastGetAttribute(contextmenuAt
tr)); |
| 907 return isHTMLMenuElement(element) ? toHTMLMenuElement(element) : 0; |
| 908 } |
| 909 |
| 903 void HTMLElement::defaultEventHandler(Event* event) | 910 void HTMLElement::defaultEventHandler(Event* event) |
| 904 { | 911 { |
| 905 if (event->type() == EventTypeNames::keypress && event->isKeyboardEvent()) { | 912 if (event->type() == EventTypeNames::keypress && event->isKeyboardEvent()) { |
| 906 handleKeypressEvent(toKeyboardEvent(event)); | 913 handleKeypressEvent(toKeyboardEvent(event)); |
| 907 if (event->defaultHandled()) | 914 if (event->defaultHandled()) |
| 908 return; | 915 return; |
| 909 } | 916 } |
| 910 | 917 |
| 911 Element::defaultEventHandler(event); | 918 Element::defaultEventHandler(event); |
| 912 } | 919 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 #ifndef NDEBUG | 965 #ifndef NDEBUG |
| 959 | 966 |
| 960 // For use in the debugger | 967 // For use in the debugger |
| 961 void dumpInnerHTML(blink::HTMLElement*); | 968 void dumpInnerHTML(blink::HTMLElement*); |
| 962 | 969 |
| 963 void dumpInnerHTML(blink::HTMLElement* element) | 970 void dumpInnerHTML(blink::HTMLElement* element) |
| 964 { | 971 { |
| 965 printf("%s\n", element->innerHTML().ascii().data()); | 972 printf("%s\n", element->innerHTML().ascii().data()); |
| 966 } | 973 } |
| 967 #endif | 974 #endif |
| OLD | NEW |