Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: sky/engine/core/dom/Element.h

Issue 788113002: Simplify HTMLStyleElement. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/css/parser/CSSGrammar.y ('k') | sky/engine/core/dom/StyleEngine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 bool isKeyboardFocusable() const; 240 bool isKeyboardFocusable() const;
241 bool isMouseFocusable() const; 241 bool isMouseFocusable() const;
242 virtual void willCallDefaultEventHandler(const Event&) override final; 242 virtual void willCallDefaultEventHandler(const Event&) override final;
243 void dispatchFocusEvent(Element* oldFocusedElement, FocusType); 243 void dispatchFocusEvent(Element* oldFocusedElement, FocusType);
244 void dispatchBlurEvent(Element* newFocusedElement); 244 void dispatchBlurEvent(Element* newFocusedElement);
245 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element); 245 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element);
246 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement); 246 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement);
247 247
248 String title() const; 248 String title() const;
249 249
250 // Called by the parser when this element's close tag is reached,
251 // signaling that all child tags have been parsed and added.
252 // This is needed for <applet> and <object> elements, which can't lay themse lves out
253 // until they know all of their nested <param>s. [Radar 3603191, 4040848].
254 // Also used for script elements and some SVG elements for similar purposes,
255 // but making parsing a special case in this respect should be avoided if po ssible.
256 virtual void finishParsingChildren() { }
257
258 bool matches(const String& selectors, ExceptionState&); 250 bool matches(const String& selectors, ExceptionState&);
259 251
260 DOMTokenList& classList(); 252 DOMTokenList& classList();
261 253
262 virtual bool canContainRangeEndPoint() const override { return true; } 254 virtual bool canContainRangeEndPoint() const override { return true; }
263 255
264 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>); 256 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>);
265 CustomElementDefinition* customElementDefinition() const; 257 CustomElementDefinition* customElementDefinition() const;
266 258
267 bool isSpellCheckingEnabled() const; 259 bool isSpellCheckingEnabled() const;
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 static PassRefPtr<T> create(const QualifiedName&, Document&) 594 static PassRefPtr<T> create(const QualifiedName&, Document&)
603 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 595 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
604 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 596 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
605 { \ 597 { \
606 return adoptRef(new T(tagName, document)); \ 598 return adoptRef(new T(tagName, document)); \
607 } 599 }
608 600
609 } // namespace 601 } // namespace
610 602
611 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ 603 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/CSSGrammar.y ('k') | sky/engine/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698