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

Unified Diff: sky/engine/core/html/HTMLPictureElement.cpp

Issue 706093002: Remove <picture> and <source>. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: ojan review 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/html/HTMLPictureElement.h ('k') | sky/engine/core/html/HTMLPictureElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLPictureElement.cpp
diff --git a/sky/engine/core/html/HTMLPictureElement.cpp b/sky/engine/core/html/HTMLPictureElement.cpp
deleted file mode 100644
index f4f2e55d811955c09f7646af0a9a06ba20e90c8c..0000000000000000000000000000000000000000
--- a/sky/engine/core/html/HTMLPictureElement.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "core/html/HTMLPictureElement.h"
-
-#include "core/HTMLNames.h"
-#include "core/dom/ElementTraversal.h"
-#include "core/frame/UseCounter.h"
-#include "core/html/HTMLImageElement.h"
-#include "core/loader/ImageLoader.h"
-
-namespace blink {
-
-inline HTMLPictureElement::HTMLPictureElement(Document& document)
- : HTMLElement(HTMLNames::pictureTag, document)
-{
- ScriptWrappable::init(this);
-}
-
-DEFINE_NODE_FACTORY(HTMLPictureElement)
-
-void HTMLPictureElement::sourceOrMediaChanged()
-{
- for (HTMLImageElement* imageElement = Traversal<HTMLImageElement>::firstChild(*this); imageElement; imageElement = Traversal<HTMLImageElement>::nextSibling(*imageElement)) {
- imageElement->selectSourceURL(ImageLoader::UpdateNormal);
- }
-}
-
-Node::InsertionNotificationRequest HTMLPictureElement::insertedInto(ContainerNode* insertionPoint)
-{
- UseCounter::count(document(), UseCounter::Picture);
- return HTMLElement::insertedInto(insertionPoint);
-}
-
-} // namespace
« no previous file with comments | « sky/engine/core/html/HTMLPictureElement.h ('k') | sky/engine/core/html/HTMLPictureElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698