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

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

Issue 710733004: Remove resizing code from ElementRareData. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | sky/engine/core/dom/Element.cpp » ('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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 bool isKeyboardFocusable() const; 246 bool isKeyboardFocusable() const;
247 virtual bool isMouseFocusable() const; 247 virtual bool isMouseFocusable() const;
248 virtual void willCallDefaultEventHandler(const Event&) override final; 248 virtual void willCallDefaultEventHandler(const Event&) override final;
249 void dispatchFocusEvent(Element* oldFocusedElement, FocusType); 249 void dispatchFocusEvent(Element* oldFocusedElement, FocusType);
250 void dispatchBlurEvent(Element* newFocusedElement); 250 void dispatchBlurEvent(Element* newFocusedElement);
251 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element); 251 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element);
252 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement); 252 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement);
253 253
254 virtual String title() const { return String(); } 254 virtual String title() const { return String(); }
255 255
256 LayoutSize minimumSizeForResizing() const;
257 void setMinimumSizeForResizing(const LayoutSize&);
258
259 // Called by the parser when this element's close tag is reached, 256 // Called by the parser when this element's close tag is reached,
260 // signaling that all child tags have been parsed and added. 257 // signaling that all child tags have been parsed and added.
261 // This is needed for <applet> and <object> elements, which can't lay themse lves out 258 // This is needed for <applet> and <object> elements, which can't lay themse lves out
262 // until they know all of their nested <param>s. [Radar 3603191, 4040848]. 259 // until they know all of their nested <param>s. [Radar 3603191, 4040848].
263 // Also used for script elements and some SVG elements for similar purposes, 260 // Also used for script elements and some SVG elements for similar purposes,
264 // but making parsing a special case in this respect should be avoided if po ssible. 261 // but making parsing a special case in this respect should be avoided if po ssible.
265 virtual void finishParsingChildren() { } 262 virtual void finishParsingChildren() { }
266 263
267 bool matches(const String& selectors, ExceptionState&); 264 bool matches(const String& selectors, ExceptionState&);
268 265
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 static PassRefPtr<T> create(const QualifiedName&, Document&) 589 static PassRefPtr<T> create(const QualifiedName&, Document&)
593 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 590 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
594 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 591 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
595 { \ 592 { \
596 return adoptRef(new T(tagName, document)); \ 593 return adoptRef(new T(tagName, document)); \
597 } 594 }
598 595
599 } // namespace 596 } // namespace
600 597
601 #endif // Element_h 598 #endif // Element_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698