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

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

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months 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/dom/DocumentParser.cpp ('k') | sky/engine/core/dom/Node.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 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #include "sky/engine/core/dom/shadow/ShadowRoot.h" 61 #include "sky/engine/core/dom/shadow/ShadowRoot.h"
62 #include "sky/engine/core/editing/FrameSelection.h" 62 #include "sky/engine/core/editing/FrameSelection.h"
63 #include "sky/engine/core/editing/TextIterator.h" 63 #include "sky/engine/core/editing/TextIterator.h"
64 #include "sky/engine/core/editing/htmlediting.h" 64 #include "sky/engine/core/editing/htmlediting.h"
65 #include "sky/engine/core/events/EventDispatcher.h" 65 #include "sky/engine/core/events/EventDispatcher.h"
66 #include "sky/engine/core/events/FocusEvent.h" 66 #include "sky/engine/core/events/FocusEvent.h"
67 #include "sky/engine/core/frame/FrameView.h" 67 #include "sky/engine/core/frame/FrameView.h"
68 #include "sky/engine/core/frame/LocalFrame.h" 68 #include "sky/engine/core/frame/LocalFrame.h"
69 #include "sky/engine/core/frame/Settings.h" 69 #include "sky/engine/core/frame/Settings.h"
70 #include "sky/engine/core/html/HTMLElement.h" 70 #include "sky/engine/core/html/HTMLElement.h"
71 #include "sky/engine/core/html/HTMLTemplateElement.h"
72 #include "sky/engine/core/html/parser/HTMLDocumentParser.h"
73 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" 71 #include "sky/engine/core/html/parser/HTMLParserIdioms.h"
74 #include "sky/engine/core/layout/LayoutCallback.h" 72 #include "sky/engine/core/layout/LayoutCallback.h"
75 #include "sky/engine/core/page/ChromeClient.h" 73 #include "sky/engine/core/page/ChromeClient.h"
76 #include "sky/engine/core/page/FocusController.h" 74 #include "sky/engine/core/page/FocusController.h"
77 #include "sky/engine/core/page/Page.h" 75 #include "sky/engine/core/page/Page.h"
78 #include "sky/engine/core/painting/Canvas.h" 76 #include "sky/engine/core/painting/Canvas.h"
79 #include "sky/engine/core/painting/PaintingCallback.h" 77 #include "sky/engine/core/painting/PaintingCallback.h"
80 #include "sky/engine/core/painting/PaintingTasks.h" 78 #include "sky/engine/core/painting/PaintingTasks.h"
81 #include "sky/engine/core/painting/PictureRecorder.h" 79 #include "sky/engine/core/painting/PictureRecorder.h"
82 #include "sky/engine/core/rendering/RenderCustomLayout.h" 80 #include "sky/engine/core/rendering/RenderCustomLayout.h"
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 DOMTokenList& Element::classList() 1294 DOMTokenList& Element::classList()
1297 { 1295 {
1298 ElementRareData& rareData = ensureElementRareData(); 1296 ElementRareData& rareData = ensureElementRareData();
1299 if (!rareData.classList()) 1297 if (!rareData.classList())
1300 rareData.setClassList(DOMTokenList::create(*this)); 1298 rareData.setClassList(DOMTokenList::create(*this));
1301 return *rareData.classList(); 1299 return *rareData.classList();
1302 } 1300 }
1303 1301
1304 KURL Element::hrefURL() const 1302 KURL Element::hrefURL() const
1305 { 1303 {
1306 // FIXME: These all have href() or url(), but no common super class. Why doe sn't
1307 // <link> implement URLUtils?
1308 if (isHTMLAnchorElement(*this))
1309 return getURLAttribute(HTMLNames::hrefAttr);
1310 return KURL(); 1304 return KURL();
1311 } 1305 }
1312 1306
1313 KURL Element::getURLAttribute(const QualifiedName& name) const 1307 KURL Element::getURLAttribute(const QualifiedName& name) const
1314 { 1308 {
1315 #if ENABLE(ASSERT) 1309 #if ENABLE(ASSERT)
1316 if (elementData()) { 1310 if (elementData()) {
1317 if (const Attribute* attribute = attributes().find(name)) 1311 if (const Attribute* attribute = attributes().find(name))
1318 ASSERT(isURLAttribute(*attribute)); 1312 ASSERT(isURLAttribute(*attribute));
1319 } 1313 }
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 GraphicsContext context(canvas->skCanvas()); 1702 GraphicsContext context(canvas->skCanvas());
1709 1703
1710 // Very simplified painting to allow painting an arbitrary (layer-less) subt ree. 1704 // Very simplified painting to allow painting an arbitrary (layer-less) subt ree.
1711 Vector<RenderBox*> layers; 1705 Vector<RenderBox*> layers;
1712 PaintInfo paintInfo(&context, box->absoluteBoundingBoxRect(), box); 1706 PaintInfo paintInfo(&context, box->absoluteBoundingBoxRect(), box);
1713 box->paint(paintInfo, LayoutPoint(), layers); 1707 box->paint(paintInfo, LayoutPoint(), layers);
1714 // Note we're ignoring any layers encountered. 1708 // Note we're ignoring any layers encountered.
1715 } 1709 }
1716 1710
1717 } // namespace blink 1711 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DocumentParser.cpp ('k') | sky/engine/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698